Questions tagged [arcobjects]

ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products including ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.

ArcObjects is a set of platform independent, component based geographic data models written in C++, that allow developers to extend the ArcGIS family of applications.

In the ArcGIS 10.X suite APIs can be used on several platforms including .NET (VB.NET and C#), Java and C++.

In the ArcGIS 9.X suite of products VB6 was previously supported, but its use has been deprecated in favor of VB.NET/C#.

For more details see What are ArcObjects?

2473 questions
9
votes
3 answers

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 of programming? Perhaps more specifically, when…
Kirk Kuykendall
  • 25,787
  • 8
  • 65
  • 153
9
votes
2 answers

ArcObjects diagram/object model?

Is there an existing object model diagram for ArcObjects? Something that can be printed out as a large poster.
Radar
  • 10,659
  • 9
  • 60
  • 113
8
votes
3 answers

Looking for a region growing algorithm

I work with a raster set representing land values and I would like to automatically create polygons with random shape but with certain size and/or land value given a centroid point of each polygon. The centroid point will act as the initial raster…
Demetris
  • 111
  • 2
8
votes
1 answer

With ArcObjects, distinguish between Save Edits with and without closing the current edit session

Is it possible with ArcObjects to distinguish between the user selecting the Save Edits button and the users selecting the Stop Editing button and then saving edits? The reason for this is that in the IEditEvents.OnStartEditing event I am acquiring…
Jeff Berry
  • 1,820
  • 1
  • 13
  • 28
7
votes
5 answers

Getting unique value records from a field

Building a desktop application using C#.net and ArcObjects. I'm trying to retrieve records from a shapefile using IQueryFilter. Having trouble writing the where clause in my scenario and the applicable logic. Here is the scenario: I have a…
user1506
  • 263
  • 1
  • 3
  • 13
7
votes
2 answers

Exporting selected features to a new shapefile

I have a street layer and I only need to export a subset of features to a new shapefile where the "TestDone" attribute field is not '0' (Zero). My current code (which is pasted below) exports the total street layer. I can use a query filter to get…
user1473
  • 73
  • 1
  • 3
7
votes
1 answer

Multithreading with ArcObjects

I am getting some weird errors while trying to implement multithreading with ArcObjects. I am trying following things on per thread basis: 1) Open SDE Workspace 2) Open Feature class 3) Perform Icursor Eventually, It fails with some errors…
adhiman
  • 309
  • 2
  • 8
6
votes
2 answers

How to toggle layer visibility in ArcObjects?

ILayer.Visible seems to have no effect - How can I manually manage layer visibility and actually get the map control to update? ILayer lyr = mapControl.get_Layer(i); //this works for custom layers that I define but not for Bing_Maps.lyr or ESRI…
Darren
  • 227
  • 1
  • 12
6
votes
6 answers

Access Violation in ArcObject Multi-threaded Application

I think I have figured it out. The most probable cause of exception in Multithreaded application may be: When both threads trying to open same featureclass it breaks: coz one of the thread is already in the process of opening it and other tries to…
adhiman
  • 309
  • 2
  • 8
6
votes
0 answers

How to prevent automatically redraw the graphic layers on ArcObjects?

After a ShapeFile that was read to IFeatureLayer converted to IGraphicElements, I'm trying to draw that on map (using Sublayer of ICompositeGraphicsLayer). Of course, I succeed to display it on map, however, when I move the map to other position…
6
votes
1 answer

Getting table Name from IObjectClass using ArcObjects?

I'm using IRelationshipClass.DestinationClass to get an IObjectClass. From here, I want to be able to get the table name, but can only access the AliasName. Any ideas? The IObjectClass can be cast to a IDataset, which has the Name property, which…
BlinkyBill
  • 1,163
  • 1
  • 9
  • 19
6
votes
3 answers

finding nearest point to a point

I work in GIS with VBA. I have 2 Points layer.One of them is City points and another is hydro station points.I want write code in vba for selecting one point from station layer and finding closest city to this selected point.On the other hand I…
Nima
5
votes
2 answers

Specify a starting location with IgxDialog

I would like to know what is the easiest way to set the starting location of a data dialog to a IWorkspace? My problem is that basically I do not want a connection (.sde file) for the users. I want to set the starting location to a workspace…
George Silva
  • 6,298
  • 3
  • 36
  • 71
5
votes
2 answers

Zoom Commands as Mouse Gestures

Is it possible to use the zoom in, zoom out, and previous extent functions as mouse gestures in ArcMap? For example, say a user held down LShift then left click and dragged diagonally to the lower right. I would like that to function the same as…
amasephy
  • 1,234
  • 1
  • 10
  • 21
4
votes
3 answers

"ZoomToLayer" not working

I am trying to call ZoomToLayer from my custom code (shown below). ESRI.ArcGIS.esriSystem.UID pUID = new ESRI.ArcGIS.esriSystem.UID(); ICommandItem CmdItem; //pUID.Value = "{18DF94D9-0F8A-11D2-94B1-080009EEBECB}"; pUID.Value =…
ujjwalesri
  • 1,808
  • 12
  • 19
1
2 3
12 13