Polygon constructor

Polygon(
  1. LinearRing shell,
  2. PrecisionModel precisionModel,
  3. int SRID
)

Constructs a Polygon with the given exterior boundary.

@param shell the outer boundary of the new Polygon, or null or an empty LinearRing 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(LinearRing shell, PrecisionModel precisionModel, int SRID)
    : this.withFactory(shell, <LinearRing>[],
          new GeometryFactory.withPrecisionModelSrid(precisionModel, SRID));