Package org.geotools.geopkg.geom
Class GeoPkgGeomReader
- Object
-
- GeoPkgGeomReader
-
public class GeoPkgGeomReader extends Object
Translates a GeoPackage geometry BLOB to a vividsolutions Geometry.- Author:
- Justin Deoliveira, Niels Charlier
-
-
Constructor Summary
Constructors Constructor Description GeoPkgGeomReader(byte[] bytes)GeoPkgGeomReader(InputStream input)GeoPkgGeomReader(InStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometryget()EnvelopegetEnvelope()GeometryFactorygetFactory()GeometryHeadergetHeader()GeometrygetSimplifiedShape(Class type, double minX, double minY, double maxX, double maxY)protected Geometryread()protected GeometryHeaderreadHeader()voidsetFactory(GeometryFactory factory)voidsetGeometryType(Class geometryType)voidsetHints(Hints hints)
-
-
-
Field Detail
-
input
protected InStream input
-
header
protected GeometryHeader header
-
geometry
protected Geometry geometry
-
-
Constructor Detail
-
GeoPkgGeomReader
public GeoPkgGeomReader(InStream input)
-
GeoPkgGeomReader
public GeoPkgGeomReader(InputStream input) throws IOException
- Throws:
IOException
-
GeoPkgGeomReader
public GeoPkgGeomReader(byte[] bytes)
-
-
Method Detail
-
getHeader
public GeometryHeader getHeader() throws IOException
- Throws:
IOException
-
get
public Geometry get() throws IOException
- Throws:
IOException
-
getSimplifiedShape
public Geometry getSimplifiedShape(Class type, double minX, double minY, double maxX, double maxY)
-
getEnvelope
public Envelope getEnvelope() throws IOException
- Throws:
IOException
-
read
protected Geometry read() throws IOException
- Throws:
IOException
-
readHeader
protected GeometryHeader readHeader() throws IOException, ParseException
- Throws:
IOExceptionParseException
-
getFactory
public GeometryFactory getFactory()
- Returns:
- the factory
-
setFactory
public void setFactory(GeometryFactory factory)
- Parameters:
factory- the factory to set
-
setHints
public void setHints(Hints hints)
-
setGeometryType
public void setGeometryType(Class geometryType)
-
-