public class Polygon3DM extends BaseLine3DM implements Polygon
AbstractLine.LineIterator, AbstractLine.VertexIterator
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
coordinates
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Constructor and Description |
---|
Polygon3DM() |
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) |
Geometry |
cloneGeometry()
Creates a clone of this geometry.
|
boolean |
ensureOrientation(boolean ccw)
Ensures the orientation of the geometry according to the parameter, flipping it if necessary.
|
boolean |
equals(Object obj) |
void |
flip()
Flip the coordinates of the geometry.
|
Ring |
getInteriorRing(int index) |
com.vividsolutions.jts.geom.Geometry |
getJTS() |
int |
getNumInteriorRings() |
PathIterator |
getPathIterator(AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
SurfaceAppearance |
getSurfaceAppearance()
Gets surface appearance
|
Geometry |
offset(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
|
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(AffineTransform at)
It applies an affine transformation to the geometry.
|
addVertex, addVertex, fixPoint, getVertex, toPoints
addMoveToVertex, addVertex, cloneCoordinates, closePrimitive, ensureCapacity, getCoordinateAt, getDimension, getGeneralPath, getNumVertices, getPathIterator, getShape, getShape, insertVertex, is3D, isClosed, iterator, removeVertex, setCoordinateAt, setGeneralPath, setPoints, setVertex
getHandlers
area, buffer, centroid, closestPoints, compareTo, contains, contains, contains, contains, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, fastIntersects, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, snapTo, toString, touches, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertex
area, buffer, centroid, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, out, overlaps, perimeter, rotate, scale, snapTo, toPoints, touches, union, within
contains, contains, contains, contains, getBounds, intersects
compareTo
public Polygon3DM()
subtype
- public Polygon3DM(Coordinate[] coordinates)
public void setSurfaceAppearance(SurfaceAppearance app)
Surface
setSurfaceAppearance
in interface Surface
app
- The appearance of the surfacepublic SurfaceAppearance getSurfaceAppearance()
Surface
getSurfaceAppearance
in interface Surface
public int getNumInteriorRings()
getNumInteriorRings
in interface Surface
public Ring getInteriorRing(int index)
getInteriorRing
in interface Surface
public void addInteriorRing(Ring ring)
addInteriorRing
in interface Surface
public void addInteriorRing(Line line)
Surface
addInteriorRing
in interface Surface
public void addInteriorRing(Polygon polygon)
Surface
addInteriorRing
in interface Surface
public void removeInteriorRing(int index)
removeInteriorRing
in interface Surface
public MultiLine toLines() throws GeometryException
Geometry
toLines
in interface Geometry
toLines
in class BaseLine3DM
GeometryException
public MultiPolygon toPolygons() throws GeometryException
Geometry
toPolygons
in interface Geometry
toPolygons
in class BaseLine3DM
GeometryException
public Geometry cloneGeometry()
Geometry
cloneGeometry
in interface Geometry
public com.vividsolutions.jts.geom.Geometry getJTS()
getJTS
in interface GeometryJTS
getJTS
in class AbstractLine
public PathIterator getPathIterator(AffineTransform at)
Geometry
getPathIterator
in interface Shape
getPathIterator
in interface Geometry
getPathIterator
in class AbstractLine
at
- The transformation to apply.public boolean ensureOrientation(boolean ccw) throws GeometryOperationNotSupportedException, GeometryOperationException
Geometry
ensureOrientation
in interface Geometry
ensureOrientation
in class AbstractGeometry
GeometryOperationNotSupportedException
GeometryOperationException
public void flip() throws GeometryOperationNotSupportedException, GeometryOperationException
Geometry
flip
in interface Geometry
flip
in class AbstractLine
GeometryOperationNotSupportedException
GeometryOperationException
public void transform(AffineTransform at)
Geometry
transform
in interface Geometry
transform
in class AbstractLine
at
- The transformation to apply.public Geometry offset(double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
offset
in interface Geometry
GeometryOperationNotSupportedException
GeometryOperationException
public void reProject(ICoordTrans ct)
Geometry
reProject
in interface Geometry
reProject
in class AbstractLine
ct
- Coordinate Transformer.public boolean equals(Object obj)
equals
in class AbstractGeometry