[mapguide-dev] GetLocalizedString
Scott Hameister
ScottH at mPower-tech.com
Wed Nov 15 20:01:07 EST 2006
Looking at the Last line of the Selected Code "$unitsType =
GetLocalizedString("DISTANCEMETERS", $locale);"
What is happening here??? Im not a PHP programmer and I cant find a function
Called GetLocalizedString anywhere..
.What would this be in a Map with no Coordsys? Or is that Irrelevant?
//get the map extent and calculate the scale factor
//
$mapExtent = $map->GetMapExtent();
$srs = $map->GetMapSRS();
if($srs != "")
{
$csFactory = new MgCoordinateSystemFactory();
$cs = $csFactory->Create($srs);
$metersPerUnit = $cs->ConvertCoordinateSystemUnitsToMeters(1.0);
$unitsType = $cs->GetUnits();
}
else
{
$metersPerUnit = 1.0;
$unitsType = GetLocalizedString("DISTANCEMETERS", $locale);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-internals/attachments/20061115/126a0827/attachment.html
More information about the Mapguide-internals
mailing list