importing kml line into autocad/civil3d

importing kml line into autocad/civil3d

ATIFAHMED1234
Advocate Advocate
2,021 Views
10 Replies
Message 1 of 11

importing kml line into autocad/civil3d

ATIFAHMED1234
Advocate
Advocate

I am exporting a kml line through a software in cad format. Problem is that the coordinates of line seem to be changed. UTM WGS 84 ,ZONE 45.Files attached

0 Likes
Accepted solutions (1)
2,022 Views
10 Replies
Replies (10)
Message 2 of 11

ChicagoLooper
Mentor
Mentor

Attachment? Upload your file. 

Chicagolooper

EESignature

0 Likes
Message 3 of 11

ATIFAHMED1234
Advocate
Advocate

I am not able to attach kmz...autocad attached

0 Likes
Message 4 of 11

Pointdump
Consultant
Consultant

Hi Atif,
This forum will accept almost anything if you zip your files.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 5 of 11

ATIFAHMED1234
Advocate
Advocate

Hi Dave,

I have attached a zip file

0 Likes
Message 6 of 11

TerryDotson
Mentor
Mentor

I am exporting a kml line through a software in cad format. Problem is that the coordinates of line seem to be changed. UTM WGS 84 ,ZONE 45.Files attached


When you say "a software" we assume you mean Civil3D?  Three problems I see:

 

  1. The INSUNITS shows "2" which is feet, the drawing needs to be set to "6", meters.
  2. The file does not have the proper coordinate system (UTM84-45N) assigned, easily checked with the CGEOCS system variable.  Use Civil3Ds "Edit Drawing Settings" tool (in ToolSpace Settings) to set it and other parameters properly.
  3. Parts of the .KMZ are missing, it only shows the largest polyline.

The polyline appears to be in the proper coordinates.  Insert the attached DWG imported using a different tool to compare (and see the remaining content present in the .KMZ).

 

Strangely, the Civil3D EXPORTKML tool puts the model deep into the Indian Ocean?

 


I have attached a zip file.

Note that .RAR files require an app on stock Windows that some users may not have or be allowed to install.  For best compatibility, always use a .ZIP instead.

0 Likes
Message 7 of 11

Pointdump
Consultant
Consultant

Atif,
Thanks for posting your KMZ.
Need more details describing the problem.
"...exporting a kml line through a software..."
Which software?
"...the coordinates of line seem to be changed."
Changed after what operation?
Using MAPIMPORT in a new Civil 3D(UTM84-45N coordinate system) drawing, your KMZ drops in the same place as Google Earth.
Dave

 

X_1.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 8 of 11

ChicagoLooper
Mentor
Mentor
Accepted solution

Hello @ATIFAHMED1234 

Do you have Google Earth Pro (don't confuse Google Earth Pro with Google Map you run from your browser. GE Pro is a stand alone program). If you have GE Pro you can fix your linework easily.

 

1. Open Google Earth Pro=>Double click your file named x.kmz =>Right click Vikramshila.kml under Temporary Places of the Places Panel on the left (image-1).

 Image-1Image-1

 

2. Next, click Save Place As=>Save in your Project folder with .kml extension (image-2).

Image-2Image-2

 

3 Go to Civil 3D=>Open a brand new, clean Metric Template=>MAPCSASSIGN on command line=>Search box UTM84-45=> Select EPSG 32645=>Click Assign (image-3).

Image-3Image-3

 

 4. On command line type MAPIMPORT=>Browse to Vikramshila.kml=>OK (image-4)

Image-4Image-4

 

5. To import your kml, follow steps 1 through 7 (image-5)........Then.......... 

Image-5Image-5

 

6. ......continuation......follow steps 8 through 11 (image-6).

Image-6Image-6

 

 

7. Finally, go to Geolocation Tab=>Online Map Panel=>change Map Off to Map Hybrid. Select the boundary=>scroll to bottom of Properties Palette to view the OBJECT DATA.

Image-7Image-7

 

Unselect the boundary line. Select another line and view the OD in the Prop Palette. Continue to select and view other lines. 

 

Chicagolooper

EESignature

Message 9 of 11

lim.wendy
Alumni
Alumni

Hi @ATIFAHMED1234 

Welcome to the Civil 3D forum. Thank you for submitting your question in our discussion forums.

 

It looks like @ChicagoLooper  provided you with the steps to import kml line into Civil 3d, so for now, I am going to mark this thread as "Solved." This won't prevent other folks from commenting on this question though, in the event other ideas come up! 

 

You could unmark the post as an accepted solution if the solution did not work. Click the ellipsis menu  > Not the Solution to cancel an accepted answer. 

 

Please let me know if you require further assistance.

If the suggestions helped you, please hit the "Accept Solution" button, as it helps make the solution easier to find for others who might have the same issue. Knowing which topics are solved or not can also help our many users find the questions that still need to be answered. It’s also a great way to say thank you and give recognition to whoever helped you. 

 



Wendy Lim

Data Nerd | Community Advocate | AEC Industry


facebook twitter twitter blogs pm


Join the new online Rail Community


Rails Summit




0 Likes
Message 10 of 11

flopez
Explorer
Explorer

Hi Wendy.

  I can not import the point numbers following the steps you made because the Object Data Mapping fields is empty. The KML file has point numbers. What can I do to see the point numbers on the drawing?

EmptyFields.jpg

 

Thank you.

0 Likes
Message 11 of 11

ChicagoLooper
Mentor
Mentor

Hi @flopez 

Depending on the schema in your KML, you might, or might not, be able to add the point numbers using MAPIMPORT command.

To acquire the schema, try using steps 1 through 11 shown below. In step 4, be sure to scroll down to then check the box next to kml_name. If you skip this step (or do it incorrectly) you won't be able to display the kml point numbers.  

*Complete all 11 steps in numerical order.*

 

105.PNG106.png

 

If you are still unable to display the point numbers, you'll need to investigate the kml creation procedure used by the kml's author. 

 

Chicagolooper

EESignature