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 TypeMethodDescriptionvoid
addCoordinate
(Coordinate coordinate) Adds a coordinate to the current LinearRing.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.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:
subGeometry
in classSubHandler
- Parameters:
message
- Name of sub geometry located.type
- Type of sub geometry located.
-
addCoordinate
Adds a coordinate to the current LinearRing.- Specified by:
addCoordinate
in classSubHandler
- Parameters:
coordinate
- Name of sub geometry located.
-
isComplete
Determines whether or not the geometry is ready to be returned.- Specified by:
isComplete
in 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:
create
in classSubHandler
- Parameters:
geometryFactory
- Geometry factory to be used in Polygon creation.- Returns:
- Completed OGC Polygon.
-