Questions tagged [arcobjects]

ArcObjects is a development environment for ArcGIS applications by ESRI.

Overview

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

The APIs can be used several developer platforms including .Net (VB.Net/C#...), Java, C++.

Tag usage

For non-development questions, see GIS Stack Exchange

196 questions
0
votes
1 answer

COM-object was released unintendedly

I have a helper-class for my unit-tests that share a reference to an COM-object in memory: public class UnitTestGeometryProvider { public static readonly IGeometry Geometry = Deserialize(); } The geometry is deserialized from a Xml file which…
MakePeaceGreatAgain
  • 35,491
  • 6
  • 60
  • 111
0
votes
1 answer

GraphicTracker what to use for IGeometry? ArcObjects

IGraphicTrackerSymbol myPointSymbol = graphicTracker.CreateSymbolFromPath("Z:/ESRI/sprites/car.jpg", ""); graphicTracker.Add(null /* what to put here for IGeometry?? */, myPointSymbol); Where can I get the IGeometry of my sprite?
patrick
  • 16,091
  • 29
  • 100
  • 164
0
votes
2 answers

How to access sublayer of a basemap in arcobjects?

ILayer layer = mapControl.get_Layer(1); //layer 1 is usa_base_map I have an ILayer, now I want to access and turn on and off various sublayers like the street layer or the railroad layer. Can you tell me how to access these layers?
patrick
  • 16,091
  • 29
  • 100
  • 164
0
votes
1 answer

Open DBF Table -> create layer ESRI arcobjects

I have successfully opened a DBF Table: String dbfDirectoryPath = "Z:/ESRI/data/washingtonCountyDataFiles/tlg_roads"; IWorkspaceFactory workspaceFactory = new ShapefileWorkspaceFactory(); IWorkspace workspace =…
patrick
  • 16,091
  • 29
  • 100
  • 164
0
votes
1 answer

Why is my code not using available processor cycles?

I have written a plugin for ESRI ArcEditor that runs some validation checks on a road network. To check if the rules are all satisfied, it basically does a whole bunch of different intersects, with some buffering and envelopes etc. on the selected…
Jacques Bosch
  • 2,165
  • 3
  • 25
  • 36
0
votes
0 answers

Open raster file error: A Debugger is attached to w3wp exe but not configured

I have written a vb.net function to open a raster file. The function is as follows: Public Function OpenRaster(ByVal directoryName As String, ByVal fileName As String) As IRaster Dim workspaceFactory As IWorkspaceFactory Dim…
0
votes
1 answer

How do I release an InMemoryWorkspaceFactory in the ESRI Map Control?

I am embedding the ESRI Map Control into a custom ActiveX control written in MFC/C++. The custom ActiveX control serves as a Map Control wrapper so I can embed it into a specific environment that is runtime only and non-relational. Thanks to this…
KRFournier
  • 155
  • 2
  • 9
0
votes
3 answers

Using COM and querying objects that are still "alive"

I work alot with ArcObjects, ESRI's API to program for ArcGIS applications. I would like to know if there is a tool where I can inspect what COM objects are alive or are on stack. I already know to free them, but I would to inspect each method to…
George Silva
  • 3,454
  • 10
  • 39
  • 64
0
votes
2 answers

How do I add point features from memory rather than a database or file?

I am embedding the MapControl into a C++ application. The application is tied to a proprietary, non-relational database. Therefore, linking the map control directly to GIS data is not feasible. Instead, I want to simply load my own point features…
KRFournier
  • 155
  • 2
  • 9
0
votes
0 answers

Error loading shapefile in Arcobject c# : Exception from HRESULT: 0x80040228

I want to read a shapefile by Arcobject and C#. I used the ArcGIS Snippet and write follow code: ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop); IWorkspaceFactory wsf = new ShapefileWorkspaceFactory(); IWorkspace ws =…
Mahdi Ahmadi
  • 441
  • 4
  • 12
0
votes
1 answer

Getting started with arcobjects, without aiming to be developer?

What is the best route or place to get started with arcobjects if one is not a developer and not aiming to become one? I've been using gis professionally for a long time, almost two decades, arcinfo/arcgis for most of that; I'm pretty good. I'm…
matt wilkie
  • 17,268
  • 24
  • 80
  • 115
0
votes
1 answer

Find Dangles of road shapefile

I have a road shapefile n I want to find Dangles without creating a topology, is it possible to find Dangles without topology with arcobjects please assest me coz its too much headach to create geodatabase, toplogy, n all things please assest me?…
0
votes
1 answer

ArcObjects 10.3 Add Transparent Polygon to Map

This is an issue I have been trying to tackle for a while and decided to reach out for help. I am creating an ESRI ArcGIS Desktop Add-In that allows the user to draw a polygon and then have it added to the map. I am able to capture the polygon and…
Josh
  • 569
  • 1
  • 11
  • 35
0
votes
1 answer

How do I finding multiple Intersection results via ReverseGeoCoding in ArcObjects?

The project I'm working on requires me to find intersections near a point (searching a street centerline layer). For 90+% of my searches, I seem to be getting the appropriate results, however in certain instances I'm getting intersections that are…
Matt R.
  • 345
  • 1
  • 5
  • 15
0
votes
1 answer

Should I create a new geoprocessor object for each geoprocessing tool?

Common story: I develop an ArcMap extension using C#. Most problems can be solved by using all kinds of geoprocessing tools from ArcToolbox. What is generally more advisable: Creating a new geoprocessor object for each tool? Re-using one single…
dr pain
  • 570
  • 1
  • 5
  • 13