VERIFIED SOLUTION i
X

Determine coordinate system of a map in MapXtreme.Net.

UPDATED: April 5, 2017


Follow steps to determine the coordinate system of a map in MapXtreme.Net.

  • Load the default projection file in order to get the name.
  • Get the current coordinate system object for default map.
  • Assign the name of the coordinate system to a string variable.
Sample code snippet: 
//Load the Default Projection File so that the name can be obtained. 
MapInfo.Engine.Session.Current.CoordSysFactory.LoadDefaultProjectionFile();  

 //Get the Coordinate System object for the current map in the MapControl.   
  MapInfo.Geometry.CoordSys mapCoordSys = mapControl1.Map.GetDisplayCoordSys();    

  //Assign the name of the Coordinate System to a string variable.  
  string mapCoordSysName = MapInfo.Engine.Session.Current.CoordSysFactory.CoordSysName(mapCoordSys);

Environment Details

Product Feature: Coordinate System

 

Downloads

  • No Downloads