Revision 23803 branches/v2_0_0_prep/libraries/libFMap_spatialindex/src/org/gvsig/fmap/data/index/spatial/jts/QuadTreeJtsFactory.java
QuadTreeJtsFactory.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
package org.gvsig.fmap.data.index.spatial.jts; |
29 | 29 |
|
30 |
import org.gvsig.fmap.data.index.Index; |
|
30 | 31 |
import org.gvsig.fmap.data.index.IndexException; |
31 |
import org.gvsig.fmap.data.index.spatial.SpatialIndex; |
|
32 |
import org.gvsig.fmap.data.index.spatial.SpatialIndexFactory; |
|
33 |
import org.gvsig.fmap.data.index.spatial.SpatialIndexParameters; |
|
32 |
import org.gvsig.fmap.data.index.IndexFactory; |
|
33 |
import org.gvsig.fmap.data.index.IndexParameters; |
|
34 | 34 |
|
35 |
public class QuadTreeJtsFactory extends SpatialIndexFactory {
|
|
35 |
public class QuadTreeJtsFactory extends IndexFactory { |
|
36 | 36 |
|
37 | 37 |
static { |
38 |
registerFactory(Factories.JTS_QUADTREE, "QuadTreeJtsFactory", QuadTreeJtsFactory.class); |
|
38 |
registerFactory(Factories.TYPE_GEOMETRY.JTS_QUADTREE, "QuadTreeJtsFactory", QuadTreeJtsFactory.class);
|
|
39 | 39 |
} |
40 | 40 |
|
41 |
public SpatialIndex createSpatialIndex(SpatialIndexParameters params) throws IndexException { |
|
42 |
return new QuadtreeJts(); |
|
43 |
} |
|
44 |
|
|
41 |
public Index createIndex(IndexParameters params) throws IndexException { |
|
42 |
return new QuadtreeJts(params); |
|
43 |
} |
|
45 | 44 |
} |
Also available in: Unified diff