ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products, ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.
2
votes
1answer
42 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 ...
0
votes
0answers
149 views
How to convert Graphic Layer to Feature Layer in ArcGIS 10.1
In general Graphics can be converted into Features manually from Drawing Toolbar option convert Graphics to Feature.
My requirement here is i want to convert through code using ArcObjects and C#. One ...
3
votes
1answer
76 views
Running Regular Queries Through ArcSDE
Working on an .net arcobjects app that's connecting to a Geodatabase (Oracle) through ArcSDE. I make a bunch of edits inside a EditSession but the data I am touching have a bunch of foreign Key ...
2
votes
1answer
54 views
Write table blob field to file
I have a table with blob field and some others as well. I am trying to read blob field and save it to file using IBlobStream, and the thing compiles. The problem comes up in run-time, when calling ...
0
votes
2answers
71 views
Object does not exist in the namespace “http://schemas.esri.com/arcgis/client/2009”
I am trying to move all of my GIS code over the Visual Studio 2012. I have added the following references:
C#:
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Geometry;
using ...
1
vote
0answers
56 views
Is ArcFM or ArcMap leaking memory when switching between page templates?
Can anyone else reproduce the memory leak described below? Any insight into what may be causing the leak is appreciated.
I have custom code that swaps between landscape and portrait templates and ...
3
votes
0answers
54 views
ArcObjects running in Addin slower?
I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
0
votes
1answer
54 views
ArcCatalog 10.1 tree doesn't refresh after adding new custom IGxObject at runtime
I am using ArcObjects 10.1 (.NET) to customize ArcCatalog: adding new nodes in catalog tree like in the Esri's example. But when I add new child node to already expanded parent, it doesn't show up in ...
0
votes
0answers
28 views
ESRI AddFeatures call on rest endpoint with attributes
I can add a line feature via the rest endpoint with my hand crafted call from C#. However, if i add any attributes to the call it will fail and say unable to perform operation.
All of the fields in ...
1
vote
0answers
35 views
Create Configurable Extension in ArcGIS Desktop
I am creating a configurable extension for ArcGIS desktop 10.1
I am not using Add-on , so please don't suggest add-on.
How can I disable some toolbars and commands, when the extension is disabled?
I ...
2
votes
1answer
93 views
Write string to status bar that doesn't go away
I'm attempting to write the number of items matching a given query to the statusbar. when i debug through the code, i am able to step through and see the message hit the statusbar, but then it ...
3
votes
1answer
37 views
ArcObjects Geoprocessing Failures
I am working on launching the GenerateNearTable using the ArcObjects Assembly method. I have the advanced license (10.1), so the tool is available. The code to launch geoprocessing is:
Private ...
3
votes
1answer
28 views
How can I hide a tool from command window under category
I have created a tool, a button and a dockable window under one project. To open/close the dockable window, button is used. For some specific work, by clicking some specific button from dockable ...
0
votes
0answers
11 views
Get Conflict Value from ConflictWindow
When i reconcile a version in my Arc Map. I am getting conflicts which i was able to see in a conflictwindow. I want to read conflict values only from the conflictwindow. So that i can generate a log ...
1
vote
0answers
46 views
ArcGIS Add-In Project to Standard Library Project
I have been developing an ArcGIS 10 Add-In tool, but requirements changed halfway through development. Fortunately, this isn't changing any of the code, but I just need to be able to compile the ...
1
vote
0answers
32 views
add an INDEX to an IFeatureClass with ARCGIS Java sdk
I want to add an index to a feature class. To do so, I used the very short and complete example given there:
...
1
vote
2answers
57 views
cast from IFeatureClass to ISchemaLock
I'm programming with the ARCGIS Java SDK, in Eclipse.
I need to cast an IFeatureClass to an ISchemalock. This cast is supposed to be allowed. There is an example of this cast in:
...
2
votes
1answer
39 views
How to display point features w.r.t field values of a polygon file in arcobjects?
I have a point & polygon shapefile. Point file has a field namely, Type: atm,hospital,school etc... Polygon file has a field Zone: Zn1, Zn2, Zn3. There will be two combo boxes which will populate ...
2
votes
1answer
47 views
How to convert existing lines to polygons with Arcobjects, preferably in C#?
Does anyone know how to convert existing line geometry to polygons with arcobjects as it works with the geoprocessing tool "feature to polygon"?
0
votes
0answers
47 views
Snapping with mutiple custom tool using diffrent snapping types
I have a custom tool with snapping type is (snapping to point + snapping to edge), and the second tool having snapping type is snapping to point only, so when i select the first tool it works well, ...
0
votes
1answer
51 views
Featureclass search failing in C++. But working in C#
I need to perform search on a FeatureClass using ISpatialFilter for a given Point (x,y).
I wrote a program in C# to do that and its retrieving the features as expected. But the similar program in C++ ...
1
vote
1answer
340 views
Calculate polygon area inside extent
We're using ArcMap 10.0 sp5, creating a tool in c# using the ArcObjects sdk.
Is there a built in function or simple set of steps that calculates the area of each feature of a polygon layer within a ...
3
votes
0answers
33 views
drawing line from points
I have a series of XY coordinates. I want to use these points to draw a line in ARCMAP using arcobject10.1 using c#. I have saved this in a table inside geodatabase.Am i supposed to create a feature ...
2
votes
2answers
993 views
Create Polylines from arrays of points
Let me describe the data setup. A line has been provided as an array of coordinate pairs, one for each vertex. This array is variable in size, anywhere from 2 to 200 coordinate pairs per line. What I ...
2
votes
0answers
20 views
ArcObjects: Custom GP tools: GPCompositeDataType and DataType
I got an issue with the parameter value's datatype returned when using composite type parameters. In my case, I create a composite of DEWorkspaceType and DEFeatureClassType:
IGPCompositeDataType ...
3
votes
1answer
34 views
ArcObjects (VB.Net) Python Integration with object passing?
This link illustrates one method for calling python scripts from within an ArcObjects environment. The results of these tasks are returned as strings. I wonder if it is possible to call a python ...
3
votes
2answers
71 views
How to do raster conditional comparisons in .NET?
I am comparing a raster with a constant value by raster calculator. Now I want to do this in a c# code.
Question
Is there any process to do this kind of raster conditional comparison in .net?
1
vote
0answers
59 views
Getting started with development for ArcGIS Server
I'm currently working on upgrading a C# web service I wrote a couple of years ago built against ArcGIS Server to ArcGIS Server 10. The application in question does some basic spatial queries and ...
2
votes
2answers
394 views
What issues exist with using log4net as a logging framework for ArcGIS Desktop?
While updating some ArcObjects projects to ArcGIS 10, I realized that I don't have a comprehensive logging strategy. Sometimes it's log4net. Sometimes it's System Trace/Debug. Sometimes custom ...
0
votes
1answer
26 views
how to create table and layer in c#
I have used Make XY Event Layer to Creates a new point feature layer based on x- and y-coordinates using python and it worked for me. Now as a need of my project i want to apply the same in c# using ...
0
votes
0answers
35 views
Is snapping working when changing from NAD83(decimal degree) to NAD83 Zone UTM 11N(meters)?
I've used the following ESRI snippet to Convert the display extents in Pixels (at the current map scale) and then return out the map units.
public System.Double ...
1
vote
1answer
40 views
ArcGIS crashes with no error number in Visual Studio
I've been developing Add-ins for a while with Visual Studio 2008 and ArcGIS 10.
But in my new Add-in development process, I receive no error from Visual studio and ArcGIS crashes with error "Arcgis ...
2
votes
1answer
593 views
How to edit a given version of geodatabase?
I have a versioned geodatabase. Any of that versions are used only by one user. So then user called "XXX" has a version called "XXX". So then now I want to make a changes on given version, but when I ...
2
votes
0answers
40 views
Differentiate between 10-based Locator and Other Locators
In ESRI documentation, it states that the IAdvancedIntersectionGeocoding interface is only available for use in older locators (9.3.1 and below). I have verified this statement. One major problem is ...
0
votes
0answers
26 views
Can I access the request URL in a Server Object Extension (SOE)
I would like to obtain the full URL of a REST request inside of an ArcGIS Server SOE.
I would like to return the full URL to an output file. But, the service may be exposed on different servers or ...
1
vote
1answer
20 views
VB.Net Field Population Methods
Disclaimer: I am basically brand new to VB.NET and ArcObjects.
I am computing some statistics as a component of a larger arcobject script. I write these components to an ITable. This ITable is ...
3
votes
2answers
900 views
How to list ActiveView SelectionChanged event delegates in ArcObjects .NET?
I currently have an issue in an ArcObjects ArcMap add-in where my event handlers are seemingly-randomly being unhooked from the event I'm trying to catch. I've spent some time looking for a way to ...
2
votes
1answer
40 views
Creating maps programmatically using ArcObjects. Adding legends, scale bars, north arrows?
I'm looking for some examples related to the publishing of maps programmatically to image format using ArcObjects. More specifically I would like to add standard map elements such as a scale bar, ...
2
votes
1answer
127 views
Why does get_datasets not return all the datasets in the database?
I have code that gets all the Feature Datasets in a database in order to loop through them and find the one I want. This code returns 2 datasets of 24 in an SDE 9.2 database, but 3 datasets of 24 in a ...
-1
votes
0answers
22 views
Help running Snippets in ArcObjects
I just started learn ArcObject with C#.
It is good for but when I try to do some thing more I am getting more problem like if I want execute snippet code in Engine, Map I do not know how to run and ...
3
votes
2answers
962 views
How to merge two polylines in code?
We are currently working on a project where we have to merge sections (polylines) to a route, but the big question is how you do this. We have currently tried adding those two as segmentcollections ...
2
votes
1answer
50 views
Stand-alone Server Object Extension (SOE)
I would like to setup a REST service through ArcGIS Server.
In this case I do not need a map service, but it seems like you can only deploy an SOE as an extension to another service. It seems ...
1
vote
1answer
37 views
How to get polyline out of multipart feature using ArcObjects C#
I've got a polyline feature class and I've identified the first feature that is a multipart feature. I now want to find out which of the paths of this multipart feature intersects with a point.
Up ...
7
votes
4answers
2k views
How to release the lock on a gdb?
I have problems to release my gdb in ArcGIS10. My tool works with an local gdb, but I failed to release it after the process.
In Ag9.3 I can release it simply by Marshal.ReleaseComObject(workspace), ...
-1
votes
0answers
42 views
Need help with VBA code for filling a table
Bonjour a tous;
je travail VBA dans arcgis 9.3
j'ai crée un formulaire avec une liste déroulante et une liste texte et autre controls:
quand je sélectionne un type de station dans la liste ...
4
votes
3answers
243 views
What types of GIS problems does functional programming address?
After reading @ray vernagus post about using ArcObjects with F#, I have been wondering ... what types of GIS problems are better handled by Functional Programming, as opposed to more traditional forms ...
1
vote
0answers
268 views
Intersecting with Geodatabase.ISpatialFilter - no results
I'm trying to intersect two layers and get resulting features with the following code I've written:
ESRI.ArcGIS.Geodatabase.ISpatialFilter spatialFilter = new ...
1
vote
0answers
107 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
0answers
246 views
Rendering raster layer from DTED based on height color map
I have a raster layer that was create from DTED file (dt1 specifically), created by the following code:
var rasterLayer = new RasterLayer();
rasterLayer.CreateFromFilePath(dtedFilePath);
The dted ...
2
votes
0answers
406 views
Intersect two layers and get resulting features
I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features.
I'm trying to get this code working
// get first feature (index 0)
...


