Revision 40942 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.impl/src/main/java/org/gvsig/fmap/geom/primitive/impl/AbstractPrimitive.java

View differences:

AbstractPrimitive.java
713 713
			throws GeometryOperationNotSupportedException,
714 714
			GeometryOperationException {
715 715
		// TODO: this method can be implemented throw invokeOperation 
716
		return getJTS().intersects(Converter.geometryToJts(geometry));
716
	    try {
717
	        return getJTS().intersects(Converter.geometryToJts(geometry));
718
	    } catch (Exception exc) {
719
	        /*
720
	         * The JTS library sometimes throws an exception
721
	         * (Example: "TopologyException: side location conflict")
722
	         */
723
	        throw new GeometryOperationException(exc);
724
	    }
725
		
717 726
	}
718 727
	
719 728
	public boolean touches(Geometry geometry)

Also available in: Unified diff