setSRID method

Geometry setSRID(
  1. Geometry g,
  2. int SRID
)

Sets the SRID, if it was specified in the WKB

@param g the geometry to update @return the geometry with an updated SRID value, if required

Implementation

Geometry setSRID(Geometry g, int SRID) {
  if (SRID != 0) g.setSRID(SRID);
  return g;
}