Class ShapefileHeader


  • public class ShapefileHeader
    extends Object
    Author:
    jamesm, Ian Schneider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAGIC  
      static int VERSION  
    • Constructor Summary

      Constructors 
      Constructor Description
      ShapefileHeader()  
    • Constructor Detail

      • ShapefileHeader

        public ShapefileHeader()
    • Method Detail

      • read

        public void read​(ByteBuffer file,
                         boolean strict)
                  throws IOException
        Throws:
        IOException
      • write

        public void write​(ByteBuffer file,
                          ShapeType type,
                          int numGeoms,
                          int length,
                          double minX,
                          double minY,
                          double maxX,
                          double maxY)
                   throws IOException
        Throws:
        IOException
      • getShapeType

        public ShapeType getShapeType()
      • getVersion

        public int getVersion()
      • getFileLength

        public int getFileLength()
      • minX

        public double minX()
      • minY

        public double minY()
      • maxX

        public double maxX()
      • maxY

        public double maxY()
      • toString

        public String toString()
        Overrides:
        toString in class Object