public class SubHandlerPolygon extends SubHandler
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB| Constructor and Description |
|---|
SubHandlerPolygon()
Creates a new instance of GMLPolygonHandler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCoordinate(Coordinate coordinate)
Adds a coordinate to the current LinearRing.
|
Geometry |
create(GeometryFactory geometryFactory)
Returns the completed OGC Polygon.
|
boolean |
isComplete(String message)
Determines whether or not the geometry is ready to be returned.
|
void |
subGeometry(String message,
int type)
Catches inner and outer LinearRings messages and handles them appropriately.
|
getSRID, getSRS, setSRS, toStringpublic SubHandlerPolygon()
public void subGeometry(String message, int type)
subGeometry in class SubHandlermessage - Name of sub geometry located.type - Type of sub geometry located.public void addCoordinate(Coordinate coordinate)
addCoordinate in class SubHandlercoordinate - Name of sub geometry located.public boolean isComplete(String message)
isComplete in class SubHandlermessage - Name of GML element that prompted this check.public Geometry create(GeometryFactory geometryFactory)
create in class SubHandlergeometryFactory - Geometry factory to be used in Polygon creation.Copyright © 1996–2019 Geotools. All rights reserved.