Lines Matching refs:wkt
45 * @param string $wkt A WKT string
49 public function read($wkt)
54 $wkt = trim(strtoupper($wkt));
57 if (preg_match('/^SRID=(\d+);/', $wkt, $m)) {
59 $wkt = substr($wkt, strlen($m[0]));
67 $geom = geoPHP::geosToGeometry($reader->read($wkt));
79 if ($geometry = $this->parseTypeAndGetData($wkt)) {
89 * @param string $wkt
94 private function parseTypeAndGetData($wkt)
97 if (preg_match('/^(?<type>[A-Z]+)\s*(?<z>Z*)(?<m>M*)\s*(?:\((?<data>.+)\)|(?<data_empty>EMPTY))$/', $wkt, $m)) {