Point constructor
Point(
- Coordinate? coordinate,
- PrecisionModel precisionModel,
- int SRID
Constructs a Point
with the given coordinate.
@param coordinate the coordinate on which to base this Point
, or null
to create the empty geometry.
@param precisionModel the specification of the grid of allowable points
for this Point
@param SRID the ID of the Spatial Reference System used by this
Point
@deprecated Use GeometryFactory instead
Implementation
Point(Coordinate? coordinate, PrecisionModel precisionModel, int SRID)
: super(
new GeometryFactory.withPrecisionModelSrid(precisionModel, SRID)) {
init(getFactory()
.getCoordinateSequenceFactory()
.create(coordinate != null ? [coordinate] : []));
}