You are here

private function KML::pointToKML in geoPHP 8

Same name and namespace in other branches
  1. 7 geoPHP/lib/adapters/KML.class.php \KML::pointToKML()
1 call to KML::pointToKML()
KML::geometryToKML in geoPHP/lib/adapters/KML.class.php

File

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

Class

KML
PHP Geometry/KML encoder/decoder

Code

private function pointToKML($geom) {
  return '<' . $this->nss . 'Point><' . $this->nss . 'coordinates>' . $geom
    ->getX() . "," . $geom
    ->getY() . '</' . $this->nss . 'coordinates></' . $this->nss . 'Point>';
}