[Proj] OT: Geotrans's Neys Projection - Modified Lambert ConformalConic

Paul Selormey paul at toolscenter.org
Mon Dec 19 18:23:33 EST 2005


Sorry, the C# codes were part of a work I did for my former company.
Off course, I can always do it if there is a need. But the process is simple
and should take you less than 3 days.

Each Geotrans *.h/*.c pair file is an indepedendent projection, so can be
compiled individually with the exception of the (T)Mercator.
Here are the steps: C ---> C++ ---> C#
1. Change the *.c file extension to C++, and add a C++ class
2. The *.c contains static/globals fields, move all as members of the class
3. For quick C# conversion, try to maintain all the codes in the *.h file.
4. Make functions defined in the *.h/*.c files methods of the class.
5. For the C#, make the #defines "const" or "readonly" members
6. Use the Math.* for the maths functions
7. Use exceptions for the error codes. Each *.c contains the actual
   message of the error codes in its comments, so simply copy these as
     throw new YourException("message");
   and return "void" - may be subject to your design.
8. Change the comments to the C# style and add the test sample as part of
   the comment for quick copy and paste testing codes and if you have the
time
   and need, change these for NUnit tests. Some of the codes do not give the
   expected results in the documentations though.

I should have the intermediate/C++ codes somewhere in my PC, since I did 
this at home, I could look for it if you need this one.

Best regards,
Paul.


________________________________

        From: proj-bounces at lists.maptools.org
[mailto:proj-bounces at lists.maptools.org] On Behalf Of Friend, Darris E
        Sent: Tuesday, December 20, 2005 6:36 AM
        To: proj at lists.maptools.org
        Subject: [Proj] OT: Geotrans's Neys Projection - Modified Lambert
ConformalConic

        Paul,

        Would you be willing to share the C# code you converted?
        Thanks

        D. F.
        GIS Technician
        Gainesville Regional Utilities

        > Hello,
        > Thanks for the the information. I have now found the document. It
is
        > located in the users package. I was only using the developers
package.
        
        > By the way, I have nothing against GeoTrans. It is more suitable
for
        > a work I am doing now in .NET Framework. I easily ported it to C++
        > and then moved it to C# without any problem.
        
        > Best regard,
        > Paul.

        







More information about the Proj mailing list