将CAD文件转换为形状文件 [英] Converting a CAD file to a shape file

查看:112
本文介绍了将CAD文件转换为形状文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

一对夫妇:

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

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

除了形状文件(shp)格式以外,我还能使用更好的文件格式吗?

Is that a better file format I can use other than the shape file (shp) format?

任何建议都会被采纳

问候 克里斯

推荐答案

我也建议使用OGR,但仅适用于dwg/dxf 2000或更早版本;您可以使用Teigha( http://www.opendesign.com/)将文件转换为2000版本然后您可以使用OGR.

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.

我已经完成了从dwg到shp的大量转换,通常是使用Teigha将dwg转换为dwg 2000版,然后将dwg-200转换为形状文件.一旦有了shapefile,您就会看到该文件包含了所有图层,以便将每个图层分成不同的形状文件.我使用此命令

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-其中"LAYER ='X'" shape_converted_from_DWG_lines.shp

ogr2ogr new_map_from_layer_X.shp -where "LAYER = 'X'" shape_converted_from_DWG_lines.shp

这篇关于将CAD文件转换为形状文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆