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)

1
vote
0answers
44 views

How does ISurface.Locate work?

could someone help me with this method of arcobjects? I don't know what the parameter "hint" means. Thanks. ISurface.Locate Method Returns the intersection of the query ray and the displayed feature. ...
6
votes
1answer
2k views

First attempt using ArcObjects: ESRI's Add-ins example unclear

I've come to realize that scripting ArcGIS 10.0 with Python imposes too many limitations for my goals with ArcGIS, so I've decided to bite the bullet and delve into ArcObjects. Apparently, using ...
4
votes
2answers
349 views

How to enable MapTips in ArcGIS Engine? (ArcGIS 10)

My organization is working on a new version of our software using ArcGIS Engine. Previous versions of the software (running on ArcGIS Engine 9.3) displayed MapTips fine as long as they were enabled in ...
1
vote
0answers
174 views

How to append geographic features into a .dgn file?

How can I export all the geographic features of a featureclass into .dgn (Microstation) file using C#/ArcObjects? I was able to create a new .dgn file and I want to export all the geographic features ...
2
votes
2answers
127 views

Finding Two locations with a conditional search on DEM

I want to find two locations H difference in elevation between two locations on a DEM. Ex: point A and B are my output after search on DEM. conditions are (1)buffer R distance around point A and (2) ...
6
votes
2answers
997 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 ...
4
votes
1answer
549 views

Has anyone found a workaround the IMemoryBlobStream.LoadFromFile() error

As far as I am aware, you will get an error if you try to load large file sizes using the function IMemoryBlobStream.LoadFromFile(). Has anyone found some workaround code to load a file into a ...
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 ...
2
votes
1answer
297 views

Deploying to ArcGIS 10 Server .NET/Java

We're in the process of transforming a lot of 9.1 ArcServer/ArcObjects etc applications to ArcGIS Server 10. However, we're unsure as to licensing on 10. As I understand it, I cannot, according to ...
1
vote
1answer
897 views

(arcengine) export selected features from sde to shapefile (with joined fields)

I have a SDE featureclass that is joined to an access table in my map control. I want to export selected features of the SDE layer to a shapefile AND retain the joined fields. this following method ...
1
vote
1answer
104 views

Merge column data with a IFeatureClass

I have a points shapefile with City, State, Zip columns. I want to merge the column data together into a new column containing: City-State-Zip (with the hyphen). Can I merge column data like this ...
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 ...
3
votes
1answer
399 views

How can I get the coordinates of a grid cell?

How can I get the real coordinates (i.e. X and Y) of a given grid cell when I know its row and column position? Thanks Demetris
2
votes
0answers
105 views

How can I identify the pixel with the maximum value in a grid? [duplicate]

Possible Duplicate: How to find the locations of the highest values in a raster? How can I identify the pixel with the maximum value in a grid and get its coordinates? Any VBA code please?
2
votes
2answers
745 views

Save a MapControl map to an MXD

I used to know how to do this, but I must have lost the code. I tried this: IMxdContents mxdcontents = mapControl.Map as IMxdContents; IMapDocument doc = new MapDocumentClass(); ...
0
votes
1answer
478 views

Connecting to ArcGIS Server with IIS 7.5 (ArcObjects/COM)

This code works fine on a development box, but fails in a server environment: GISServerConnection gisServerConnection = new GISServerConnection(); gisServerConnection.Connect("localhost"); The ...
1
vote
0answers
120 views

How can I interact with ArcObjects from a windows service?

How can I interact with ArcObjects from a windows service? It appears that I can't work with an AxMapControl object from a console or service, because it complains about the activeX state. How does ...
7
votes
2answers
1k 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 ...
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 ...
15
votes
5answers
2k views

How can I find the farthest point from a set of existing points?

I have a set of points as a shapefile and I want to find (the coordinates) of a new point which will have the longest possible distance from each of the existing points. Is that possible? If yes, is ...
9
votes
2answers
277 views

Custom implementation of ArcGIS function

I would like to find out what it takes to create a custom implementation of an ArcGIS function. In particular, I would like to implement GeoAnalyst.ISurfaceOp2.Visibility() in order to get it to run ...
13
votes
2answers
3k views

How can I create weighted Thiessen polygons?

I have a point shape file and I create Thiessen (Voronoi) polygons programmatically using this scripting syntax: CreateThiessenPolygons_analysis (in_features, out_feature_class, fields_to_copy) ...
1
vote
0answers
177 views

Looking for Raster Renderer statistics in ArcObjects

I've got a plug-in for ArcMap that I have been working on. I have my own renderer seperate from ArcMap that I am using to display imagery. My goal is to sync up the display of this imagery with that ...
0
votes
1answer
276 views

ArcGIS 10 IGPFunction2 and IGPFunctionFactory Implementation

I'm creating a custom ArcToolbox tool in C# .NET in ArcGIS 10 SP2. Though I seem to be having two issues which maybe related: Firstly, my tool is run as a background task i.e. the GP dialog does not ...
6
votes
2answers
459 views

How can I add a new field in a raster attribute table and loop through it?

I am working with an existing raster attribute table. I wonder how can I add a new field to it and then loop through the existing records to populate this new field? Of course I have done this many ...
4
votes
1answer
516 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. ...
4
votes
2answers
877 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 ...
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 ...
4
votes
1answer
153 views

Find Selected Element

Using the esriControls.ControlsSelectTool I select a text element that I have previously placed on the map. In code, how can I find this element on the map? I know I can iterate using the ...
3
votes
1answer
377 views

Problems reading data from a file geodatabase using an OleDbConnection

I'm able to connect to an ESRI fgdb using an OleDbDataAdapter and read the attribute table just fine - from within visual studio. However, when I put the code inside a windows service it crashes (no ...
2
votes
1answer
363 views

Adding barriers to a Network Analyst layer programmatically

Right now, I have code that allows the user to indicate on a map, which contains a Network Dataset layer, stops that are needed to create a route. I need to add functionality to the interface that ...
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 ...
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 ...
3
votes
1answer
1k views

Intersect two polylines using ArcObjects

I have two polylines and would like to find the intersection(s) using ArcObjects / VB.NET. I'm using the following code: Dim topoOp As ITopologicalOperator = TryCast(pTestPoly2, ...
3
votes
1answer
201 views

Self-Sizing Labels

I have labels now in my application that work fine using the usual ILabelEngineLayerProperties2. When I set them up I set the .Expression property and using the .Symbol property I set the font, style, ...
4
votes
2answers
401 views

How to retrieve the per-feature value rendered when IGeoFeatureLayer.DisplayAnnotation is true (ArcObjects with C#)?

In another area of my application I'd like to display the per-feature label value rendered when Labeling is turned on in ArcMap, i.e. when IGeoFeatureLayer.DisplayAnnotation becomes true. I have a ...
7
votes
3answers
878 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 ...
6
votes
3answers
606 views

How to convert high precision dataset to low precision

A high precision dataset was loaded from a file geodatabase into arcsde 9.3.1. The dataload was achieved by copy/paste in ArcCatalog. A custom tool (arcobjects) that extracts from the dataset to a ...
2
votes
1answer
573 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 ...
1
vote
1answer
320 views

How to Create and Rotate Raster Dataset using ArcObjects?

I'm following the "How to create a raster dataset" tutorial: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000464000000 The questions are: 1) How can I create ...
0
votes
1answer
496 views

Going round in Circles..Buffering/ArcObjects/VBA

I've just started learning VBA and Arcobjects, and at the moment just playing around tyring to do different things. What i am trying to do is Click on a tool, and allow the user to put a point ...
1
vote
0answers
126 views

What does SetHistogramData do?

I run the following code: IClassify classify = new NaturalBreaksClass(); ITableHistogram tableHistogram = new BasicTableHistogramClass(); IBasicHistogram basicHistogram = tableHistogram as ...
1
vote
3answers
1k views

How to merge several tables/feature classes into single geodatabase object in ArcObejcts?

My project is ArcGis extension, which uses a specific set of tables and feature classes. I want that this structure to behave like single geodatabase object, so user cannot delete part of it's schema. ...
1
vote
1answer
260 views

How can I make seperator and button menu in customized Toolbar?

Please help me. How can I make seperator and botton menu in customized Toolbar?
10
votes
1answer
741 views

Programmatically determine ArcGIS Layer(*.lyr) file version

I've been through IStorage, Microsoft Compound File Spec, ArcObjects deserialization etc. trying to detect the .lyr file version. Using ArcObjects, I can get at the Layer properties, data source, ...
9
votes
1answer
669 views

Arcobjects in Python: assign interface to objects with feature (shape) geometry

I am trying to use ArcObject in Python. I do have problem with assigning an interface (i.e. IZ.InterpolateZsBetween) to my object with geometry data, code is: from Comtypes.client import ...
1
vote
0answers
244 views

UniqueValueRenderer and ClassBreaksRenderer configuration

So I can create one of these renderers based on parameters I let the user set. Some parameter combinations either create invalid conditions or no conditions at all - missing data, too many breaks or ...
4
votes
2answers
382 views

ArcObjects ISQLSyntax with Oracle DB esriSQL_DelimitedIdentifierPrefix issue

New to stack exchange, heading over from the esri forums, it is great! I am trying to produce a query that I can use across all workspaces, naturally using ISQLSyntax. The problem I'm having is that ...
2
votes
2answers
553 views

Detect map scale from raster dataset

Let's suppose you have a raster dataset (in a folder or in a personal database). How can you detect what map scale it represents (assuming of course that all rasters have same dimensions/resolution)? ...
1
vote
0answers
111 views

Annotation and Renderer Interaction

I have code that creates either a UniqueValueRenderer or a ClassBreaksRenderer and applies it. I also have code that uses AnnotateLayerProperties to set labels. When I create a renderer and then an ...