function render($doc)
 {
     $X = parent::render($doc);
     foreach ($this->Geometries as $Geometry) {
         $X->appendChild($Geometry->render($doc));
     }
     return $X;
 }
Exemple #2
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->Location)) {
         $X->appendChild($this->Location->render($doc));
     }
     if (isset($this->Orientation)) {
         $X->appendChild($this->Orientation->render($doc));
     }
     if (isset($this->Scale)) {
         $X->appendChild($this->Scale->render($doc));
     }
     return $X;
 }
Exemple #3
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->extrude)) {
         $X->appendChild(XML_create_text_element($doc, 'extrude', $this->extrude));
     }
     if (isset($this->tesselate)) {
         $X->appendChild(XML_create_text_element($doc, 'tesselate', $this->tesselate));
     }
     if (isset($this->altitudeMode)) {
         $X->appendChild(XML_create_text_element($doc, 'altitudeMode', $this->altitudeMode));
     }
     $X->appendChild(XML_create_text_element($doc, 'coordinates', join(',', $this->coordinates)));
     return $X;
 }
Exemple #4
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->extrude)) {
         $X->appendChild(XML_create_text_element($doc, 'extrude', $this->extrude));
     }
     if (isset($this->tesselate)) {
         $X->appendChild(XML_create_text_element($doc, 'tesselate', $this->tesselate));
     }
     if (isset($this->altitudeMode)) {
         $X->appendChild(XML_create_text_element($doc, 'altitudeMode', $this->altitudeMode));
     }
     $b = $X->appendChild($doc->createElement('outerBoundaryIs'));
     $b->appendChild($this->outerBoundaryIs->render($doc));
     if ($this->innerBoundaryIs) {
         $b = $X->appendChild($doc->createElement('innerBoundaryIs'));
         foreach ($this->innerBoundaryIs as $innerBoundaryIs) {
             $b->appendChild($innerBoundaryIs->render($doc));
         }
     }
     return $X;
 }