Revision 42281 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/AbstractGeometry.java
AbstractGeometry.java | ||
---|---|---|
684 | 684 |
|
685 | 685 |
} |
686 | 686 |
|
687 |
// public void flip() { |
|
688 |
// getJTS().reverse(); |
|
689 |
// } |
|
690 |
// |
|
691 |
// public boolean ensureOrientation(); |
|
692 | 687 |
|
688 |
/* (non-Javadoc) |
|
689 |
* @see org.gvsig.fmap.geom.jts.GeometryJTS#ensureOrientation(boolean) |
|
690 |
*/ |
|
691 |
public boolean ensureOrientation(boolean ccw) throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
692 |
if(ccw!=isCCW()){ |
|
693 |
flip(); |
|
694 |
return true; |
|
695 |
} |
|
696 |
return false; |
|
697 |
} |
|
698 |
|
|
699 |
/* (non-Javadoc) |
|
700 |
* @see org.gvsig.fmap.geom.jts.GeometryJTS#out(org.gvsig.fmap.geom.Geometry) |
|
701 |
*/ |
|
702 |
public boolean out(Geometry geometry) throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
703 |
GeometryJTS otherJtsGeom = (GeometryJTS)geometry; |
|
704 |
return (!contains(otherJtsGeom) && !intersects(otherJtsGeom)); |
|
705 |
} |
|
706 |
|
|
693 | 707 |
} |
Also available in: Unified diff