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.

Filter by
Sorted by
Tagged with
143 votes
5 answers
29k views

Accessing ArcObjects from Python

I would like to be able to script some things that are not exposed via arcgisscripting or ArcPy. How do I access ArcObjects from Python?
matt wilkie's user avatar
  • 28.1k
26 votes
9 answers
8k views

Getting started with ArcObjects?

What is the best route or place to get started with ArcObjects if one is not a developer and not aiming to become a developer? I've been using gis professionally for a long time, almost two decades, ...
matt wilkie's user avatar
  • 28.1k
23 votes
3 answers
1k views

Are there any OpenSource ArcObjects Projects?

One of the major benefits of developing GIS applications based on opensource libraries, is that many projects spring up on top of them which are also opensource. Well designed opensource projects ...
geographika's user avatar
  • 14.3k
22 votes
3 answers
7k views

Algorithm to find out points of inflection for a polyline

I am trying to find out the points of inflection , i.e. points where the curves in a line start and end. If you look at the image, the green line may be a road or a stream, and the black points are ...
Devdatta Tengshe's user avatar
17 votes
2 answers
9k views

Create weighted Thiessen polygons?

I have a point shapefile and I create Thiessen (Voronoi) polygons programmatically using this scripting syntax: CreateThiessenPolygons_analysis (in_features, out_feature_class, fields_to_copy) ...
Demetris's user avatar
  • 1,029
17 votes
6 answers
13k views

Converting between Esri Geometry and WKT using ArcObjects?

It seems like there is no means of converting an ArcObjects geometry to the Well-Known Text representation (and vice versa) in ArcGIS ArcObjects API. The only thing I was able to find is conversion to ...
Petr Krebs's user avatar
  • 10.3k
17 votes
7 answers
16k 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 ...
Demetris's user avatar
  • 1,029
16 votes
3 answers
4k views

Addressing Memory leak in IFeatureClass.Search (only on SDE with direct connect) of ArcObjects?

ESRI Support say they have reproduced the issue and have opened a bug report (NIM070156). I have determined that there is a memory leak (in unmanaged heap memory) that occurs when a tool in my .NET/C#...
blah238's user avatar
  • 35.7k
15 votes
5 answers
5k views

Using Hillshade option in ArcMap?

Here is a pretty pic of the raster I am using - with no effects applied - just the color ramp and histogram adjusted to show out all the relief - albeit in a very 2D way! I have a raster layer that I ...
Vidar's user avatar
  • 1,860
15 votes
2 answers
3k views

Calling arcpy/python from .NET?

Are there any available examples that show how python can be integrated into a .NET ArcGIS Addin or Extension? I have a series of python scripts that I would like to call from form events (e.g. button ...
Radar's user avatar
  • 10.7k
14 votes
6 answers
11k views

How do I iterate through every cell in a continuous raster?

See this link for more details. The Problem: I want to loop through a continuous raster (one that has no attribute table), cell by cell, and get the value of the cell. I want to take those values ...
14 votes
6 answers
6k views

What are the rules for releasing ArcObjects from memory in .NET?

Do I need to release each object? Is some memory management handled for me?
patrick's user avatar
  • 2,730
14 votes
2 answers
4k views

Avoiding fails from ArcObjects geoprocessing with .NET?

There are some nice features in ArcToolbox we can use, but for some reason, this is NOT working properly. It doesn't even throw me an error. My software is running inside ArcMap, so no need to ...
George Silva's user avatar
  • 6,298
14 votes
6 answers
9k views

ArcMap Add-in with app.settings not recognizing app.config changes?

I have developed an ArcMap Add-in which requires a configuration file. After spending a while trying to read config values from a single App.Config file (and always getting null) I believe that the ...
tomfumb's user avatar
  • 3,668
14 votes
1 answer
1k views

Bug in F******** spatial relation? (I'm not cussing)

I would expect ISpatialFilter.SpatialRelDescription to behave consistently with IRelationalOperator.Relation. However, when I run the code below, I get: Total features : 44368 Count1: 9 T****...
Kirk Kuykendall's user avatar
14 votes
1 answer
2k views

How to get selected Features/Geometry from Windows Clipboard in ArcMap/C#?

I have a custom tool in ArcMap 10. The Workflow is the following: Select Features in a Layer with the "Select Features by Rectangle" tool Copy the Features to the Clipboard using STRG+c Select the ...
prisma.ph's user avatar
  • 141
14 votes
1 answer
1k views

Understanding why ArcPy Cost Path Analysis tool faster than ArcObjects? [closed]

Although I use python to create geoprocessing scripts/services, I was under the impression that using ArcObjects to do the equivalent operation(s) will have better performance. I've posted ArcGIS ...
user890's user avatar
  • 5,705
13 votes
8 answers
6k views

ArcObjects Resources [closed]

What are the best books/web sites for C# development with ArcObjects? The ArcGIS Resource Center is very helpful, but I am trying to find sources with more examples.
Britt Wescott's user avatar
13 votes
3 answers
5k views

Connecting line features and determining the length of the longest line

I have a line feature (see image) representing a river that I created using the Stream_to_Feature tool. The attribute table contains several records representing different lines - the problem is the ...
Radar's user avatar
  • 10.7k
13 votes
1 answer
528 views

Scale in printed map (mxd) is different in code to manual printing

This question is related in part to a previous question I have asked. I have tried printing an A3 mxd with the Print Active View code as published by ESRI and have changed only one line of code and ...
Vidar's user avatar
  • 1,860
12 votes
5 answers
9k views

Programmatically edit/update metadata in ArcGIS?

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 ...
blah238's user avatar
  • 35.7k
12 votes
11 answers
10k views

Learning .NET for ArcGIS (mainly Desktop) use

I have basic programming skills (I program simple vba python and lisp scripts and had gone through a java course a long time ago), but it seems to me (judging by ESRI publications) that there is no ...
12 votes
2 answers
1k views

Using .NET Generics to store ArcObjects?

What are the implications of using Generic types in .NET to store ArcObjects, such as ILayer, IField, etc? The compiler throws me a warning when using these kind of values public class Foo { ...
George Silva's user avatar
  • 6,298
12 votes
1 answer
543 views

Hyperlink tool use in ArcEngine

I'm having some difficulties using the hyperlink tool (ControlsMapHyperlinkTool) in ArcEngine. Does anyone have any experience with it? It looks like it behaves correctly except that every time a ...
Matt's user avatar
  • 161
11 votes
3 answers
5k views

What are pros and cons of Python add-ins vs .NET add-ins to ArcGIS for Desktop?

I found in ESRI .NET help: Python All ArcGIS Desktop applications include an embedded scripting language called Python. Many areas of ArcGIS—particularly geoprocessing—are accessible through ...
user7172's user avatar
  • 1,529
11 votes
4 answers
24k 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 ...
geogeek's user avatar
  • 4,546
11 votes
2 answers
4k views

Guidelines for using ArcObjects from Python

By far, Accessing ArcObjects from Python? is my most read and referenced Q&A on GIS Stack Exchange. In spite of that success, it's probably one of my weakest areas when it comes to actual use. A ...
matt wilkie's user avatar
  • 28.1k
11 votes
5 answers
10k views

Activating custom ITool from form without adding it to ArcMap AddIn toolbar?

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 ...
stakx's user avatar
  • 1,141
11 votes
1 answer
628 views

Using Python to disable Scale map elements proportionally to changes in page size?

I am changing sources on MXDs in differents offices using ArcPy and ArcGIS 10.0. As observed here, the printer settings revert to the default printer when the instruction mxd.save() is sent. Losing ...
Hélène's user avatar
  • 1,161
11 votes
3 answers
2k views

What is the future of ArcGIS web development ? Is it JavaScript and HTML5? [closed]

I want to know about the future of ArcGIS web development; is it HTML5? I used to work with ArcObjects and .NET Web ADF so what is the best technology I must follow, especially when I know that ...
geoid's user avatar
  • 199
11 votes
4 answers
15k 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), ...
AnnemieK's user avatar
  • 111
11 votes
1 answer
1k views

Implement ArcGIS Custom Features with C#?

Is it possible to implement custom features in .NET? If so, how? I suspect the issue is being able to do COM aggregation with .NET, but I can't find anything on that ... Does anyone know if it is ...
Kirk Kuykendall's user avatar
11 votes
1 answer
290 views

Verifying that attribute indexes are being used in 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 ...
Gnat's user avatar
  • 290
10 votes
3 answers
9k views

How does ArcGIS compute the distance between two points with a non-equidistant projection?

This is a follow-up question to my previous one, Can you suggest some well-written introductory texts about coordinate system projections? Let's assume I'm working with the CH1903 map projection, ...
stakx's user avatar
  • 1,141
10 votes
2 answers
2k views

How to unit test ArcObjects with Mocking?

I'm a huge fan of unit testing, but still make use of a FGDB to grab features for running unit tests against when using the ArcObjects framework. Is anyone successfully using mocking against thinks ...
BlinkyBill's user avatar
  • 1,163
10 votes
2 answers
1k views

C# version for ArcObjects 9.3

Can I use C# 4.0 with the target framework set to .NET 3.5 to develop an extension for ArcMap 9.3? Or does it have to be C# 3.0 or earlier?
Mike Rogers's user avatar
10 votes
3 answers
12k views

Creating button in ArcMap to run Python program?

I have a script that I want to run within ArcMap when a button in a toolbar is clicked, and so far I have only been able to make the script into a script tool. I need it to run as a command, not as a ...
Tanner's user avatar
  • 7,345
10 votes
5 answers
5k views

How do I detect relationship classes in a file GDB?

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 ...
celticflute's user avatar
  • 1,622
10 votes
2 answers
2k views

ArcGIS 10 add-in: Top-level exception handling

The ArcGIS 10 add-in I'm working on is pretty simple -- just a tool control and a dockable window. I'm handling the specific exceptions I anticipate occuring at the source and throwing everything else,...
blah238's user avatar
  • 35.7k
10 votes
1 answer
625 views

ArcObjects equivalent to ArcMap Flip button?

In an ArcMap extension, I need to flip multiple lines from a selection. The ArcMap Flip button only allows you to flip one feature at a time. What's the ArcObjects equivalent to ArcMap's Flip button?...
Goldorak84's user avatar
  • 1,274
10 votes
4 answers
876 views

Does SHAPE_Length take into account elevation values?

Does the Shape_Length attribute take into account the elevation? For instance, if I have 3 points: A, B, and C A.X = 10 A.Y = 10 A.Z = 10 B.X = 10 B.Y = 10 B.Z = 50 C.X = 0 C.Y = 0 C.Z = 10 Then I ...
Chris's user avatar
  • 474
10 votes
1 answer
1k 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, ...
Random Geo guy's user avatar
10 votes
2 answers
878 views

Run ArcGIS 10.1 application on 10.2

I support a .NET application that has been compiled on a PC with ArcGIS 10.1 installed. The application comprises a user interface and an ArcGIS desktop extension, plus an installer assembly that is ...
Andy's user avatar
  • 101
10 votes
1 answer
1k 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 CreateObject,...
Tomek's user avatar
  • 2,923
10 votes
2 answers
2k views

ArcMap extension 9.3 vs 10

I have updated our ArcMap extension to work with ArcMap 10 - mainly just change reference from ESRI.ArcGIS.ADF to ESRI.ArcGIS.ADF.Local and set value of 'Specific Version' property for all references ...
solsberg's user avatar
  • 261
10 votes
1 answer
3k views

Referring to NaN or ±∞ (special floating point values) in ArcMap definition queries?

I have by chance discovered how ArcMap displays special floating point values to the user. +∞ (positive infinity) is displayed as 1.#INF –∞ (negative infinity) would supposedly be displayed as -1.#...
stakx's user avatar
  • 1,141
10 votes
1 answer
1k views

ArcMap Addin - add interoperability connection programatically

I'm currently building an add-in for ArcMap - ArcView using the .Net framework. The user of ArcMap and the Add-in should access data published from WFS services. I am aware that it is possible to ...
user2847's user avatar
  • 233
9 votes
2 answers
1k views

ArcObjects diagram/object model?

Is there an existing object model diagram for ArcObjects? Something that can be printed out as a large poster.
Radar's user avatar
  • 10.7k
9 votes
2 answers
6k 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 ...
IBRA's user avatar
  • 1,019
9 votes
7 answers
6k views

Is there an existing library for converting ArcGIS Features to Json?

Is there an existing library for converting ArcGIS IFeature types to and from Json/GeoJson?
BlinkyBill's user avatar
  • 1,163

1
2 3 4 5
50