Class GeoPkgGeomReader


  • public class GeoPkgGeomReader
    extends Object
    Translates a GeoPackage geometry BLOB to a vividsolutions Geometry.
    Author:
    Justin Deoliveira, Niels Charlier
    • Field Detail

      • input

        protected InStream input
      • 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)