将 CAD 文件转换为形状文件
感谢您对我之前的问题的帮助......我能够完成我的项目 这次我有一个使用 Autodesk 创建的 CAD 文件,我需要将其转换为形状文件。
几个问题:
一个可以将 CAD 文件转换为形状文件的开源应用程序(买不起 ESRI)?
除了形状文件 (shp) 格式之外,这是我可以使用的更好的文件格式吗?
任何建议将非常适用
问候 克里斯
Thanks for the assist on my previous question.... I was able to complete my project
This time I have a CAD file created with Autodesk that I need to convert to a shape file.
Couple of questons:
An open source application (can't afford ESRI) that can convert the CAD file to a shape file?
Is that a better file format I can use other than the shape file (shp) format?
Any suggestions would be greatly appricated
Regards
Chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我还建议使用 OGR,但仅适用于 dwg/dxf 版本 2000 或更早版本;您可以使用 Teigha (http://www.opendesign.com/) 将文件转换为 2000 版本然后就可以使用OGR了。
我已经完成了大量从 dwg 到 shp 的转换,我通常做的是使用 Teigha 将 dwg 转换为 dwg 版本 2000,然后将 dwg-200 转换为形状文件;一旦形状文件,您将看到该文件包含所有图层,以便将每个图层分成不同的形状文件我使用此命令
ogr2ogr new_map_from_layer_X.shp -where "LAYER = 'X'" shape_converted_from_DWG_lines.shp
I would also suggest to use OGR but in only works with dwg/dxf version 2000 or prior; you could use Teigha (http://www.opendesign.com/) to convert the files to 2000 version and then you can use OGR.
I've done tons of conversions from dwg to shp what I usualy do is convert the dwg to a dwg version 2000 using Teigha, then convert that dwg-200 to a shape file; once a shapefile you'll see that this file contains all the layer in order to separate each layer into a different shape file I use this command
ogr2ogr new_map_from_layer_X.shp -where "LAYER = 'X'" shape_converted_from_DWG_lines.shp
您应该使用 OGR
链接
它是地理格式之间转换的主要程序。它是用 C++ 编写的,但也有 python 绑定。它几乎可以在所有主要操作系统上编译和运行。
You should use OGR
Link
It is the main program for converting between geographic formats. It is written in C++ but there are also python bindings. It is compiled and runs on almost every major OS.
查看 ODA 有哪些内容:
http://www.opendesign.com/
Check out what ODA has:
http://www.opendesign.com/