You are here

public function Geometry::setSRID in geoPHP 8

Same name and namespace in other branches
  1. 7 geoPHP/lib/geometry/Geometry.class.php \Geometry::setSRID()

File

geoPHP/lib/geometry/Geometry.class.php, line 52

Class

Geometry
Geometry abstract class

Code

public function setSRID($srid) {
  if ($this
    ->geos()) {
    $this
      ->geos()
      ->setSRID($srid);
  }
  $this->srid = $srid;
}