forked from lino/radar-wp
Initial import.
This commit is contained in:
commit
86383280c9
428 changed files with 68738 additions and 0 deletions
31
vendor/phayes/geophp/lib/adapters/GeoAdapter.class.php
vendored
Normal file
31
vendor/phayes/geophp/lib/adapters/GeoAdapter.class.php
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
/*
|
||||
* (c) Patrick Hayes 2011
|
||||
*
|
||||
* This code is open-source and licenced under the Modified BSD License.
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* GeoAdapter : abstract class which represents an adapter
|
||||
* for reading and writing to and from Geomtry objects
|
||||
*
|
||||
*/
|
||||
abstract class GeoAdapter
|
||||
{
|
||||
/**
|
||||
* Read input and return a Geomtry or GeometryCollection
|
||||
*
|
||||
* @return Geometry|GeometryCollection
|
||||
*/
|
||||
abstract public function read($input);
|
||||
|
||||
/**
|
||||
* Write out a Geomtry or GeometryCollection in the adapter's format
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
abstract public function write(Geometry $geometry);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue