You are here

abstract class GeoAdapter in geoPHP 8

Same name and namespace in other branches
  1. 7 geoPHP/lib/adapters/GeoAdapter.class.php \GeoAdapter

GeoAdapter : abstract class which represents an adapter for reading and writing to and from Geomtry objects

Hierarchy

Expanded class hierarchy of GeoAdapter

File

geoPHP/lib/adapters/GeoAdapter.class.php, line 15

View source
abstract class GeoAdapter {

  /**
   * Read input and return a Geomtry or GeometryCollection
   *
   * @return Geometry|GeometryCollection
   */
  public abstract function read($input);

  /**
   * Write out a Geomtry or GeometryCollection in the adapter's format
   *
   * @return mixed
   */
  public abstract function write(Geometry $geometry);

}

Members

Namesort descending Modifiers Type Description Overrides
GeoAdapter::read abstract public function Read input and return a Geomtry or GeometryCollection 8
GeoAdapter::write abstract public function Write out a Geomtry or GeometryCollection in the adapter's format 8