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.

learn more… | top users | synonyms (3)

8
votes
0answers
219 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 ...
7
votes
2answers
678 views

Is it a bad idea to hold references to ArcObjects inside business classes?

According to best practices is it a bad idea to cache features and geometries inside business objects? If it is bad, what is the alternative way? References to features may be replaced with their ...
7
votes
4answers
4k views

Deploying ArcObject .NET DLLs

I am using several ESRI .NET DLLs in some custom Python scripts. For example ESRI.ArcGIS.Geodatabase.dll On my development machine these DLLs are in the C:\Program Files ...
7
votes
6answers
6k views

How do I activate a custom ITool from a form without having to add it to a toolbar? (ArcGIS 10 add-in development)

I'm working on an add-in for ArcMap 10.0 that adds a toolbar to ArcMap. One command (OpenModelessDialogCommand) button on that toolbar opens a modeless WinForms dialog, from which a tool (MyTool) can ...
7
votes
2answers
544 views

How to export only some feature classes to xml using ArcObjects?

I need to export some of the feature classes to an xml file ("export xml workspace") quite often so I'd like to automate the process. I've found an example here how to export a feature dataset to an ...
7
votes
2answers
3k views

Modify raster layer display and symbology properties programmatically with arcpy or ArcObjects

I have over 1500 NITF files that I need to be able to modify the layer display and symbology of programmatically from within ArcMap. I need to set the properties outlined in red below: I've looked ...
7
votes
3answers
1k views

How to determine on which side of a line a polygon feature falls?

I have parcel data intersecting line data. In the parcel data there are some parcels that don't intersect the line. How could I programmatically figure out if the non-intersecting parcel is on the ...
7
votes
2answers
1k views

How do I implement outbound arcobjects interfaces in C#?

I would like to write a class in C# that implements one or more outbound interfaces, for example ILayerEvents and IActiveViewEvents. Does anyone know how to do this with C#? Update Following @Chaz's ...
7
votes
2answers
283 views

.Net Solution Structure for ArcObjects and Geodatabase programming

OK - I understand that this is a bit subjective - but you're the best community forum I've got! So, we are talking about starting a fresh customisation for ArcGIS or a Windows app using Engine. I ...
7
votes
1answer
453 views

Algorithm to fill the gaps adjacent to parcels

I would like to find a way to fill the gaps between the road and its surrounding parcels, like described in picture below: I have different parcels like A and B , i want to fill the gaps by adding ...
7
votes
2answers
2k views

Build and export PDF maps using ArcObjects?

I have a series of featureclasses and rasters generated using ArcObjects and calls to the Geoprocessor. I have the paths to the output, which are located in a file geodatabase. How can I use ...
7
votes
4answers
157 views

How do you programmatically read the coordinate display format in ArcMap?

I'm looking for a property (or properties) that will give me the display units and the formatting. I assume I need IMap.DistanceUnits but I can't find the formatting. Is this exposed? I am also ...
7
votes
2answers
2k views

Why do these annotations appear stacked/overlapping?

I've encountered a strange problem while trying to populate an annotation feature class programmatically (ArcObjects, C#). As you can see in the image below, the characters in each text string seem to ...
7
votes
1answer
816 views

With arcpy, how do I detect relationship classes in a file GDB (or can't I)?

I would like to be able to detect relationship classes in a file GDB. Because users of my script might have only an ArcView level license, they would not be able to manipulate the schema of a feature ...
7
votes
4answers
6k 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), ...
7
votes
1answer
860 views

How to create a 9.3 file geodatabase with ArcObjects SDK for ArcGIS 10?

In ArcGIS 10 I could use the Create File GDB geoprocessing tool to create a 9.3 file geodatabase or the Create Personal GDB geoprocessing tool to create a 9.3 personal geodatabase. But I cant't find a ...
7
votes
1answer
1k views

How do I get the current Undo and Redo item in ArcMap Operation Stack?

I just posted this on ESRI forum and found this link so I am trying it here too: Research ArcGIS Resource Center document - How to work with the operation stack: ...
7
votes
1answer
2k views

Creating ArcGIS add-ins for both 10.0 and 10.1

Has anyone tried to deploy the ArcMap add-in for both ArcGIS 10.0 and ArcGIS 10.1? There is a target version parameter in the add-in config XML file that needs to be specified. After upgrading the ...
7
votes
3answers
999 views

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. ...
7
votes
2answers
473 views

Exporting ArcGIS plugin data source to Shape

I have implemented a plug-in data source for ArcGIS. In my case, the format read by the plug-in may contain point, line and polygon features within the same file. In my implementation the data file ...
7
votes
1answer
85 views

Customizing Create Features window in ArcMap?

Can I customize Create Features window in ArcMap? (whether by using ArcMap capabilities or by writing ArcMap-Addin) I've read about Creating custom ArcMap TOC views, is there something similar for ...
7
votes
1answer
1k views

Add layer to open mxd using ArcObjects from outside the map document crashes ArcMap

I have an Access database (MS Access 2010) that allows users to enter a variety of land treatment information including associated points, lines, or polygons which users can select and the database ...
7
votes
1answer
200 views

How can my client catch mapservice timeouts?

I've got a gp service that exports pdfs using connections to mapservices. I'd like to write to a log file when a request to a service times out. For WMS mapservices I see I can use IWmsClientEvents ...
7
votes
1answer
1k views

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 ...
7
votes
0answers
599 views

Newbie to GIS Development in ArcGIS? [duplicate]

I am new to GIS development and was wondering if there are tutorials available for development in ArcGIS 10. I have some experience writing simple scripts in python and fooling around in model ...
6
votes
4answers
498 views

Migrate in a new programming GIS language

The last five years I have been working with VBA and ArcObjects for developing a specific application within ArcGIS. That project that began around 2008-2009 carried out with VBA and ArcObjects which ...
6
votes
5answers
1k views

Troubleshooting ArcObjects performance problems

We have developed a relatively complex geoprocessing routine using a C# / ArcObjects (COM) / ArcGIS Server 9.3.1 / ArcSDE 9.3.1 / Oracle 11g stack. Running the routine on a complete dataset takes ...
6
votes
5answers
3k views

Programmatically edit/update metadata in ArcGIS 10

Has anyone succeeded in programmatically updating metadata in ArcGIS 10? Considering using Python/arcpy but ArcObjects (C# or Python/comtypes) is also a possibility. I need to update both the FGDC ...
6
votes
3answers
415 views

What is the best practice for editing feature class?

I am working with some feature classes. I create those feature classes using my add-in. User can add/ delete features from these feature classes clicking on "add", "delete" buttons and selecting ...
6
votes
2answers
2k views

ArcObjects: How to insert data into a table?

I have a table in ArcCatalog named WorkOrderAss. This table contains 3 columns: (OBJECTID, FeatureName, Name). I want to insert data to this table from the code behind in C#. Any help would be ...
6
votes
6answers
1k views

Finding shortest path while avoiding polygon features

I'm developing an extension to ArcMap where I have a set of static, concave polygon features and I'm trying to find the shortest path between 2 points without crossing any of the polygons. Is there ...
6
votes
4answers
390 views

Storing ArcObject inside BLOB or XML field of geodatabase?

Is it possible to store an ESRI object inside a blob field inside a geodatabase? If not, perhaps a serialized XML representation? I'm thinking about storing IFeatureRenderers inside these fields. ...
6
votes
2answers
318 views

How do I query a string in Arcobjects that has a single quote in it?

I'm trying to query values using a cursor and loop for the process of removing diacritics. The problem I am running in to is that when I try to create a WhereClause like so... qf.WhereClause = ...
6
votes
4answers
954 views

Deriving separate polylines from coded points using ArcObjects (Figure inside)

I have a single point featureclass that represents the left and right sides of a landform (the points are coded as either 'right' or 'left'). Visually I can pick out and digitize two lines along these ...
6
votes
3answers
3k views

What is the target .NET Framework of ESRI ArcObjects SDK 10.2

I had ArcMap 10 Add-In project built with ArcObjects SDK for .NET 10.1 where I could not reference external COM DLL build on .NET 4.0 due to a .NET forward compatibility issue. (ArcObjects SDK 10.1 ...
6
votes
3answers
3k views

ArcObjects 10 - copying fields (table structure) to a new feature class

I'm creating a new feature class with the attribute table schema (field names, types etc.) copied from another feature class. Then, I'd like to modify this schema slightly (e.g. add an additional ...
6
votes
6answers
1k views

How do I remove a join (between a standalone table and a feature layer) with ArcObjects?

I already know how to do a table join with ArcObjects, via the IDisplayTable, IMemoryRelationshipClassFactory etc. interfaces. Here are some links to resources that have example code for this: ...
6
votes
2answers
1k views

Does anyone know a function to determine if a Point exists within a polygon?

Does anyone know a function to determine if a Point exists within a polygon? Edit: I'm using C# with ArcEngine10.
6
votes
3answers
2k views

How can you find ArcGIS version programatically?

Is there a way using ArcObjects.net to find out what version of ArcGIS is installed on a machine (i.e. 9.3., 10.0, 10.1)?
6
votes
2answers
731 views

Alternatives to ArcGIS Extensions using ArcObjects?

I was wondering if there are any projects based around using ArcObjects and external libraries to create open source alternatives to extensions in ArcGIS. For example 3D Analyst, Spatial Analyst etc ...
6
votes
2answers
2k views

ArcObjects + comtypes at 10.1 and newer

Has anyone played around with using ArcObjects in Python at version 10.1? I am having all sorts of problems, such as TypeErrors when wrapping the ESRI OLB modules and AttributeErrors when attempting ...
6
votes
2answers
149 views

What event is fired when a feature is edited?

When the user draws a new feature (line, point, etc.) in ArcMap, there are null attributes. If the user enters values in these null fields what is the event that is fired? I want to control the ...
6
votes
2answers
1k views

How are Class Extensions associated with a Feature Class in ArcGIS v10?

In ArcGIS 9.x if a Feature Class is registered with a Class Extension the CLSID of the extension is recorded in a table in the sde schema called sde.GDB_OBJECTCLASSES (EXTCLSID field). However in ...
6
votes
1answer
538 views

What is an IFeatureClassName?

I'm currently attempting to export a selected set of data from a feature class in a database to another database as a new feature class. I understand everything perfectly right up to the ...
6
votes
1answer
558 views

How to get table Name from IObjectClass

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? UPDATE Aughhh, after ...
6
votes
3answers
5k views

ArcObjects/ArcServer 10.1 - How to programatically publish a map service?

I am migrating some ArcObjects C# code to 10.1 and am having some trouble programatically publishing an MSD. We are using a multi-site configuration (not sure if that matters). Here is the code I am ...
6
votes
2answers
817 views

Is it permissible to update features after the feature cursor has been released?

In ArcObjects, is it permissible to modify and update a feature after the feature cursor (which was used to retrieve the feature) has been released? That is, do features in any way retain a link to ...
6
votes
2answers
4k views

Exporting selected features to a new shape file

I have a street layer and I only need to export a subset of features to a new shape file where the "TestDone" attribute field is not '0' (Zero). My current code ( which is pasted below ) exports the ...
6
votes
3answers
2k views

How to create floating-only window in ArcMap?

I'm looking for a way to create a floating window in ArcMap. To give an example just look at the window of the Identify tool. Floating means that it stays in front of the map document at all times ...
6
votes
2answers
2k views

How to catch when scale is changed in ArcGIS?

We want to update a combobox so that it always shows the correct scale. If the user zooms-in, out or resizes the control hosting the map. What is the best event or events to catch and use in ArcGIS to ...