Revision 42359
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.api/src/main/java/org/gvsig/fmap/geom/Geometry.java | ||
---|---|---|
840 | 840 |
*/ |
841 | 841 |
public MultiPolygon toPolygons() throws GeometryException; |
842 | 842 |
|
843 |
/** |
|
844 |
* Flip the coordinates of the geometry. |
|
845 |
* If the geometry is aggregate also revert the primitives collection. |
|
846 |
* |
|
847 |
* @throws GeometryOperationNotSupportedException |
|
848 |
* @throws GeometryOperationException |
|
849 |
*/ |
|
843 | 850 |
public void flip() throws GeometryOperationNotSupportedException, GeometryOperationException; |
844 | 851 |
|
852 |
/** |
|
853 |
* Ensures the orientation of the geometry according to the parameter, flipping it if necessary. |
|
854 |
* If the geometry is a polygon, ensures the orientation of its perimeter |
|
855 |
* and ensures the opposite orientation of their holes. |
|
856 |
* |
|
857 |
* @param ccw |
|
858 |
* @return |
|
859 |
* @throws GeometryOperationNotSupportedException |
|
860 |
* @throws GeometryOperationException |
|
861 |
*/ |
|
845 | 862 |
public boolean ensureOrientation(boolean ccw) throws GeometryOperationNotSupportedException, GeometryOperationException; |
846 | 863 |
|
864 |
/** |
|
865 |
* Returns true if passed as a parameter geometry is completely out of geometry. |
|
866 |
* |
|
867 |
* @param geometry |
|
868 |
* @return |
|
869 |
* @throws GeometryOperationNotSupportedException |
|
870 |
* @throws GeometryOperationException |
|
871 |
*/ |
|
847 | 872 |
public boolean out(Geometry geometry) throws GeometryOperationNotSupportedException, GeometryOperationException; |
848 | 873 |
} |
Also available in: Unified diff