public class Polygon3DM extends BaseLine3DM implements Polygon
AbstractLine.LineIterator, AbstractLine.VertexIteratorGeometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatuscoordinates, LOGGERBEST, 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 and Description |
|---|
Polygon3DM() |
Polygon3DM(ArrayListCoordinateSequence coordinates) |
Polygon3DM(Coordinate[] coordinates) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInteriorRing(Line line)
Creates a ring from the coordinates of the line and adds it to the surface like an inner ring.
|
void |
addInteriorRing(Polygon polygon)
Creates a ring from the coordinates of the shell of the polygon and adds it to the surface like an inner ring.
|
void |
addInteriorRing(Ring ring) |
Polygon |
clone() |
Polygon |
cloneGeometry()
Creates a clone of this geometry.
|
Ring |
createRing() |
boolean |
ensureOrientation(boolean ccw)
Ensures the orientation of the geometry according to the parameter,
flipping it if necessary.
|
boolean |
equals(java.lang.Object obj) |
Geometry |
findGaps(double gapWidth) |
void |
flip()
Flip the coordinates of the geometry.
|
Geometry |
force2D() |
Geometry |
force2DM() |
Geometry |
force3D() |
Geometry |
force3DM() |
Ring |
getExteriorRing() |
Ring |
getInteriorRing(int index) |
java.util.List<Ring> |
getInteriorRings() |
com.vividsolutions.jts.geom.Geometry |
getJTS() |
int |
getNumInteriorRings() |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
java.awt.Shape |
getShape(java.awt.geom.AffineTransform affineTransform) |
SurfaceAppearance |
getSurfaceAppearance()
Gets surface appearance
|
Geometry |
offset(double distance) |
Geometry |
offset(int joinStyle,
double distance) |
void |
removeInteriorRing(int index) |
void |
reProject(ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as
parameter.
|
void |
setSurfaceAppearance(SurfaceAppearance app)
Sets the appearance of the Surface
|
Geometry |
split(Geometry splitter) |
MultiLine |
toLines()
Converts the geometry to be lines and makes with them a multiLine
|
MultiPolygon |
toPolygons()
Converts the geometry to be polygons and makes with them a multiPolygon
|
void |
transform(java.awt.geom.AffineTransform at)
It applies an affine transformation to the geometry.
|
Geometry |
validateCoverage(Geometry[] geoms,
double gapWidth) |
addVertex, addVertex, fixPoint, getVertex, toPointsaddMoveToVertex, addVertex, canBeReprojected, canBeTransformed, cloneCoordinates, closePrimitive, ensureCapacity, extractPoint, forceClose, get, getCoordinateAt, getDimension, getGeneralPath, getNumVertices, getPathIterator, getPathLength, getShape, insertVertex, is3D, isClosed, isClosed, isEmpty, iterator, removeVertex, setCoordinateAt, setGeneralPath, setPoints, setVertex, sizegetHandlersarea, boundary, buffer, buffer, centroid, 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, 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, withinfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertexarea, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, fastIntersects, fix, forceSubtype, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getProjection, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toPoints, touches, union, withincontains, contains, contains, contains, getBounds, intersectsisEmpty, isEmpty, isEmptyQuietlyforceClose, isClosed, isClosedpublic Polygon3DM()
subtype - public Polygon3DM(Coordinate[] coordinates)
public Polygon3DM(ArrayListCoordinateSequence coordinates)
public void setSurfaceAppearance(SurfaceAppearance app)
SurfacesetSurfaceAppearance in interface Surfaceapp - The appearance of the surfacepublic SurfaceAppearance getSurfaceAppearance()
SurfacegetSurfaceAppearance in interface Surfacepublic int getNumInteriorRings()
getNumInteriorRings in interface Surfacepublic Ring getInteriorRing(int index)
getInteriorRing in interface Surfacepublic void addInteriorRing(Ring ring)
addInteriorRing in interface Surfacepublic void addInteriorRing(Line line)
SurfaceaddInteriorRing in interface Surfacepublic void addInteriorRing(Polygon polygon)
SurfaceaddInteriorRing in interface Surfacepublic void removeInteriorRing(int index)
removeInteriorRing in interface Surfacepublic java.util.List<Ring> getInteriorRings()
getInteriorRings in interface Surfacepublic MultiLine toLines() throws GeometryException
GeometrytoLines in interface GeometrytoLines in class BaseLine3DMGeometryExceptionpublic MultiPolygon toPolygons() throws GeometryException
GeometrytoPolygons in interface GeometrytoPolygons in class BaseLine3DMGeometryExceptionpublic Polygon cloneGeometry()
GeometrycloneGeometry in interface GeometrycloneGeometry in interface Polygonpublic Geometry force2D() throws GeometryOperationNotSupportedException, GeometryOperationException
force2D in interface Geometryforce2D in interface Ringforce2D in class AbstractLineGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException
force2DM in interface Ringforce2DM in class AbstractLineGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force3D() throws GeometryOperationNotSupportedException, GeometryOperationException
force3D in interface Ringforce3D in class AbstractLineGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException
force3DM in interface Ringforce3DM in class AbstractLineGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Polygon clone() throws java.lang.CloneNotSupportedException
public com.vividsolutions.jts.geom.Geometry getJTS()
getJTS in interface GeometryJTSgetJTS in class AbstractLinepublic java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
GeometrygetPathIterator in interface java.awt.ShapegetPathIterator in interface GeometrygetPathIterator in class AbstractLineat - The transformation to apply.public boolean ensureOrientation(boolean ccw)
throws GeometryOperationNotSupportedException,
GeometryOperationException
GeometryensureOrientation in interface GeometryensureOrientation in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic void flip()
throws GeometryOperationNotSupportedException,
GeometryOperationException
Geometryflip in interface Geometryflip in class AbstractLineGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic void transform(java.awt.geom.AffineTransform at)
Geometrytransform in interface Geometrytransform in class AbstractLineat - The transformation to apply.public Geometry offset(double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
offset in interface GeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry offset(int joinStyle, double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
offset in interface GeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic void reProject(ICoordTrans ct)
GeometryreProject in interface GeometryreProject in class AbstractLinect - Coordinate Transformer.public boolean equals(java.lang.Object obj)
equals in interface Geometryequals in class AbstractGeometrypublic java.awt.Shape getShape(java.awt.geom.AffineTransform affineTransform)
getShape in interface GeometrygetShape in class AbstractLinepublic Ring createRing()
createRing in interface Polygonpublic Ring getExteriorRing()
getExteriorRing in interface Polygonpublic Geometry validateCoverage(Geometry[] geoms, double gapWidth)
validateCoverage in interface Polygon