java.lang.Object
org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.ShpFileParser
All Implemented Interfaces:
Serializable, ShapeFileConst

public class ShpFileParser extends Object implements Serializable, ShapeFileConst
See Also:
  • Constructor Details

    • ShpFileParser

      public ShpFileParser(org.apache.hadoop.fs.FSDataInputStream inputStream)
      create a new shape file parser with an input source that is instance of DataInputStream
      Parameters:
      inputStream -
  • Method Details

    • parseShapeFileHead

      public void parseShapeFileHead() throws IOException
      extract and validate information from .shp file header
      Throws:
      IOException
    • parseRecordPrimitiveContent

      public ShpRecord parseRecordPrimitiveContent() throws IOException
      abstract information from record header and then copy primitive bytes data of record to a primitive record.
      Returns:
      Throws:
      IOException
    • parseRecordPrimitiveContent

      public ShpRecord parseRecordPrimitiveContent(int length) throws IOException
      abstract information from record header and then copy primitive bytes data of record to a primitive record.
      Returns:
      Throws:
      IOException
    • parseRecordHeadID

      public int parseRecordHeadID() throws IOException
      abstract id number from record header
      Returns:
      Throws:
      IOException
    • getProgress

      public float getProgress()
      get current progress of parsing records.
      Returns: