许可优化
许可优化
产品
产品
解决方案
解决方案
服务支持
服务支持
关于
关于
软件库
当前位置:服务支持 >  软件文章 >  CAD DXF格式转ESRI Shapefile:数据转换方法

CAD DXF格式转ESRI Shapefile:数据转换方法

阅读数 16
点赞 0
article_banner

1. CAD DXF格式 转ESRI shapefile

http://happysquirrel.com/index.php?feature=dxf2shp

此位牛人提供免费的在线转换。但是貌似没有源码。

用到的库是dxflib,c++开发,开放源代码。

自己抽空和 gdal  结合试着自己实现一个dxf2shp,文档说不用了解dxf文档的结构。按API行事即可。

dxflib库的开发文档:

http://www.ribbonsoft.com/dxflib/manual/overview.html

ogr的实现


ogr2ogr -f "ESRI Shapefile" C:\temp\contour.shp C:\temp\contour.dxf

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


IBM:http://www.ibm.com/developerworks/opensource/library/os-autocad/index.html


2. shapefile转PDF

计划使用libharu pdf库实现一个完整的输出地图pdf工具。

小实验倒是已经完成。


免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删

相关文章
技术文档
QR Code
微信扫一扫,欢迎咨询~
customer

online

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 board-phone 155-2731-8020
close1
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

姓名不为空

姓名不为空
手机不正确

手机不正确

手机不正确
公司不为空

公司不为空

公司不为空