AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Implementing a new coordinate system

0 REPLIES 0
Reply
Message 1 of 1
andreas.schuller
462 Views, 0 Replies

Implementing a new coordinate system

Hello,

 

I am trying to find a way to integrate a non-standardized projected coordinate system into AutoCAD Map 3D. The non-standardized projection has been implemented in C++. The implementation does already provide functions for the conversion from (X, Y)  to (Lon, Lat) coordinates.  The Geospatial Platform API looks promising, but it's unclear for me, if it is possible to implement new projections.

 

I have already figured out how to change the coordinate system of a map.

 

The following C# code did the job for me:

 

AcMapMap currentMap = AcMapMap.GetCurrentMap();
MgCoordinateSystemFactory factory = new MgCoordinateSystemFactory();
MgCoordianteSystem coord_system = factory.CreateFromCode("LL");
currentMap.SetCoordinateSystem(coord_system);

 

Would it be possible to add a new projected coordinate system by generating a subclass of MgCoordianteSystem? If so, can this class be added to the list of known coordinate systems?

 

Best regards,

 

Andreas

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost