Tag Info

New 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 ...


0

Look into the SpatialLITE library. I would approach the problem by first loading your routes, then use buffer syntax on your 'segment of interest' with the 10 meters as buffer distance. Next, intersect the resulting buffer with all of your 1000+/- routes; the resulting intersection set will all have geometric lengths. If any lengths of the route ...


0

Assuming you are using ArcGIS, convert your line features to Linear Referenced Routes using the Create Route tool and setting the measures to use length in meters. All of the measure interpolation between nodes is done for you by an event table without any code just by providing a unique RouteID for the line you want and a measure value in meters in the ...


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 = ...


0

Beginning ArcGIS for Desktop Development using .NET, a book by Pouria Amirian, helped me to get into ArcGIS/ArcMap application development. I think this is one of the best reference books for beginners to start with basic .NET concepts and tying them into ArcObjects. It comes up with sample C# codes and data sets.


0

Try creating a BaseToolbar and add your BaseCommand to the BaseToolbar. For me, my BaseCommand never appeared in the Customize/Commands list. Once I added it to a toolbar, it started appearing. You don't need to use the toolbar once your BaseCommand is active. public sealed class YourToolbar : BaseToolbar { ..... public YourToolbar() { ...


0

Hope this mignt help you -Getting into ESRI ArcGIS Add-in Development in .Net and ArcObjects


0

mapserverUrl() must be a function that returns the mapserver.exe directory, where the Mapserver is installed, and "District2.map" is the Mapserver configuration file, the Mapfile. please check: http://www.mapserver.org/mapfile/


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 ...


0

Old question I know, but it still ranks high on google and is still relevant. Esri has an unsupported add-in to arcmap called PerfQAnalyzer. It can measure the draw time for different layers, it also has a scripting feature and can be run in a standalone mode as well. ...


0

Here are some troubleshooting steps: First, check to see if the published map service is cached or not. If the map service is cached, then you will need to update the cache in order to see the changes on the ArcGIS service. you will then need to create a script that will update the cache whenever new data is added to the raster database. If the map ...


1

To access the pixel data with IRaster2, IRasterCursor, and IPixelBlock3, et al: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_access_pixel_data_using_a_raster_cursor/00010000000t000000/ Looks like you could also use IRawBlocks and IRasterBandCollection: ...


3

Yes, but to explain why: I can tell that you have projected coordinates (as I assume you're in New Zealand) the numbers are quite large, much bigger than -180 to 180, which is probably New Zealand Transverse Mercator 2000: Projection type:Transverse Mercator Reference ellipsoid:GRS80 Datum:NZGD2000 Origin latitude:0° 00' 00" South Origin longitude / ...


1

I don't have a "50 reputation" to comment yet so I have to comment like this: What is the licensed product of ArcGIS that you are running? ArcGIS Basic (formerly ArcView) cannot edit an SDE workspace so if that is what you are using that could be your problem. If you are using ArcEngine, verify the licensed product that you are initializing your ...



Top 50 recent answers are included