Coordinate System API: ConvertCoordinateSystemCodeToWkt
";
$factory = new MgCoordinateSystemFactory();
$code = $_GET['CODE'];
$wkt = $factory->ConvertCoordinateSystemCodeToWkt($code);
$status = "Pass";
}
catch ( MgException $e )
{
$errorMsg = $e->GetExceptionMessage();
$status = "Fail";
}
catch ( Exception $e )
{
$errorMsg = $e->getMessage();
$status = "Fail";
}
echo "Code:
";
echo "$code
";
echo "OGC WKT:
";
echo "$wkt
";
echo "Status:
";
echo "$status
";
if($errorMsg != "")
{
echo "Error:
";
echo $errorMsg;
}
?>