org.geotools.gml
Class SubHandlerPoint

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

public class SubHandlerPoint
extends SubHandler

Creates an OGC simple point.

Version:
$Id: SubHandlerPoint.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
SubHandlerPoint()
          Creates a new instance of GMLPointHandler.
 
Method Summary
 void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
          Sets the coordinate for the point.
 com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
          Generates the point.
 boolean isComplete(java.lang.String message)
          Determines whether or not this Point 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

SubHandlerPoint

public SubHandlerPoint()
Creates a new instance of GMLPointHandler.

Method Detail

addCoordinate

public void addCoordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
Sets the coordinate for the point.

Specified by:
addCoordinate in class SubHandler
Parameters:
coordinate - Coordinate.

isComplete

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

Specified by:
isComplete in class SubHandler
Parameters:
message - GML element that prompted this query.
Returns:
Ready for creation flag.

create

public com.vividsolutions.jts.geom.Geometry create(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
Generates the point.

Specified by:
create in class SubHandler
Parameters:
geometryFactory - Geometry factory to be used to create the point.
Returns:
Created Point.


Copyright © GeoTools. All Rights Reserved.