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 SummaryConstructors Constructor Description GeoPkgGeomReader(byte[] bytes)GeoPkgGeomReader(InputStream input)GeoPkgGeomReader(InStream input)
 - 
Method SummaryAll 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- 
inputprotected InStream input 
 - 
headerprotected GeometryHeader header 
 - 
geometryprotected Geometry geometry 
 
- 
 - 
Constructor Detail- 
GeoPkgGeomReaderpublic GeoPkgGeomReader(InStream input) 
 - 
GeoPkgGeomReaderpublic GeoPkgGeomReader(InputStream input) throws IOException - Throws:
- IOException
 
 - 
GeoPkgGeomReaderpublic GeoPkgGeomReader(byte[] bytes) 
 
- 
 - 
Method Detail- 
getHeaderpublic GeometryHeader getHeader() throws IOException - Throws:
- IOException
 
 - 
getpublic Geometry get() throws IOException - Throws:
- IOException
 
 - 
getSimplifiedShapepublic Geometry getSimplifiedShape(Class type, double minX, double minY, double maxX, double maxY) 
 - 
getEnvelopepublic Envelope getEnvelope() throws IOException - Throws:
- IOException
 
 - 
readprotected Geometry read() throws IOException - Throws:
- IOException
 
 - 
readHeaderprotected GeometryHeader readHeader() throws IOException, ParseException - Throws:
- IOException
- ParseException
 
 - 
getFactorypublic GeometryFactory getFactory() - Returns:
- the factory
 
 - 
setFactorypublic void setFactory(GeometryFactory factory) - Parameters:
- factory- the factory to set
 
 - 
setHintspublic void setHints(Hints hints) 
 - 
setGeometryTypepublic void setGeometryType(Class geometryType) 
 
- 
 
-