AutoCAD Map 3D Developer

Reply
Contributor
plsmith
Posts: 11
Registered: ‎02-19-2008
Message 1 of 6 (804 Views)
Accepted Solution

Coordinate Conversions (UTM to LL etc)

804 Views, 5 Replies
10-05-2011 08:41 AM

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

 

 

 

 

Distinguished Contributor
djonio
Posts: 105
Registered: ‎12-29-2005
Message 2 of 6 (798 Views)

Re: Coordinate Conversions (UTM to LL etc)

10-05-2011 11:19 AM 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

Contributor
plsmith
Posts: 11
Registered: ‎02-19-2008
Message 3 of 6 (792 Views)

Re: Coordinate Conversions (UTM to LL etc)

10-05-2011 11:54 AM 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.

 

 

Distinguished Contributor
djonio
Posts: 105
Registered: ‎12-29-2005
Message 4 of 6 (788 Views)

Re: Coordinate Conversions (UTM to LL etc)

10-05-2011 12:25 PM 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



Contributor
plsmith
Posts: 11
Registered: ‎02-19-2008
Message 5 of 6 (786 Views)

Re: Coordinate Conversions (UTM to LL etc)

10-05-2011 12:39 PM 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

 

Contributor
plsmith
Posts: 11
Registered: ‎02-19-2008
Message 6 of 6 (783 Views)

Re: Coordinate Conversions (UTM to LL etc)

10-05-2011 02:04 PM 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.

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community