1<?php
2/*
3 * (c) Patrick Hayes 2011
4 *
5 * This code is open-source and licenced under the Modified BSD License.
6 * For the full copyright and license information, please view the LICENSE
7 * file that was distributed with this source code.
8 */
9
10/**
11 * GeoAdapter : abstract class which represents an adapter
12 * for reading and writing to and from Geomtry objects
13 *
14 */
15abstract class GeoAdapter
16{
17  /**
18   * Read input and return a Geomtry or GeometryCollection
19   *
20   * @return Geometry|GeometryCollection
21   */
22  abstract public function read($input);
23
24  /**
25   * Write out a Geomtry or GeometryCollection in the adapter's format
26   *
27   * @return mixed
28   */
29  abstract public function write(Geometry $geometry);
30
31}
32