[mapguide-users] Any coord. system to WGS84 (Google Earth)

Kenneth, GEOGRAF A/S ks at geograf.dk
Mon Jul 16 09:00:18 EDT 2007


I've found this code i buffer.php:

$srsFactory = new MgCoordinateSystemFactory();
$srsDefMap = GetMapSRS($map);
$srsMap = $srsFactory->Create($srsDefMap);
...
$srsXform = new MgCoordinateSystemTransform($srsDs, $srsMap);
...
$geomBuffer = $geom->Buffer($dist, $measure);
$geomBuffer = $geomBuffer->Transform($srsXform);

I have not tested it, but it should work. See the file buffer.php in the 
mapviewerphp folder.


Regards, Kenneth, GEOGRAF A/S



Jose Manuel C G skrev:
> I have my map in Ed50 UTM 29N system, and I want to make a parser to
> dinamically create a .kml file in WGS84, but I don't know how to do that
> (the transformation, the parser works).
>
> Can I use PROJ_4 to change this proyection in the .php file?
>
> Thks a lot.
>   


More information about the mapguide-users mailing list