org.geotools.geojson.geom
Class GeometryHandlerBase<G extends Geometry>
Object
HandlerBase
GeometryHandlerBase<G>
- All Implemented Interfaces:
- IContentHandler<G>, ContentHandler
- Direct Known Subclasses:
- LineHandler, MultiLineHandler, MultiPointHandler, MultiPolygonHandler, PointHandler, PolygonHandler
public class GeometryHandlerBase<G extends Geometry>
- extends HandlerBase
- implements IContentHandler<G>
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ContentHandler |
endArray, endJSON, endObject, endObjectEntry, startArray, startJSON, startObject, startObjectEntry |
factory
protected GeometryFactory factory
ordinates
protected List<Object> ordinates
value
protected G extends Geometry value
GeometryHandlerBase
public GeometryHandlerBase(GeometryFactory factory)
getValue
public G getValue()
- Specified by:
getValue
in interface IContentHandler<G extends Geometry>
coordinate
protected Coordinate coordinate(List ordinates)
coordinates
protected Coordinate[] coordinates(List coordinates)
primitive
public boolean primitive(Object value)
throws ParseException,
IOException
- Specified by:
primitive
in interface ContentHandler
- Overrides:
primitive
in class HandlerBase
- Throws:
ParseException
IOException
Copyright © 1996-2014 Geotools. All Rights Reserved.