1
vote
2answers
52 views

Conversion to SDE changes names

I could not find anything on this topic already discussed. We converted our file-based system in ESRI to an SDE instance on Sql Server. We made changes in our code to open using the connection string ...
2
votes
1answer
103 views

Slope tool error when running from arcObject add-in tool

My problem is related with Global DEM to Slope calculation. The slope tool works when raster is projected or the map is projected where the raster is added. And also, if the raster and map both are ...
3
votes
2answers
357 views

How to run a custom Geoprocessing tool using no parameters?

I created a custom geoprocessing tool called "CreateCoverLayer". It has no input or output parameters. I have the following snippet of code, but get an error message due to the fact that the Execute ...
3
votes
1answer
231 views

Getting “Failed to open tool” message when trying to run geoprocessing tool from C# code

I've been experimenting with the Military Aspects of Terrain Template, which has a toolbox associated with it. I've been using the following WPF Runtime code, which should open a tool in the ...
2
votes
3answers
454 views

Removing duplicate rows from a shapefile

I would like to write some c# code to delete duplicate rows from a shapefile stored in a folder. Can anyone provide me with an example or pointers on the best way to attempt this, please?
4
votes
1answer
635 views

How to declare ArcSDE workspace for Geoprocessing tool in ArcGIS 10.1 using ArcObjects and c#?

What is the proper way to declare an ArcSDE workspace for Geoprocessing tools in c# .net? I am using ArcGIS 10.1 SDE (MS SQL) on SQL Server 2008. I want to write code so that every night the server ...
1
vote
0answers
89 views

Calculating tiles extents using some level data

I have some data looking like this: <?xml version="1.0" encoding="utf-8"?> <levels> <level nr="0" tileWidth="512" tileHeight="512" envSizeX="5000" envSizeY="5000" minX="465000" ...
2
votes
2answers
2k views

Geoprocessor Select By Location Using Features Instead of Layers

I have a simple spatial feature selection function that includes: public static void SelectByLocation(IFeatureClass sourceFC, ILayer selectLayer) { Geoprocessor GP = new ...
3
votes
2answers
748 views

Why is ICalculator.Calculate significantly slower than the CalculateField geoprocessing tool with SDE datasets?

I just discovered today that there are essentially two ways to calculate field values in ArcObjects: 1. Using ESRI.ArcGIS.GeodatabaseUI.ICalculator: ITable table = …; ICursor updateCursor = ...
5
votes
1answer
369 views

GP Progress Dialog in ArcGIS10

I have an ArcGIS custom IGPFunction tool. I want to use the GP progress dialog not the progress bar at the bottom of the ArcGIS window as I don't want people to interact with the map whilst it's ...
4
votes
1answer
548 views

Need help with Merge GeoProcess task in ArcEngine (C#)

Help! Having the hardest time getting the correct syntax when adding layers as gp parameters to call the Merge_management GeoProcessing Task. Below is just one of MANY, MANY ways I have tried with ...
4
votes
1answer
485 views

Why is a Merge process via ArcObjects extremely slow?

In one of my arcobjects-based GIS tools I have a process which takes an array of shapefile paths and uses them as inputs with the ESRI.ArcGIS.DataManagement.Merge tool. I run it via a Geoprocessor ...
4
votes
1answer
520 views

How to use ICalculator with a pre-expression in C#

Another wonderful predicament. I am trying to use an instance of ICalculator to update a field based on another field. Textbook stuff. Unfortunately, the example in the SDK for C# is a bit lacking. ...
2
votes
1answer
718 views

Schema Lock issue when using ITable.AddField via ArcObjects

During a process I am running, I sometimes need to create a field that is missing in an attribute table. Unfortunately, the program is complaining that the table I am adding the field to has a schema ...
2
votes
1answer
575 views

How to control which Fields are exported in ArcObjects? (via Field Mapping)

In ArcMap 10.x, if you use the Export Data command on a layer that has hidden/disabled fields, those fields will not be present in the created feature class/table. My question is simple: how do you ...
0
votes
1answer
266 views

Getting ExecutionEngineException when using GetCount in loop

I've created a small ArcObjects app that searches for all matching files in a directory tree and returns the matched files with the number of rows in each file. When performing this loop on a small ...
1
vote
0answers
140 views

How to get SplineWithBarriers to work in C#

I have been having fits trying to get SplineWithBarriers to work but to no avail. My environment: Windows 7 64 bit Visual Studio 2010 Team Edition ArcMap Release Version 10.0 Product Version: ...
2
votes
1answer
156 views

Geoprocessing service - empty memory after calling

I'm following this sample for ADF libraries ...
6
votes
2answers
811 views

how to cluster points of interest by lat lon for my WP7 app

I have alread asked this question on SO, so I appologies if duplicating this is bad form. I will link to each of the sites if I get the right answer... ...