Package org.geotools.gml
Class SubHandlerPolygon
Object
SubHandler
SubHandlerPolygon
Creates a Polygon geometry.
- Author:
- Ian Turton, CCG, Rob Hranac, Vision for New York
-
Field Summary
Fields inherited from class SubHandler
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCoordinate(Coordinate coordinate) Adds a coordinate to the current LinearRing.create(GeometryFactory geometryFactory) Returns the completed OGC Polygon.booleanisComplete(String message) Determines whether or not the geometry is ready to be returned.voidsubGeometry(String message, int type) Catches inner and outer LinearRings messages and handles them appropriately.Methods inherited from class SubHandler
getSRID, getSRS, setSRS, toString
-
Constructor Details
-
SubHandlerPolygon
public SubHandlerPolygon()Creates a new instance of GMLPolygonHandler.
-
-
Method Details
-
subGeometry
Catches inner and outer LinearRings messages and handles them appropriately.- Overrides:
subGeometryin classSubHandler- Parameters:
message- Name of sub geometry located.type- Type of sub geometry located.
-
addCoordinate
Adds a coordinate to the current LinearRing.- Specified by:
addCoordinatein classSubHandler- Parameters:
coordinate- Name of sub geometry located.
-
isComplete
Determines whether or not the geometry is ready to be returned.- Specified by:
isCompletein classSubHandler- Parameters:
message- Name of GML element that prompted this check.- Returns:
- Flag indicating whether or not the geometry is ready to be returned.
-
create
Returns the completed OGC Polygon.- Specified by:
createin classSubHandler- Parameters:
geometryFactory- Geometry factory to be used in Polygon creation.- Returns:
- Completed OGC Polygon.
-