I've searched online looking for an open source tool, script or source code. I need a stand alone Python script that can convert KML files to AutoCAD (DWG\DXF) without the reliance on ArcGIS. The reason is that our colleagues need to be able to convert KML files to AutoCAD (DWG\DXF) without have to contact us each time they need a KML file converted to AutoCAD (DWG\DXF). Any help to achieve the following will be appreciated.
Solved! Go to Solution.
Online you can get this free
Free KML Tools - KML to DXF Convertor
and a standalone tool here
and also okmap
without waisting time coding with pyhon
Take a look this usefool python tool if you want play python code
You're probably best trying this question elsewhere, since this is a support forum for Python in the context of ArcGIS. That said, if you need the exact implemention that ArcGIS provides, you could set up a server instance that does the conversion. If you're not afraid of the command line, you can also try your luck with ogr2ogr, which has a somewhat limited DXF AutoCAD 2000 driver:
ogr2ogr -f "DXF" destination.dxf source.kml
Both formats are complicated and have non-overlapping featuresets, so expect this to be a lossy translation.
Online you can get this free
Free KML Tools - KML to DXF Convertor
and a standalone tool here
and also okmap
without waisting time coding with pyhon
Take a look this usefool python tool if you want play python code
Hi Nicola
Thanks for the following, much appreciated.
If your primary goal is simply liberating your team from having to ask you for conversions, an even faster route than managing Python environments on their machines is using a web tool.
You can direct them to maparz.com. It is a completely free, browser-based online spatial converter that specifically targets KML to DXF/DWG conversion. It automatically transforms the KML geometric schema and reprojects coordinates silently in the background, rendering a perfectly clean AutoCAD file instantly without requiring a single line of code or software installations on their end.