Esempio n. 1
0
 /**
  * Prepare geometry
  */
 public function __toString()
 {
     // ST_TRANSFORM(ST_GEOMFROMTEXT('$geom'), $srid)
     if ($this->isWKT()) {
         return 'GeomFromText(' . SpatialiteBaseDriver::escapeValue($this->getValue()) . ',' . SpatialiteBaseDriver::escapeValue($this->getSrid()) . '
        )';
     }
     if ($this->type == self::TYPE_WKB) {
         return 'x' . $this->getValue();
     }
     return $this->getValue();
 }