将 CAD 文件转换为形状文件

发布于 2024-09-12 17:48:22 字数 245 浏览 4 评论 0原文

感谢您对我之前的问题的帮助......我能够完成我的项目 这次我有一个使用 Autodesk 创建的 CAD 文件,我需要将其转换为形状文件。

几个问题:

  1. 一个可以将 CAD 文件转换为形状文件的开源应用程序(买不起 ESRI)?

  2. 除了形状文件 (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:

  1. An open source application (can't afford ESRI) that can convert the CAD file to a shape file?

  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

故人如初 2024-09-19 17:48:22

我还建议使用 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

[浮城] 2024-09-19 17:48:22

您应该使用 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.

如日中天 2024-09-19 17:48:22

查看 ODA 有哪些内容:

http://www.opendesign.com/

Check out what ODA has:

http://www.opendesign.com/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文