Package org.geotools.gml
Class SubHandlerBox
- Object
-
- SubHandler
-
- SubHandlerBox
-
public class SubHandlerBox extends SubHandler
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 Constructor Description SubHandlerBox()Creates a new instance of GMLBoxHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCoordinate(Coordinate c)Sets a corner.Geometrycreate(GeometryFactory geometryFactory)Builds and returns the polygon.booleanisComplete(String message)Sets a corner.-
Methods inherited from class SubHandler
getSRID, getSRS, setSRS, subGeometry, toString
-
-
-
-
Method Detail
-
addCoordinate
public void addCoordinate(Coordinate c)
Sets a corner.- Specified by:
addCoordinatein classSubHandler- Parameters:
c- the coordinate of the corner.
-
isComplete
public boolean isComplete(String message)
Sets a corner.- Specified by:
isCompletein classSubHandler- Parameters:
message- The geometry to inspect.- Returns:
- Flag for a complete geometry.
-
create
public Geometry create(GeometryFactory geometryFactory)
Builds and returns the polygon.- Specified by:
createin classSubHandler- Parameters:
geometryFactory- the geometryFactory to be used to build the polygon.- Returns:
- the polygon.
-
-