Convert KML to DXF

Turn KML files into DXF. A DXF drawing of the shapes, all on layer 0, in the source's coordinates, since a DXF names no coordinate system, with the drawing units set to meters or feet when the source's system uses them and to unitless otherwise: points become points, lines become polylines and each ring of a polygon becomes a closed polyline, with heights kept in 3D.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop KML files on the dialor turn it to pick what to do

Shapes from Google Earth as CAD geometry.Points, lines and polygon rings become DXF entities in the source's coordinates.

  1. What you get

    One DXF drawing of the shapes in the KML file. Everything sits on layer 0. Points become points, and lines become polylines.

    Each ring of a polygon becomes a closed polyline. Heights are kept, so the geometry stays in 3D.

  2. Coordinates and units

    The shapes keep the source's coordinates, because a DXF names no coordinate system. The drawing units are set to meters or feet when the source's system uses them. Otherwise the drawing is unitless.

  3. What it leaves behind

    Names and attributes are dropped, so a placemark's label does not appear in the drawing. Features without a geometry are left out.

    Multipart shapes are split into their parts, and each part becomes its own entity.

KML and DXF.What each format is.

The formats

From · KML

KML

Placemarks, paths and polygons for Google Earth.

Extensions
.kml
MIME type
application/vnd.google-earth.kml+xml
Kind
Text and data
To · DXF

AutoCAD DXF

AutoCAD's drawing exchange format. Vector geometry that CAD programs share.

Extensions
.dxf
MIME type
image/vnd.dxf
Kind
Documents

In your code.The same KML to DXF conversion through the API, for your app or your agent.

terminal
$ cv convert report.kml report.dxf
$ cv convert report.kml report.dxf

Questions.What people ask about KML to DXF.

01OF 04

No. Attributes and names are dropped. Only the geometry is kept.

Each ring of a polygon becomes a closed polyline. A polygon with more than one ring gives more than one polyline.

Yes. Heights are kept in 3D.

All shapes are on layer 0.

More conversions.Other ways in and out of KML and DXF.