public static function parsePoint($domNode)
 {
     $gmlPoint = new GmlPoint();
     $currentSibling = $domNode->firstChild;
     while ($currentSibling) {
         $coordArray = explode(" ", $currentSibling->nodeValue);
         $gmlPoint->setPoint($coordArray[0], $coordArray[1]);
         $currentSibling = $currentSibling->nextSibling;
     }
     return $gmlPoint;
 }
示例#2
0
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gml') . ':' . 'Point':
             $point = new GmlPoint();
             $point->transferFromDOM($child);
             $this->_point = $point;
             break;
     }
 }