Class PolygonParser
java.lang.Object
org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.ShapeParser
org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.PolygonParser
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.ShapeParser
geometryFactory -
Constructor Summary
ConstructorsConstructorDescriptionPolygonParser(org.locationtech.jts.geom.GeometryFactory geometryFactory, ShapeType shapeType) create a parser that can abstract a Polygon from input source with given GeometryFactory. -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.GeometryparseShape(ShapeReader reader) abstract abstract a Polygon shape.Methods inherited from class org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.ShapeParser
isNoData, readCoordinates, readCoordinatesWithM, readCoordinatesWithZM, readOffsets
-
Constructor Details
-
PolygonParser
public PolygonParser(org.locationtech.jts.geom.GeometryFactory geometryFactory, ShapeType shapeType) create a parser that can abstract a Polygon from input source with given GeometryFactory.- Parameters:
geometryFactory- the geometry factory
-
-
Method Details
-
parseShape
abstract abstract a Polygon shape.- Specified by:
parseShapein classShapeParser- Parameters:
reader- the reader- Returns:
- the geometry
-