File "projection.phtml"
Full path: /www/map/mapserver-extensions/pmapper-4.2.0/plugins/coordinates/projection.phtml
File size: 544 B
MIME-type: text/x-php
Charset: utf-8
<?php
class Projection
{
function Projection($inX, $inY, $fromPrj, $toPrj)
{
$fromPrjObj = ms_newprojectionobj($fromPrj);
$toPrjObj = ms_newprojectionobj($toPrj);
$poPoint = ms_newpointobj();
$poPoint->setXY($inX, $inY);
$poPoint->project($fromPrjObj, $toPrjObj);
$this->x = $poPoint->x;
$this->y = $poPoint->y;
}
function getX()
{
return $this->x;
}
function getY()
{
return $this->y;
}
}
?>