org.geotools.gml
Class SubHandlerPoint

java.lang.Object
  extended by org.geotools.gml.SubHandler
      extended by org.geotools.gml.SubHandlerPoint

public class SubHandlerPoint
extends SubHandler

Creates an OGC simple point.

Version:
$Id: SubHandlerPoint.java 30648 2008-06-12 19:22:35Z acuster $
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
getSRID, getSRS, setSRS, 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 © 1996-2010 Geotools. All Rights Reserved.