Class ShpFileParser
java.lang.Object
org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.ShpFileParser
- All Implemented Interfaces:
Serializable,ShapeFileConst
- See Also:
-
Field Summary
Fields inherited from interface org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.ShapeFileConst
DOUBLE_LENGTH, EXPECT_FILE_CODE, EXPECT_FILE_VERSION, FIELD_DESCRIPTOR_TERMINATOR, FIELD_NAME_LENGTH, FILE_END_FLAG, HEAD_BOX_NUM, HEAD_EMPTY_NUM, HEAD_FILE_LENGTH_16BIT, INT_LENGTH, RECORD_DELETE_FLAG, RECORD_EXIST_FLAG -
Constructor Summary
ConstructorsConstructorDescriptionShpFileParser(org.apache.hadoop.fs.FSDataInputStream inputStream) create a new shape file parser with an input source that is instance of DataInputStream -
Method Summary
Modifier and TypeMethodDescriptionfloatget current progress of parsing records.intabstract id number from record headerabstract information from record header and then copy primitive bytes data of record to a primitive record.parseRecordPrimitiveContent(int length) abstract information from record header and then copy primitive bytes data of record to a primitive record.voidextract and validate information from .shp file header
-
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
extract and validate information from .shp file header- Throws:
IOException
-
parseRecordPrimitiveContent
abstract information from record header and then copy primitive bytes data of record to a primitive record.- Returns:
- Throws:
IOException
-
parseRecordPrimitiveContent
abstract information from record header and then copy primitive bytes data of record to a primitive record.- Returns:
- Throws:
IOException
-
parseRecordHeadID
abstract id number from record header- Returns:
- Throws:
IOException
-
getProgress
public float getProgress()get current progress of parsing records.- Returns:
-