Revision 38368

View differences:

branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/ExploitExtension.java
176 176
            return false;
177 177
        }
178 178
        
179
        if (geotype.getType() == Geometry.TYPES.CURVE) {
180
            return true;
181
        }
182 179
        
183
        if (geotype.isTypeOf(Geometry.TYPES.AGGREGATE)) {
180
        if (geotype.getType() == Geometry.TYPES.CURVE
181
            || geotype.getType() == Geometry.TYPES.MULTICURVE) {
182
            // exploting a curve gives curves, so ok
184 183
            return true;
185 184
        }
186 185

  
187
        if (geotype.getType() == Geometry.TYPES.SURFACE) {
188
            if (factory.allowMultipleGeometryTypes() != FeatureStoreProviderFactory.YES) {
189
                return false;
190
            }
191
            return true;
186
        if (geotype.getType() == Geometry.TYPES.SURFACE
187
            || geotype.getType() == Geometry.TYPES.MULTISURFACE) {
188
            
189
            // exploting a surface can give curves, so must allow multiple types
190
            return (factory.allowMultipleGeometryTypes()
191
                == FeatureStoreProviderFactory.YES); 
192 192
        }
193
        
193

  
194 194
        if (geotype.isTypeOf(Geometry.TYPES.GEOMETRY)) {
195
            // if everything is allowed, ok
195 196
            return true;
196 197
        }
197 198
        
199
        // otherwise: (multi)points, etc, not allowed
198 200
        return false;
199 201
	}
200 202
	/**

Also available in: Unified diff