Revision 101 org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.spi/src/main/java/org/gvsig/vectorediting/lib/spi/DefaultEditingServiceinfo.java
DefaultEditingServiceinfo.java | ||
---|---|---|
76 | 76 |
throws ServiceInformationException { |
77 | 77 |
int[] supportedTypes = getSupportedPrimitiveGeometryTypes(); |
78 | 78 |
GeometryType featureGeomType; |
79 |
GeometryType supportedGeomtype;
|
|
79 |
GeometryType supportedGeomType;
|
|
80 | 80 |
try { |
81 | 81 |
featureGeomType = featureStore.getDefaultFeatureType() |
82 | 82 |
.getDefaultGeometryAttribute().getGeomType(); |
... | ... | |
86 | 86 |
} |
87 | 87 |
for (int i = 0; i < supportedTypes.length; i++) { |
88 | 88 |
try { |
89 |
supportedGeomtype = GeometryLocator.getGeometryManager().getGeometryType(supportedTypes[i], featureGeomType.getSubType());
|
|
89 |
supportedGeomType = GeometryLocator.getGeometryManager().getGeometryType(supportedTypes[i], featureGeomType.getSubType());
|
|
90 | 90 |
}catch (Exception e){ |
91 | 91 |
throw new ServiceInformationException("Can't get geometry type with type " |
92 | 92 |
+ supportedTypes[i] + " and subtype " + featureGeomType.getSubType(), e); |
93 | 93 |
} |
94 |
if (supportedGeomtype.isTypeOf(featureGeomType.getType())) {
|
|
94 |
if (supportedGeomType.isTypeOf(featureGeomType.getType())) {
|
|
95 | 95 |
return true; |
96 | 96 |
} |
97 | 97 |
} |
Also available in: Unified diff