Package org.geotools.gml
Class SubHandlerLinearRing
Object
SubHandler
SubHandlerLinearRing
Creates a simple OGC LinearRing (a closed LineString).
- 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 LinearRing.create
(GeometryFactory geometryFactory) Create the LinearRing.boolean
isComplete
(String message) Determine whether or not this LinearRing is ready to be created.Methods inherited from class SubHandler
getSRID, getSRS, setSRS, subGeometry, toString
-
Constructor Details
-
SubHandlerLinearRing
public SubHandlerLinearRing()Creates a new instance of GMLLinearRingHandler.
-
-
Method Details
-
addCoordinate
Adds a coordinate to the LinearRing.- Specified by:
addCoordinate
in classSubHandler
- Parameters:
coordinate
- The coordinate to add to the LinearRing.
-
isComplete
Determine whether or not this LinearRing is ready to be created.- Specified by:
isComplete
in classSubHandler
- Parameters:
message
- The current geometry type in the GML stream.- Returns:
- Ready for creation flag.
-
create
Create the LinearRing.- Specified by:
create
in classSubHandler
- Parameters:
geometryFactory
- The geometry factory used for the build.- Returns:
- LinearRing geometry created.
-