Revision 41246 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.api/src/main/java/org/gvsig/fmap/geom/GeometryManager.java

View differences:

GeometryManager.java
45 45
import org.gvsig.fmap.geom.type.GeometryType;
46 46
import org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException;
47 47
import org.gvsig.fmap.geom.type.GeometryTypeNotValidException;
48
import org.gvsig.tools.dynobject.DynObject;
49
import org.gvsig.tools.service.Manager;
50
import org.gvsig.tools.service.ServiceException;
51
import org.gvsig.tools.service.spi.ServiceManager;
48 52

  
49 53
/**
50 54
 * This singleton provides a centralized access to gvSIG's Geometry Model.
......
62 66
 * @author jiyarza
63 67
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
64 68
 */
65
public interface GeometryManager {
69
public interface GeometryManager extends Manager, ServiceManager {
66 70

  
67 71
    public interface OPERATIONS {
68 72

  
......
1147 1151
     * 
1148 1152
     * @return a new SpatialIndex
1149 1153
     */
1150
    public SpatialIndex createDefaultMemorySpatialIndex() throws GeometryException;
1154
    public SpatialIndex createDefaultMemorySpatialIndex() throws ServiceException;
1155

  
1151 1156
    
1152

  
1153 1157
    /**
1158
     * Create a spatial index with the implementation specified as name.
1159
     * If the creation of index don't requery parameters can be passed a null.
1160
     * 
1161
     * @param name of the type of spatial index to create
1162
     * @param parameters used to create the index or null.
1163
     * @return the new SpatialIndex or null if not exists the type of index.
1164
     * @throws GeometryException 
1165
     */
1166
    public SpatialIndex createSpatialIndex(String name, DynObject parameters) throws ServiceException;
1167
    
1168
    /**
1169
     * Return the name of the factory of the spatial index required.
1170
     * 
1171
     * @param name of the spatial index factory
1172
     * @return the SpatialIndexFactory required or null if not exists
1173
     */
1174
    public SpatialIndexFactory getSpatialIndexFactory(String name);
1175
    
1176
    /**
1154 1177
     * Create a GeneralPathX to populate a geometry.
1155 1178
     * This method is deprecated, instead use OrientablePrimitive#addVertex(Point) to add vertex to 
1156 1179
     * primitive geometries or {@link MultiPrimitive#addPrimitive(org.gvsig.fmap.geom.primitive.Primitive)} to add geometries to an aggregate.

Also available in: Unified diff