Class Ring2D
- All Implemented Interfaces:
Shape,Serializable,Cloneable,Comparable,Iterable<org.gvsig.fmap.geom.primitive.Point>,org.gvsig.fmap.geom.Geometry,GeometryJTS,GeometryJTS2,org.gvsig.fmap.geom.primitive.Closeable,org.gvsig.fmap.geom.primitive.OrientablePrimitive,org.gvsig.fmap.geom.primitive.Primitive,org.gvsig.fmap.geom.primitive.Ring,org.gvsig.tools.util.GetItem<org.gvsig.fmap.geom.primitive.Point>,org.gvsig.tools.util.IsEmpty,org.gvsig.tools.util.Size
- Author:
- fdiaz
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gvsig.fmap.geom.jts.primitive.curve.line.AbstractLine
AbstractLine.LineIterator, AbstractLine.VertexIteratorNested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
org.gvsig.fmap.geom.Geometry.DIMENSIONS, org.gvsig.fmap.geom.Geometry.OPERATIONS, org.gvsig.fmap.geom.Geometry.SUBTYPES, org.gvsig.fmap.geom.Geometry.TYPES, org.gvsig.fmap.geom.Geometry.ValidationStatus -
Field Summary
Fields inherited from class org.gvsig.fmap.geom.jts.primitive.curve.line.AbstractLine
coordinates, LOGGERFields inherited from interface org.gvsig.fmap.geom.Geometry
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W -
Constructor Summary
ConstructorsConstructorDescriptionRing2D()Ring2D(com.vividsolutions.jts.geom.Coordinate[] coordinates) Ring2D(ArrayListCoordinateSequence coordinates) -
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.geom.Geometryorg.gvsig.fmap.geom.Geometryforce2D()org.gvsig.fmap.geom.Geometryforce2DM()org.gvsig.fmap.geom.Geometryforce3D()org.gvsig.fmap.geom.Geometryforce3DM()com.vividsolutions.jts.geom.GeometrygetJTS()org.locationtech.jts.geom.GeometrygetJTS2()org.gvsig.fmap.geom.Geometryoffset(double distance) org.gvsig.fmap.geom.Geometryoffset(int joinStyle, double distance) voidreProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) org.gvsig.fmap.geom.aggregate.MultiLinetoLines()org.gvsig.fmap.geom.aggregate.MultiPolygonMethods inherited from class org.gvsig.fmap.geom.jts.primitive.curve.line.BaseLine2D
addVertex, addVertex, fixPoint, getVertex, toPointsMethods inherited from class org.gvsig.fmap.geom.jts.primitive.curve.line.AbstractLine
addMoveToVertex, addVertex, canBeReprojected, canBeTransformed, cloneCoordinates, closePrimitive, ensureCapacity, extractPoint, flip, forceClose, get, getCoordinateAt, getDimension, getGeneralPath, getNumVertices, getPathIterator, getPathIterator, getPathLength, getShape, getShape, insertVertex, is3D, isClosed, isClosed, isEmpty, iterator, removeVertex, setCoordinateAt, setGeneralPath, setPoints, setVertex, size, transformMethods inherited from class org.gvsig.fmap.geom.jts.primitive.AbstractPrimitive
getHandlersMethods inherited from class org.gvsig.fmap.geom.jts.AbstractGeometry
area, boundary, buffer, buffer, centroid, clone, closestPoints, compareTo, contains, contains, contains, contains, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, forceSubtype, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getProjection, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, setGeometryType, setProjection, setProjection, setProjectionIffNull, snapTo, toString, touches, union, withinMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.fmap.geom.primitive.Closeable
forceClose, isClosed, isClosedMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gvsig.fmap.geom.Geometry
area, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, clone, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, flip, forceSubtype, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getProjection, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, isSimple, isValid, isWithinDistance, makeValid, move, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toPoints, touches, transform, union, withinMethods inherited from interface org.gvsig.tools.util.GetItem
getMethods inherited from interface org.gvsig.tools.util.IsEmpty
isEmptyMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertexMethods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersectsMethods inherited from interface org.gvsig.tools.util.Size
size
-
Constructor Details
-
Ring2D
public Ring2D()- Parameters:
subtype-
-
Ring2D
public Ring2D(com.vividsolutions.jts.geom.Coordinate[] coordinates) -
Ring2D
-
-
Method Details
-
cloneGeometry
public org.gvsig.fmap.geom.Geometry cloneGeometry()- Specified by:
cloneGeometryin interfaceorg.gvsig.fmap.geom.Geometry
-
toLines
public org.gvsig.fmap.geom.aggregate.MultiLine toLines() throws org.gvsig.fmap.geom.GeometryException- Specified by:
toLinesin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
toLinesin classBaseLine2D- Throws:
org.gvsig.fmap.geom.GeometryException
-
toPolygons
public org.gvsig.fmap.geom.aggregate.MultiPolygon toPolygons() throws org.gvsig.fmap.geom.GeometryException- Specified by:
toPolygonsin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
toPolygonsin classBaseLine2D- Throws:
org.gvsig.fmap.geom.GeometryException
-
getJTS
public com.vividsolutions.jts.geom.Geometry getJTS()- Specified by:
getJTSin interfaceGeometryJTS- Overrides:
getJTSin classAbstractLine- Returns:
- the jts geometry.
-
offset
public org.gvsig.fmap.geom.Geometry offset(double distance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException - Specified by:
offsetin interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
offset
public org.gvsig.fmap.geom.Geometry offset(int joinStyle, double distance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException - Specified by:
offsetin interfaceorg.gvsig.fmap.geom.Geometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
reProject
public void reProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) - Specified by:
reProjectin interfaceorg.gvsig.fmap.geom.Geometry- Overrides:
reProjectin classAbstractLine
-
force2D
public org.gvsig.fmap.geom.Geometry force2D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force2Din interfaceorg.gvsig.fmap.geom.Geometry- Specified by:
force2Din interfaceorg.gvsig.fmap.geom.primitive.Ring- Overrides:
force2Din classAbstractLine- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force2DM
public org.gvsig.fmap.geom.Geometry force2DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force2DMin interfaceorg.gvsig.fmap.geom.primitive.Ring- Overrides:
force2DMin classAbstractLine- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force3D
public org.gvsig.fmap.geom.Geometry force3D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force3Din interfaceorg.gvsig.fmap.geom.primitive.Ring- Overrides:
force3Din classAbstractLine- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force3DM
public org.gvsig.fmap.geom.Geometry force3DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force3DMin interfaceorg.gvsig.fmap.geom.primitive.Ring- Overrides:
force3DMin classAbstractLine- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
getJTS2
public org.locationtech.jts.geom.Geometry getJTS2()- Specified by:
getJTS2in interfaceGeometryJTS2- Returns:
- the jts geometry.
-