Community
Hi,
Does anyone know how to set the SRS for the current map.
I can see where you can get the SRS for the current map (cmap.GetMapSRS or cmap.MapSRS) and I can see where to set it when you create a new map but I can not find where to alter the existing one.
Any help would be greatly appreciated.
Thanks.
public void SetMapSRS(string srsCode)
{
Autodesk.Gis.Map.MapApplication mapApp = Autodesk.Gis.Map.HostMapApplicationServices.Application;
Autodesk.Gis.Map.Project.ProjectModel projModel = mapApp.ActiveProject;
projModel.Projection = srsCode;
}
For example:
SetMapSRS("CA-I");
Hope this helps.