Tag Info

Hot answers tagged

2

The fist problem is it's not an add-in. public class PanDown : ICommand should read public class PanDown : ESRI.ArcGIS.Desktop.AddIns.Tool or public class PanDown : ESRI.ArcGIS.Desktop.AddIns.Button Have a good read of this and start again from scratch, ensuring that you select an add-in type for your project when you start in Visual Studio. There ...


2

First note that IExportOperation interface doesn't export featureclasses or tables that containt a BloB field. So if a blob field exists in your featurelayer you should use "FeatureClassToFeatureClass" instead. In your question you mentioned you want to export each row to a shapefile but in your export path you set a path to a File Geodatabase! Here are ...


2

In your code you have: pWorkspaceName.PathName = "C:\\Users\\username\\Documents\\ArcGIS\\Default.gdb"; pWorkspaceName.WorkspaceFactoryProgID = "esriDataSourcesFile.ShapefileWorkspaceFactory"; As you have defined the path name to be a file geodatabase then the workspacefactory should be: pWorkspaceName.WorkspaceFactoryProgID = ...


1

Does the ogr2ogr command work? An easy one would be to run it from C#. Otherwise you can use the C# SWIG bindings, if you can get these for your programming environment with PGeo support. If you are using GDAL 1.x use OGR_DS_CopyLayer/OGRDataSource::CopyLayer (or whatever it is called in the C# bindings). Or if you are using GDAL 2.x, use ...



Only top voted, non community-wiki answers of a minimum length are eligible