1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > dxf geojson 转换 如何将CAD(DWG)文件转换为GeoJSON?

dxf geojson 转换 如何将CAD(DWG)文件转换为GeoJSON?

时间:2023-06-19 13:01:18

相关推荐

dxf geojson 转换 如何将CAD(DWG)文件转换为GeoJSON?

I'm working on openlayers and need to change the format of dwg to GeoJSON with ArcGIS.

how can i do this?

解决方案

Indeed, GDAL has the necessary tools to get this done. ogr2ogr is a program included with GDAL that can transform a variety of formats, including DWG. If you don't already have GDAL installed, here are good tutorials for windows and mac/linux. The following guide recommends converting to a DXF first, since the library for converting from DXF is included by default with GDAL. You will need to install some additional dependencies to convert directly from DWG. If you convert to DXF first, you can then use command line to convert to GeoJson:

ogr2ogr -f GeoJSON ./mynewfile.geojson ./mycadfile.dxf

If you are using ArcGIS Desktop there is a CAD to Geodatabase tool that you can use.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。