You are here

public function KML::read in geoPHP 7

Same name and namespace in other branches
  1. 8 geoPHP/lib/adapters/KML.class.php \KML::read()

Read KML string into geometry objects

Parameters

string $kml A KML string:

Return value

Geometry|GeometryCollection

Overrides GeoAdapter::read

File

geoPHP/lib/adapters/KML.class.php, line 33

Class

KML
PHP Geometry/KML encoder/decoder

Code

public function read($kml) {
  return $this
    ->geomFromText($kml);
}