org.geotools.gml
Class SubHandlerLineString
java.lang.Object
org.geotools.gml.SubHandler
org.geotools.gml.SubHandlerLineString
- public class SubHandlerLineString
- extends SubHandler
Creates a simple OGC LineString element.
- Version:
- $Id: SubHandlerLineString.java 17701 2006-01-23 00:00:51Z desruisseaux $
- Author:
- Ian Turton, CCG, Rob Hranac, Vision for New York
Method Summary |
void |
addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
Adds a coordinate to the LineString. |
com.vividsolutions.jts.geom.Geometry |
create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
Create the LineString. |
boolean |
isComplete(java.lang.String message)
Determine whether or not this LineString is ready to be created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SubHandlerLineString
public SubHandlerLineString()
- Empty constructor.
addCoordinate
public void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
- Adds a coordinate to the LineString.
- Specified by:
addCoordinate
in class SubHandler
- Parameters:
coordinate
- Coordinate to add to LineString.
isComplete
public boolean isComplete(java.lang.String message)
- Determine whether or not this LineString is ready to be created.
- Specified by:
isComplete
in class SubHandler
- Parameters:
message
- The geometry type.
- Returns:
- Ready for creation flag.
create
public com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
- Create the LineString.
- Specified by:
create
in class SubHandler
- Parameters:
geometryFactory
- The geometry factory needed to do the build.
- Returns:
- JTS LineString geometry.
Copyright © GeoTools. All Rights Reserved.