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
Solved! Go to Solution.
Solved by plsmith. Go to Solution.
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
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.
Paul,
I am not talking about FDO and did not mention FDO.
MgCoordinateSystemFactory has absolutly nothing to do with FDO.
r,
dennis
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
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.