Revision 994 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.intersection/src/main/java/org/gvsig/geoprocess/algorithm/intersection/IntersectionOperation.java

View differences:

IntersectionOperation.java
202 202
	}
203 203

  
204 204
	private boolean typesMatch(int dalType, Geometry newGeom) {
205

  
205 206
		return
206
		   ((dalType == TYPES.MULTICURVE &&
207
		   ((geomManager.isSubtype(TYPES.MULTICURVE, dalType) &&
207 208
		   (newGeom instanceof MultiLineString || newGeom instanceof LineString)) ||
208
		   (dalType == TYPES.MULTIPOINT &&
209
		   (geomManager.isSubtype(TYPES.MULTIPOINT, dalType) &&
209 210
		   (newGeom instanceof MultiPoint || newGeom instanceof Point)) ||
210
		   (dalType == TYPES.MULTISURFACE &&
211
		   (geomManager.isSubtype(TYPES.MULTISURFACE, dalType) &&
211 212
	       (newGeom instanceof Polygon || newGeom instanceof MultiPolygon)) ||
212
	       (dalType == TYPES.CURVE && newGeom instanceof LineString) ||
213
	       (dalType == TYPES.SURFACE && newGeom instanceof Polygon) ||
214
	       (dalType == TYPES.POINT && newGeom instanceof Point));
213
	       (geomManager.isSubtype(TYPES.CURVE, dalType) && newGeom instanceof LineString) ||
214
	       (geomManager.isSubtype(TYPES.SURFACE, dalType) && newGeom instanceof Polygon) ||
215
	       (geomManager.isSubtype(TYPES.POINT, dalType) && newGeom instanceof Point));
215 216

  
216 217
	}
217 218

  

Also available in: Unified diff