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)

5
votes
1answer
387 views

Can you use ArcObjects in an MVC service at v10.1

I'm slighlty confused with the changes at 10.1 and understand this version no longer supports DCOM or remote arcobjects. Can you use ArcObjects in a webservice (in my case a .NET MVC 4 service) that ...
5
votes
2answers
380 views

Is it possible to modify the ArcObjects IProgressDialog2?

It turns out that the best way to run long tasks in ArcMap is to use the IProgressDialog2. The BackgroundWorker in combination with ArcObjects (STA Threads) is a mess. However, it seems that the only ...
5
votes
2answers
450 views

ArcGIS - IExtension.Startup() not launching

I have an ArcGIS 10 extension that will not launch .Startup() when ArcMap loads. I can get it to hit when I go to Customize->Extensions and un-check/re-check the extension name. Is there a setting ...
5
votes
1answer
630 views

Geometric Network - Listening to network feature connection changes in the IObjectClassEvents::OnChange event

I need to be able to tell when a particular type of feature, that participates in a geometric network, is having its geometry automatically modified due to the geometric network. What i mean is that ...
5
votes
1answer
401 views

New Snapping while editing vertex's in ArcEngine 10

Is it possible to use the new (not classic) snapping functionality when editing the vertices of a polygon feature in ArcEngine 10. I would like editing vertices to behave exactly the same as editing ...
5
votes
2answers
753 views

Identify features

I am new to arcgis.I am building a custom desktop GIS application using arcgis engine 9.3.1 .I want to make a custom identify tool and add it to toolbar control.Any example or code will be helpfull. ...
5
votes
1answer
681 views

Why is SymbologyControl missing symbols in XP?

I'm using the the code form SymbolForm.vb in this sample: Change layer rendering using the SymbologyControl It's working great on my developer machine with Windows 7, 64bit. But when I deploy the ...
5
votes
3answers
2k views

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 ...
5
votes
3answers
373 views

How can I determine the layer name in an edit session?

I have a problem with an editor extension in an Add-In for ArcGIS 10. The editor extension listens on different events occuring on shapefile layers via registering listeners: ...
5
votes
1answer
265 views

Converting Between Similar Classes in ArcObjects and WPF Runtime Libraries (C#)?

There seems to be an "impedance mismatch" (if I can borrow the term) between similar classes in ArcObjects and the WPF runtime libraries. For example, there is a ESRI.ArcGIS.Client.Geometry.Polyline ...
5
votes
1answer
328 views

ArcObjects 10 Java SDK

I am being tasked with converting a AGS georpocessing toolkit currently written in AO 10 C# SDK to AO 10 Java SDK. Are there any resources out there which show an end to end example of creating an ...
5
votes
2answers
232 views

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 ...
5
votes
1answer
202 views

Reading an Existing Join

Confused again. I was finally able to run ArcCatalog and create a join in my map document (I will do the deed programmatically eventually) but I was interested in how a join looked once it was ...
5
votes
1answer
556 views

How to turn an IField from Not Editable to Editable?

so i have turned my ITable into an editable DataGridview from this post link. Now i want to set some of the columns to be non editable. So what I can do is initially set my IFieldEdit.Editable_2 to ...
5
votes
3answers
883 views

ArcGIS10 Debugging

First ever post to this forum, I have a C# extension (legacy from another developer) which I am trying to debug in the ArcGIS 10 Environ (64bit machine/Windows7). I have built the ext in "Debug" ...
5
votes
1answer
2k views

How to save a layer file with a relative path

In VBA, how do you save a layer file (.lyr) with a relative path? I have some code that loads a shapefile into ArcMap but I am unsure of how I go about using this shapefile to then save a layer file ...
5
votes
1answer
1k views

Automate export of ArcMap legends

I've been building legends for my javascript websites that use 9.3.1 services. I know there's the ESRI legend tool for older services but I don't feel that it does a good job of producing legend ...
5
votes
1answer
322 views

Intersect between Surface and Ray

I am interested in finding the intersection of a Ray and a Surface in ArcObjects. I already know of two solutions. First solution is to use the Locate method of ISurface: Dim intersectionPoint As ...
5
votes
1answer
346 views

Generate Mobile Map Cache from ArcObjects

As of ArcGIS 10, is there a way to generate a mobile map cache using ArcObjects? This can be done in a stand-alone Python script: ...
5
votes
1answer
818 views

Are there any good resources on WFS support in ArcGIS?

Are there any good resources on WFS support in ArcGIS? The only documents I found so far are these: How_to_work_with_WFS_using_ArcGIS_Desktop and Consommer des services/données WFS dans ArcGIS 9.2 ...
5
votes
2answers
1k views

How to filter Legend to show only visible features?

Is it possible to get the legend in a pagelayout to only show patches/swatches for features fall within the visible extent of the Map? The solution needs to work on FeatureLayers and ArcGIS Server ...
5
votes
1answer
142 views

how to capture the clicked point before moving a vertex

I need the location of clicked point before moving a vertex. IVertexMoved event will provide me the coordinates of the point after vertex is moved but I need before moving. Please help. Regards, ...
5
votes
3answers
830 views

Why do I get a “. not nullable field error” when attempting to split a feature?

I'm trying to split feature, by point, into 2 new features. var pFeatureEdit = lineToSplit.Feature as IFeatureEdit; var set = pFeatureEdit.Split(point); When this feature has configured ...
5
votes
1answer
241 views

How should I publish an arcgis toolbox via arcobjects (c#)?

I've been able to create map and image services by creating, adding, and starting configurations through an IServerObjectAdmin interface to a version 10.0 (sp4) ArcGIS server. Now, I'm shifting my ...
5
votes
1answer
264 views

Geodesic buffers for polygons

How can I create geodesic buffers around polygons? I'm on 9.3.1 ArcMap, but I need a programatic solution. IBUfferConstruction only does geodesic buffers for points. What are my options?
5
votes
1answer
2k views

How can I update an MXD file programatically?

I'm using ArcGIS 9.3.1. product line and MXD files. At our customer we have multiple environment (DEV, QAS, PROD) which should be more or less identical except they use different datbases and a few ...
5
votes
1answer
176 views

ArcObjects edit/update ODBC Oracle table

Can an ODBC Oracle table attached by OLE within ArcMap be edited/updated by using ArcObjects? If so, what are the procedural steps for doing this? Are there code examples out there showing how to do ...
5
votes
1answer
733 views

ArcGIS 10 Add-ins - How to adjust the size of an add-in toolbar?

I've built an add-in toolbar with two buttons. Works great, but I'd like to make the toolbar a little wider so that the user can see it's full caption. Is there a property I can adjust in the ...
5
votes
1answer
815 views

How to create adjacency matrix of topology graph of arc map for shortest path?

I have created a topology graph of a polygon feature and I want to find the individual FIDS of the lines of the polygon. I want to construct an adjacency matrix to create the shortest path. How can I ...
5
votes
2answers
766 views

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 ...
5
votes
1answer
179 views

Is it possible to add to the map a layer containing results from a sql query

I'm developping an ArcMap Extension and I need to join an existing feature class with data from a sql query located on another DBMS. I already set up a Workspace with an OleDbWorkspaceFactory. I'm ...
5
votes
1answer
391 views

Slow performance when selecting features

I am trying to use the following code to select the features that have the attribute values that I pass in. The performance is really slow when it comes to a lot of values e.g >16k values to match ...
5
votes
0answers
234 views

Plugin Workspace: when to close an OleDbDataReader?

I'm developing a plugin workspace for ArcGIS. Internally, the plugin uses an OleDBconnection. All of the sample code I see seems to stress the importance of closing and disposing the connection. ...
5
votes
0answers
74 views

Can I verify that attribute indexes are being used in a query from ArcObjects?

We have some software as part of a larger project written using ArcObjects via .NET. This software migrates and merges data from multiple file geodatabases in one schema to a single file geodatabase ...
5
votes
2answers
555 views

IFeatureClass.Search throws error “0x80041599 The number of points is less than required for feature”

I am creating a buffered geometry around a point feature in order to search for other nearby features. I use the TopologicalOperator to create my buffered geometry. I am attempting to search a feature ...
5
votes
0answers
134 views

How can I control what is passed to the OnCreate() method when a command or tool is initialized? [closed]

In an ArcEngine application can I control what is passed to the OnCreate() method when a command or tool is initialized? (I am using a synchronization object because I have both a map and a ...
4
votes
4answers
1k views

Exploring ArcObjects through C# or VB from Python background

While I understand that this may be off topic to an extent, I am in a bit of a bind and could use some help directing my thought process and research. I have little programming background aside ...
4
votes
7answers
685 views

Where is the server.dat equivalent at 10.1?

Prior to 10.1, I could locate the server.dat file, and programmatically find out the arcgisoutput folder URL location (virtual directory when using IIS) e.g. <Directory> ...
4
votes
4answers
184 views

IEditSketch and IEditSketch2

What is the difference between IEditSketch and IEditSketch2? Also why there are same interfaces with the same name only with a difference "2" at the end of the interface's name ?
4
votes
1answer
362 views

What is the difference between ActiveView, FocusMap and PageLayout in ArcObjects?

I see that different starting points are used when interacting with ArcMap IMxDocument IMxDocument mxDocument = application.Document as IMxDocument; IActiveView activeView = ...
4
votes
2answers
879 views

What is the best approach to using IQueryFilter.WhereClause in ArcObjects?

What is your preferred / best approach to using IQueryFilter.WhereClause statements in ArcObjects (e.g. when selecting features by attributes)? You need to check the source type (shapefile / personal ...
4
votes
2answers
93 views

Given a collection of IPoints is there a quick way to get the extent that contains them?

I have a bunch of IPoints. I need an extent which contains all of them. Is there a quick way to do it? I had the idea of converting them to screen coordinates and then figuring it out manually but ...
4
votes
2answers
766 views

Split a Polyline into small segments

I am writing an addin, which needs to split a polyline into a number of segments taking the number of segments as an input from user. How can I accomplish this?
4
votes
2answers
4k views

Remove lock on feature class

When i try to delete a feature class , after or during the use of an Arcgis engine app which uses the same feature class i got an error concerning the lock , so i can't get ride of this lock until i ...
4
votes
2answers
445 views

ArcObjects: How to measure the draw time of a layer in ArcMap?

I'd like to quantitatively measure the display performance of mosaic datasets, image service layers, raster layers, feature layers, etc. in ArcMap 10. How can I measure the draw time of a particular ...
4
votes
4answers
2k views

Determine overlapping points using a spatial filter in ArcObject

I have a point layer with thousands of points. Using a spatial filter, I have to find out those points which are intersecting each other. Then the objectid's of the intersecting points should be ...
4
votes
4answers
3k views

Sum the values of a single raster and output the value as a number?

I have a floating point raster and have applied a conditional to it in order to only extract the positive values, so there are 'no data' "holes" in the raster. I simply need to sum the values from ...
4
votes
2answers
236 views

How do you determine if feature is editable?

I am using the FocusMap.FeatureSelection to return all the currently selected features. I want to process only the currently editable features and leave the remainder alone. How can I quickly ...
4
votes
2answers
843 views

Comparing two featureclasses using C#

I'm sorry, I know this is a pretty simple question but am having trouble getting this to work. Basically, I have 2 linear featureclasses and they both have the same fields and spatial reference. FC1 ...
4
votes
3answers
1k views

Delete a feature data set in SDE 10 programmatically

Is there a way to delete a feature data set and all of its feature classes programmatically either by using custom code or pre-existing command line tools? There is a tool provided by SDE called ...