pointArray); if ($numberOfPoints > 0) { $str = ""; for ($i=0; $i < $numberOfPoints; $i++) { if ($i > 0) { $str .= ","; } if ($this->pointArray[$i]["z"]) { $str .= "[".$this->pointArray[$i]["x"].",".$this->pointArray[$i]["y"].",".$this->pointArray[$i]["z"]."]"; } else { $str .= "[".$this->pointArray[$i]["x"].",".$this->pointArray[$i]["y"]."]"; } } return "[" . $str . "]"; } $e = new mb_exception("KMLLinearRing: toGeoJSON: no points in this linear ring."); return ""; } } ?>