Package org.geotools.gml
Class SubHandlerLinearRing
- Object
-
- SubHandler
-
- SubHandlerLinearRing
-
public class SubHandlerLinearRing extends SubHandler
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 Constructor Description SubHandlerLinearRing()Creates a new instance of GMLLinearRingHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCoordinate(Coordinate coordinate)Adds a coordinate to the LinearRing.Geometrycreate(GeometryFactory geometryFactory)Create the LinearRing.booleanisComplete(String message)Determine whether or not this LinearRing is ready to be created.-
Methods inherited from class SubHandler
getSRID, getSRS, setSRS, subGeometry, toString
-
-
-
-
Method Detail
-
addCoordinate
public void addCoordinate(Coordinate coordinate)
Adds a coordinate to the LinearRing.- Specified by:
addCoordinatein classSubHandler- Parameters:
coordinate- The coordinate to add to the LinearRing.
-
isComplete
public boolean isComplete(String message)
Determine whether or not this LinearRing is ready to be created.- Specified by:
isCompletein classSubHandler- Parameters:
message- The current geometry type in the GML stream.- Returns:
- Ready for creation flag.
-
create
public Geometry create(GeometryFactory geometryFactory)
Create the LinearRing.- Specified by:
createin classSubHandler- Parameters:
geometryFactory- The geometry factory used for the build.- Returns:
- LinearRing geometry created.
-
-