Package org.geotools.gml
Class SubHandlerBox
Object
SubHandler
SubHandlerBox
Creates a simple OGC box.
- 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
Sets a corner.create
(GeometryFactory geometryFactory) Builds and returns the polygon.boolean
isComplete
(String message) Sets a corner.Methods inherited from class SubHandler
getSRID, getSRS, setSRS, subGeometry, toString
-
Constructor Details
-
SubHandlerBox
public SubHandlerBox()Creates a new instance of GMLBoxHandler.
-
-
Method Details
-
addCoordinate
Sets a corner.- Specified by:
addCoordinate
in classSubHandler
- Parameters:
c
- the coordinate of the corner.
-
isComplete
Sets a corner.- Specified by:
isComplete
in classSubHandler
- Parameters:
message
- The geometry to inspect.- Returns:
- Flag for a complete geometry.
-
create
Builds and returns the polygon.- Specified by:
create
in classSubHandler
- Parameters:
geometryFactory
- the geometryFactory to be used to build the polygon.- Returns:
- the polygon.
-