/** * Appends a new geometry to this multi geometry. * * @param object $aGeometry should be of type {@link KMLLine}, {@link KMLPoint}, * {@link KMLPolygon} or {@link KMLMultiGeometry}. * @return bool true, if appending the geometry succeeded; else false. */ public function append($aGeometry) { if (KMLGeometry::isGeometry($aGeometry)) { array_push($this->geometryArray, $aGeometry); return true; } return false; }
/** * @return string class name of geometry */ public function getGeometryType() { if (KMLGeometry::isGeometry($this->geometry)) { return $this->geometry->getGeometryType(); } $e = new mb_exception("class_kml_placemark.php: getGeometryType: Geometry not set."); return ""; }