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

public class PolygonParser extends ShapeParser
See Also:
  • 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

      public org.locationtech.jts.geom.Geometry parseShape(ShapeReader reader)
      abstract abstract a Polygon shape.
      Specified by:
      parseShape in class ShapeParser
      Parameters:
      reader - the reader
      Returns:
      the geometry