Revision 47364 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 | ||
---|---|---|
49 | 49 |
import org.gvsig.fmap.geom.aggregate.MultiLine; |
50 | 50 |
import org.gvsig.fmap.geom.aggregate.MultiPoint; |
51 | 51 |
import org.gvsig.fmap.geom.aggregate.MultiPolygon; |
52 |
import org.gvsig.fmap.geom.aggregate.MultiPrimitive; |
|
52 | 53 |
import org.gvsig.fmap.geom.aggregate.MultiSurface; |
53 | 54 |
import org.gvsig.fmap.geom.exception.CreateEnvelopeException; |
54 | 55 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
... | ... | |
942 | 943 |
return this.createSpatialIndex((String) parameters.getDynValue("serviceName"), parameters); |
943 | 944 |
} |
944 | 945 |
|
946 |
@Override |
|
947 |
public MultiPrimitive createMultiPrimitive(GeometryType geometryType) throws CreateGeometryException { |
|
948 |
int type = geometryType.getType(); |
|
949 |
int subtype = geometryType.getSubType(); |
|
950 |
if(isSubtype(Geometry.TYPES.POINT, type)){ |
|
951 |
return createMultiPoint(subtype); |
|
952 |
} |
|
953 |
if(isSubtype(Geometry.TYPES.CURVE, type)){ |
|
954 |
return createMultiCurve(subtype); |
|
955 |
} |
|
956 |
if(isSubtype(Geometry.TYPES.SURFACE, type)){ |
|
957 |
return createMultiSurface(subtype); |
|
958 |
} |
|
959 |
|
|
960 |
throw new CreateGeometryException(type, subtype, null); |
|
961 |
} |
|
962 |
|
|
945 | 963 |
public class CantExistsService extends ServiceException { |
946 | 964 |
|
947 | 965 |
public CantExistsService(String serviceName) { |
Also available in: Unified diff