Open($userInfo); $map = new MgMap($siteConnection); $mdfId = new MgResourceIdentifier($_REQUEST["MapDefinition"]); $map->Create($mdfId, $mdfId->GetName()); $mapCs = $csFactory->Create($map->GetMapSRS()); $metersPerUnit = $mapCs->ConvertCoordinateSystemUnitsToMeters(1.0); echo "Meters per unit is: $metersPerUnit"; } ?>