Package org.geotools.gml
Class SubHandlerPoint
- Object
-
- SubHandler
-
- SubHandlerPoint
-
public class SubHandlerPoint extends SubHandler
Creates an OGC simple point.- 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 SubHandlerPoint()
Creates a new instance of GMLPointHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCoordinate(Coordinate coordinate)
Sets the coordinate for the point.Geometry
create(GeometryFactory geometryFactory)
Generates the point.boolean
isComplete(String message)
Determines whether or not this Point is ready to be created.-
Methods inherited from class SubHandler
getSRID, getSRS, setSRS, subGeometry, toString
-
-
-
-
Method Detail
-
addCoordinate
public void addCoordinate(Coordinate coordinate)
Sets the coordinate for the point.- Specified by:
addCoordinate
in classSubHandler
- Parameters:
coordinate
- Coordinate.
-
isComplete
public boolean isComplete(String message)
Determines whether or not this Point is ready to be created.- Specified by:
isComplete
in classSubHandler
- Parameters:
message
- GML element that prompted this query.- Returns:
- Ready for creation flag.
-
create
public Geometry create(GeometryFactory geometryFactory)
Generates the point.- Specified by:
create
in classSubHandler
- Parameters:
geometryFactory
- Geometry factory to be used to create the point.- Returns:
- Created Point.
-
-