简体   繁体   English

将AutoCad图层导出到ESRI shapefile

[英]Export AutoCad Layer to ESRI shapefile

I need to export features from a particular layer in the Autocad2013 drawing to ESRI shapefile format. 我需要将要素从Autocad2013绘图中的特定图层导出为ESRI shapefile格式。 As I am using the c# , I have downloaded ObjectARX for Autocad. 当我使用c# ,我已经下载了用于Autocad的ObjectARX。 But I don't know whether any library support the direct conversion to shapefile format. 但是我不知道是否有任何库支持直接转换为shapefile格式。

I would be thankful if anyone could provide the right suggestion to doing this. 如果有人能提出正确的建议,我将不胜感激。

NetTopologySuite (NTS) is a .Net API that is used in Gis related applications. NetTopologySuite (NTS)是在Gis相关应用程序中使用的.Net API。 It does contain methods to export to shapefile. 它确实包含导出到shapefile的方法

The challenge here would be to convert the Autodesk Objects(AcDbPolyline etc..) to NTS type Geometries. 这里的挑战是将Autodesk对象(AcDbPolyline等)转换为NTS类型的几何图形。 TF.Net is another library that has a decent DwgReaderWriter to convert AutoCad geometries to Nts Geometries. TF.Net是另一个具有不错的DwgReaderWriter的库,可以将AutoCad几何转换为Nts几何。 TF.Net actually uses NTS as a reference itself so you need to take care of namespace collision. TF.Net实际上实际上使用NTS作为参考,因此您需要注意名称空间冲突。 Or you could use TF.Net alone without Nts but I am not sure if TF.Net has its underlying NTS updated to the latest version. 或者,您可以单独使用不带Nts的TF.Net,但是不确定TF.Net的基础NTS是否已更新为最新版本。

There are some samples on using TF.Net IO here 有使用TF.Net IO一些样品这里

Try FDO export options. 尝试FDO导出选项。

Mapguide API documentation and Autodesk Map3d developer documentation has some examples to help you. Mapguide API文档和Autodesk Map3d开发人员文档提供了一些示例来帮助您。 Also check the sample folder that comes along with Autodesk Map3d which has some sample applications. 还要检查Autodesk Map3d随附的示例文件夹,其中包含一些示例应用程序。

Here are some links that might be useful http://trac.osgeo.org/fdo/browser/trunk/Providers/SHP/Managed/UnitTest/ProviderTests/SelectTests.cs 以下是一些可能有用的链接: http://trac.osgeo.org/fdo/browser/trunk/Providers/SHP/Managed/UnitTest/ProviderTests/SelectTests.cs

http://trac.osgeo.org/fdo/browser/trunk/Providers/SHP/Managed/UnitTest/ProviderTests/UpdateTests.cs http://trac.osgeo.org/fdo/browser/trunk/Providers/SHP/Managed/UnitTest/ProviderTests/UpdateTests.cs

http://osgeo-org.1560.n6.nabble.com/Shapefile-and-spatial-context-td3900324.html http://osgeo-org.1560.n6.nabble.com/Shapefile-and-spatial-context-td3900324.html

通过AutoCAD Civil 3D进行Mapexport可以解决这个问题,或者让ARCGIS for AutoCAD看起来像是一个免费插件,可以与ESRI数据层共享AutoCAD线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM