Skip to content

Fix for EDT violations and other small fixes.#45

Open
cmadsen wants to merge 9 commits intoOpenMap-java:masterfrom
cmadsen:master
Open

Fix for EDT violations and other small fixes.#45
cmadsen wants to merge 9 commits intoOpenMap-java:masterfrom
cmadsen:master

Conversation

@cmadsen
Copy link
Contributor

@cmadsen cmadsen commented Jul 10, 2018

Fixes EDT violations found with https://github.com/jikuja/SwingEDTCheckAgent.

Fixes a few NPE's.

Fixes NEP when reading shape files with "empty" records.

Fixes that OMDistance, OMPoly and OmRangeRings does not respect isVisible.

cmadsen added 9 commits July 10, 2018 11:26
1. QuadTreeRect.borderDistanceSqr: returned distance^4 (dx^2 squared again) instead of distance^2, causing incorrect nearest-neighbor pruning
2. QuadTreeNode.split: children were created without propagating minSize, defeating depth limits on dense data
3. QuadTreeNode.split: raw Collection<QuadTreeLeaf> replaced with parameterized Collection<QuadTreeLeaf<T>>
4. QuadTreeNode.remove: used == (identity) instead of Objects.equals(), failing for equal-but-not-same-instance objects
5. QuadTree.get: approximately_equal(west, east, .001) treated narrow bounding boxes as dateline crossings, returning global results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant