[mapguide-users] Changing the status bar unit spelling
j.cook at oxfordarch.co.uk
Mon Dec 14 07:39:35 EST 2009
Yes, you're right. The wkt version of EPSG 27700 (British National Grid) has
"Meter" as the unit. Looks like I'm stuck with it then!
Thanks for your detective work!
Jackie Ng wrote:
> I was just following the trail of source code and it originates all the
> way back to the coordinate system of the map. At mapframe.php line 97:
> if($srs != "")
> $csFactory = new MgCoordinateSystemFactory();
> $cs = $csFactory->Create($srs);
> $metersPerUnit =
> $unitsType = $cs->GetUnits();
> $metersPerUnit = 1.0;
> $unitsType = GetLocalizedString("DISTANCEMETERS", $locale);
> $cs is an instance of MgCoordinateSystem
> $unitsType is the value that gets written to the ajaxmappanel.templ
> template and what the status bar uses to write the current position.
> The localized value DISTANCEMETERS defaults to "Meters" in localized\en.
> Since your one is in upper case it must have come from the coordinate
> system definition.
> So the culprit would seem to be the coordinate system of your map.
> - Jackie
View this message in context: http://n2.nabble.com/Changing-the-status-bar-unit-spelling-tp4163318p4163840.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users