Package org.geotools.gml
Class SubHandlerLineString
Object
SubHandler
SubHandlerLineString
Creates a simple OGC LineString element.
- 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 LineString.create(GeometryFactory geometryFactory) Create the LineString.booleanisComplete(String message) Determine whether or not this LineString is ready to be created.Methods inherited from class SubHandler
getSRID, getSRS, setSRS, subGeometry, toString
-
Constructor Details
-
SubHandlerLineString
public SubHandlerLineString()Empty constructor.
-
-
Method Details
-
addCoordinate
Adds a coordinate to the LineString.- Specified by:
addCoordinatein classSubHandler- Parameters:
coordinate- Coordinate to add to LineString.
-
isComplete
Determine whether or not this LineString is ready to be created.- Specified by:
isCompletein classSubHandler- Parameters:
message- The geometry type.- Returns:
- Ready for creation flag.
-
create
Create the LineString.- Specified by:
createin classSubHandler- Parameters:
geometryFactory- The geometry factory needed to do the build.- Returns:
- JTS LineString geometry.
-