function render($doc) { $X = parent::render($doc); if (isset($this->Geometry)) { $X->appendChild($this->Geometry->render($doc)); } return $X; }
function render($doc) { $X = parent::render($doc); if (isset($this->Features)) { foreach ($this->Features as $F) { $X->appendChild($F->render($doc)); } } return $X; }