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: 

Coordinate Conversions (UTM to LL etc)

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
plsmith
1547 Views, 5 Replies

Coordinate Conversions (UTM to LL etc)

I understand how to convert coordinate using the  ade_proj* functions.

 

Problem is, has anyone noticed that there is not a documented function to get a list of the CSCODE's so you can set the source and destination coordinate systems?

 

Here are the ADE_PROJ* functions in the documentation:

 

ade_projgetctgyname

 

Identifies the category that a coordinate system belongs to.

 

ade_projgetinfo

 

Gets information about a projection system.

 

ade_projgetwscode

 

Gets the project drawing's coordinate system code.

 

ade_projlistctgy

 

Lists available coordinate system categories.

 

ade_projlistcrdsysts

 

Lists available coordinate systems in a given category. 

This only lists the coordinate system's desciption, not the code!

 

ade_projptbackward

 

Computes new coordinates for a source point.

 

ade_projptforward

 

Computes new coordinates for a destination point.

 

ade_projsetdest

 

Sets the destination coordinate system.

 

ade_projsetsrc

 

Sets the source coordinate system.

 

ade_projsetwscode

 

Sets the project drawing's coordinate system.

 

Nowhere in the documentation does it provide a list of the cscode's needed to make these functions work.

 

Paul

 

 

 

 

5 REPLIES 5
Message 2 of 6
djonio
in reply to: plsmith

Paul,

Yes, I noticed some time back but I only needed a couple and I already new the codes.

Since I was never wedded to lisp and grew tired of the lack of documentation(.e.g ade_errsetlevel) I have since had much better success with using OSGeo.MapGuide within my .NET applications. MapGuide/Map3d have a of CS-Map implementation - MENTOR. In addition, it can be used outside a Map3d process.

It seems to have EVERYTHING.

If you are interested let me know and I will post a snippet to get u started.

r, dennis

Message 3 of 6
plsmith
in reply to: djonio

I have used the FDO with .NET to query from FDO source or save back to FDO source into AutoCAD Map 3D 2010.

This issue is dealing with existing LISP code and adding some functionality to it to for the coordinate conversion.

 

 

Message 4 of 6
djonio
in reply to: plsmith

Paul,

I am not talking about FDO and did not mention FDO.

MgCoordinateSystemFactory has absolutly nothing to do with FDO.

r,

dennis

Message 5 of 6
plsmith
in reply to: djonio

This is going to have to be a LISP solution. If anyone knows of an ADE_PROJxxxx a function that would return a list of coordinate system codes match to their descriptions (a dotted pair list?)  That's what should be in there and it's not documented.

 

Paul

 

Message 6 of 6
plsmith
in reply to: plsmith

Just found out, the "descriptions" are the codes.

 

The ade_projsetwscode will return T if the string is valid.  It is not limited to 8 characters as stated in the ADE Autolisp documentation.

 

Problem solved.

 

 

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

Post to forums  

Autodesk Design & Make Report

”Boost