Revision 43513 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/DefaultGeometryManager.java
DefaultGeometryManager.java | ||
---|---|---|
55 | 55 |
import org.gvsig.fmap.geom.jts.primitive.DefaultNullGeometry; |
56 | 56 |
import org.gvsig.fmap.geom.jts.primitive.Envelope2D; |
57 | 57 |
import org.gvsig.fmap.geom.jts.primitive.Envelope3D; |
58 |
import org.gvsig.fmap.geom.jts.spatialindex.SpatialIndexFactoryJSI; |
|
59 |
import org.gvsig.fmap.geom.jts.spatialindex.SpatialIndexFactoryJTS; |
|
58 |
import org.gvsig.fmap.geom.jts.spatialindex.SpatialIndexFactoryJSIRTree;
|
|
59 |
import org.gvsig.fmap.geom.jts.spatialindex.SpatialIndexFactoryJTSQuadtree;
|
|
60 | 60 |
import org.gvsig.fmap.geom.jts.util.JTSUtils; |
61 | 61 |
import org.gvsig.fmap.geom.operation.GeometryOperation; |
62 | 62 |
import org.gvsig.fmap.geom.operation.GeometryOperationContext; |
... | ... | |
135 | 135 |
|
136 | 136 |
public DefaultGeometryManager(int initialTypesSize, int initialSubtypesSize) throws GeometryException { |
137 | 137 |
geometryTypes = new GeometryType[initialTypesSize][initialSubtypesSize]; |
138 |
this.addServiceFactory(new SpatialIndexFactoryJTS()); |
|
139 |
this.addServiceFactory(new SpatialIndexFactoryJSI()); |
|
138 |
this.addServiceFactory(new SpatialIndexFactoryJTSQuadtree());
|
|
139 |
this.addServiceFactory(new SpatialIndexFactoryJSIRTree());
|
|
140 | 140 |
} |
141 | 141 |
|
142 | 142 |
public int registerGeometryOperation(String geomOpName, GeometryOperation geomOp, GeometryType geomType) { |
... | ... | |
788 | 788 |
} |
789 | 789 |
|
790 | 790 |
public SpatialIndex createDefaultMemorySpatialIndex() throws ServiceException { |
791 |
return this.createSpatialIndex(SpatialIndexFactoryJTS.NAME, null); |
|
791 |
return this.createSpatialIndex(SpatialIndexFactoryJTSQuadtree.NAME, null);
|
|
792 | 792 |
} |
793 | 793 |
|
794 | 794 |
public SpatialIndex createSpatialIndex(String name, DynObject parameters) throws ServiceException { |
Also available in: Unified diff