Spatial Reference

Open($userInfo); // Get an instance of the required service(s). $resourceService = $siteConnection-> CreateService(MgServiceType::ResourceService); // Finished basic initialization. // --------------------------------------------------// // Query the spatial reference system used for the map. $map = new MgMap($siteConnection); $map->Open($mapName); $srs = $map->GetMapSRS(); // Format it and display it in the task pane. echo '

Map ' . $map->GetName() . ' uses this reference system:

'; $srs = chunk_split($srs, 30); echo '
' . $srs . '
'; } catch (MgException $e) { echo "

Error: "; echo $e->GetDetails(); echo "

"; } ?>