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

ArcObjects: saving IRaster with double values mapped to colors

How do you save IRaster with double values in it's cells mapped to some colors? For example, (-inf; -50] maps to blue, [+50; +inf) maps to yellow, others are calculated gradually.
Loki Kriasus
  • 1,282
  • 10
  • 22
0
votes
0 answers

Filtering an unbound datagridview

I have an unbound DataGridView that is being populated by pulling attributes from selected features in ArcMap as well as user inputs from text boxes. I have the following code below that loops through the DataGridView and makes rows invisible, based…
GISense
  • 1
  • 2
0
votes
1 answer

How to create fishnet in arcgis engine?

I found createfishnet method in arcobject, but it doesn't work.Where is my mistake? Geoprocessor gp = new Geoprocessor(); gp.OverwriteOutput = true; ESRI.ArcGIS.DataManagementTools.CreateFishnet fishnet = new…
k.xf
  • 359
  • 1
  • 3
  • 10
0
votes
0 answers

How to customize a mapping method in Network Analyst?

Although it's easy to find the shortest path between two points using NASolver, sometimes NAClassLoader.Load failed to map the points to the right road, NALocator only considers the closest distance. For example, sometimes we have to judge a…
k.xf
  • 359
  • 1
  • 3
  • 10
0
votes
1 answer

What's the difference between DENetworkDataset and NetworkDataset in ArcObjects?

In ArcObjects, there are two Coclasses which are similar with each other: DENetworkDataset and NetworkDataset , and GetDataElementFromNetworkDataset can transform NetworkDataset to DENetworkDataset, which is: IDENetworkDataset…
k.xf
  • 359
  • 1
  • 3
  • 10
0
votes
1 answer

How to get the spatialreference by name using arcobjects?

I am using a text box to enter the projection name(for example : WGS_1984_UTM_Zone_37N) and I want to get that spatial reference detail using arcobjects(vb.net/C#). How to accomplish this? Kindly clarify.
user2408848
  • 151
  • 7
0
votes
1 answer

How to programmatically add an active graphics layer to a map?

I'm writing a WPF applicating, in C#, using ArcObjects. I have an ESRI.ArcGIS.Controls.AxMapControl on my form, and I'm trying to draw some graphics elements on top of it. The map I'm developing with is a customer-provided mdf of the state of…
Jeff Dege
  • 11,190
  • 22
  • 96
  • 165
0
votes
2 answers

Cast IPoint variable to IGeometry

I am working in ArcMap. I have a feature class layer (polyline) that has points in it. For each point, I want to cast/convert it to a geometry and place it in a separate layers attribute table; under the shape field column. I also try and do other…
user1898629
  • 329
  • 1
  • 4
  • 22
0
votes
1 answer

ESRI - Arcmap help to create a button that will populate current date for selected features

I would like to create a custom tool or button in Arcmap that programmatically fills in a number of attributes of selected features for a layer. To keep things simple, lets say my Arcmap project only has one SDE layer, and I'd like to populate the…
User Error
  • 135
  • 2
  • 8
0
votes
1 answer

ArcObjects: Iterate Through Line, Grab points to create a point geometry

I am using ArcMap 10.1, ArcObjects 10.1 and C#. I am having trouble capturing a line feature, iterating through the vertices of the line and creating a point geometry from its vertices. I am trying to accomplish this via button click. In detail, I…
user1898629
  • 329
  • 1
  • 4
  • 22
0
votes
1 answer

How to display text on top of a dialog bubble in arcobjects?

I am rendering a text glyph with DrawCompoundMarker and I am drawing the dialog bubble with a graphicTracker.Add call, but the text is getting displaced instead of rendering on top of the dialog bubble. How can I make the text render on top of the…
patrick
  • 16,091
  • 29
  • 100
  • 164
0
votes
2 answers

How to fill multiple text boxes from the same button in c#

I want a single button to fill in multiple text boxes if the text box above it is already filled. I.E. IF textbox1 = file.shp THEN textbox2 = openFileDialog I tried doing something with the length function but when I selected a file both textbox1…
sbell423
  • 103
  • 10
0
votes
1 answer

List all Feature Classes in an MXD

I have an mxd file that I've loaded into ArcMap. When finished loading, there are several layers; some of which that have multiple feature classes. The end result is listing all the filepaths/locations/source of each feature class, but for now, I…
user1898629
  • 329
  • 1
  • 4
  • 22
0
votes
1 answer

arcobjects can't draw dynamic draw screen objects

I enabled the map to allow dynamic objects Then I grab the IDynamicDisplay from an event which I wired up. void dynamicMapEvents_AfterDynamicDraw(esriDynamicMapDrawPhase DynamicMapDrawPhase, IDisplay Display, IDynamicDisplay dynamicDisplay) { if…
patrick
  • 16,091
  • 29
  • 100
  • 164
0
votes
2 answers

How can I create an IDynamicDisplay obj in ArcObjects?

I am trying to draw a text glyph on the map and all the tutorials say I need a IDynamicDisplay, but I don't know how to get at one. Thanks in advance. ; ) edit: C# VS2010
patrick
  • 16,091
  • 29
  • 100
  • 164