setSRID method

void setSRID(
  1. int SRID
)

Sets the ID of the Spatial Reference System used by the Geometry.

NOTE: This method should only be used for exceptional circumstances or for backwards compatibility. Normally the SRID should be set on the {@link GeometryFactory} used to create the geometry. SRIDs set using this method will not be propagated to geometries returned by constructive methods.

@see GeometryFactory

Implementation

void setSRID(int SRID) {
  this.SRID = SRID;
}