You are here

public function Geometry::buffer in geoPHP 7

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

File

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

Class

Geometry
Geometry abstract class

Code

public function buffer($distance) {
  if ($this
    ->geos()) {
    return geoPHP::geosToGeometry($this
      ->geos()
      ->buffer($distance));
  }
}