Polygon.withPrecisionModelSrid constructor

Polygon.withPrecisionModelSrid(
  1. LinearRing shell,
  2. List<LinearRing> holes,
  3. PrecisionModel precisionModel,
  4. int SRID,
)

Constructs a Polygon with the given exterior boundary and interior boundaries.

@param shell the outer boundary of the new Polygon, or null or an empty LinearRing if the empty geometry is to be created. @param holes the inner boundaries of the new Polygon , or null or empty LinearRings if the empty geometry is to be created. @param precisionModel the specification of the grid of allowable points for this Polygon @param SRID the ID of the Spatial Reference System used by this Polygon @deprecated Use GeometryFactory instead

Implementation

Polygon.withPrecisionModelSrid(LinearRing shell, List<LinearRing> holes,
    PrecisionModel precisionModel, int SRID)
    : this.withFactory(shell, holes,
          new GeometryFactory.withPrecisionModelSrid(precisionModel, SRID));