org.geotools.gml
Class SubHandlerLinearRing

java.lang.Object
  extended byorg.geotools.gml.SubHandler
      extended byorg.geotools.gml.SubHandlerLinearRing

public class SubHandlerLinearRing
extends SubHandler

Creates a simple OGC LinearRing (a closed LineString).

Version:
$Id: SubHandlerLinearRing.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
Ian Turton, CCG, Rob Hranac, Vision for New York

Field Summary
 
Fields inherited from class org.geotools.gml.SubHandler
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB
 
Constructor Summary
SubHandlerLinearRing()
          Creates a new instance of GMLLinearRingHandler.
 
Method Summary
 void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
          Adds a coordinate to the LinearRing.
 com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
          Create the LinearRing.
 boolean isComplete(java.lang.String message)
          Determine whether or not this LinearRing is ready to be created.
 
Methods inherited from class org.geotools.gml.SubHandler
subGeometry, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubHandlerLinearRing

public SubHandlerLinearRing()
Creates a new instance of GMLLinearRingHandler.

Method Detail

addCoordinate

public void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
Adds a coordinate to the LinearRing.

Specified by:
addCoordinate in class SubHandler
Parameters:
coordinate - The coordinate to add to the LinearRing.

isComplete

public boolean isComplete(java.lang.String message)
Determine whether or not this LinearRing is ready to be created.

Specified by:
isComplete in class SubHandler
Parameters:
message - The current geometry type in the GML stream.
Returns:
Ready for creation flag.

create

public com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
Create the LinearRing.

Specified by:
create in class SubHandler
Parameters:
geometryFactory - The geometry factory used for the build.
Returns:
LinearRing geometry created.


Copyright © GeoTools. All Rights Reserved.