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 Geometry
get()
Envelope
getEnvelope()
GeometryFactory
getFactory()
GeometryHeader
getHeader()
Geometry
getSimplifiedShape(Class type, double minX, double minY, double maxX, double maxY)
protected Geometry
read()
protected GeometryHeader
readHeader()
void
setFactory(GeometryFactory factory)
void
setGeometryType(Class geometryType)
void
setHints(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:
IOException
ParseException
-
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)
-
-