* 42.943 -71.032
* 43.039 -69.856
*
*/
class GMLEnvelope extends GMLPolygon{
public function parseEnvelope ($domNode) {
$corner1 = $domNode->firstChild;
$corner2 = $corner1->nextSibling;
list($y1,$x1) = explode(' ',$corner1->nodeValue);
list($y2,$x2) = explode(' ',$corner2->nodeValue);
$this->addPoint($x1, $y1);
$this->addPoint($x1, $y2);
$this->addPoint($x2, $y2);
$this->addPoint($x2, $y1);
$this->addPoint($x1, $y1);
}
}
?>