Skip to content

Commit

Permalink
#45 STRTree is performing better - queries only return objects in the…
Browse files Browse the repository at this point in the history
… envelope derived from a single coordinate. Not sure what's with QuadTree?
  • Loading branch information
hallahan committed Apr 23, 2016
1 parent 19c0c37 commit 4f8a8ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.vividsolutions.jts.geom.Envelope;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.index.quadtree.Quadtree;
import com.vividsolutions.jts.index.strtree.STRtree;

import org.apache.commons.io.FileUtils;
import org.fieldpapers.listeners.FPListener;
Expand Down Expand Up @@ -52,7 +52,7 @@ public class FPAtlas implements MapViewListener, MapListener {
private Activity activity;
private MapView mapView;

private Quadtree spatialIndex = new Quadtree();
private STRtree spatialIndex = new STRtree();
private Map<String, FPPage> pages = new HashMap<>();

private PathOverlay selectedPathOverlay;
Expand Down

0 comments on commit 4f8a8ef

Please sign in to comment.