Jump to content

Convert Long/Lat to Northing/Easting


Recommended Posts

I'm making a script which will draw a route line from a KML/ google earth in CAD, but I there co-ords given are in Long/Lat.


I'm currently sending the list of co-ords into my API to convert them server side, but this can be quite lengthy even with it all coordinates being converted concurrency, depending on the route length. is there a more simple way I can convert these which will also provide the speed? I understand the plotting of the route line in CAD will still take its time

Link to comment
Share on other sites

There is a formula to convert latitude-longitude to a grid (northing-easting) - something I looked at a while ago when it was quiet in work. If I remember right the formula is dependent on your position in the world - the closer you are to the poles the more correction needed to make straight perpendicular lines.


If you have the formula that you are happy with then it should be possible to convert that to a LISP and see if it is quicker to do it within CAD, noting that while the conversion might be slower taking away the human speed element to send the coordinated to your API and then back again might make the process overall quicker.


Big-Al I suspect will be along shortly to tell you to use the function in civil 3d (mapimport) rather than creating something new. After that it will just need a rule of which points to connect as lines 

  • Funny 1
Link to comment
Share on other sites

On 10/11/2023 at 10:00 AM, BIGAL said:

Yep import Lat Long is built in to CIV3D. 


Like Steven P had access to an external convert Lat Long program that produced XYZ file, it was for here in AUS.



@BIGAL, I think this is what you are referring to:



I think it used to be a small application named GEODD

  • Like 1
Link to comment
Share on other sites

How about using program like QGIS which is free to do the conversion for you... You can take a the KML and covert it into DXF or Shape... then just import it or open in AutoCAD.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...