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
4 answers

IEqualityComparer and weird results

Take a look at this class: public class MemorialPoint:IMemorialPoint,IEqualityComparer { private string _PointName; private IPoint _PointLocation; private MemorialPointType _PointType; private DateTime…
George Silva
  • 3,454
  • 10
  • 39
  • 64
0
votes
1 answer

Version and/or license compatibility issues in Arcgis Products

I have developed a stand-alone application using Arcobjects SDK 10.2.2 for .NET . I can run this app. when arcgis Desktop 10.2.2 is already installed on any other computer, but not on a computer with 10.3 (or other versions) installed. Is it…
murat
  • 1
  • 1
0
votes
1 answer

How do change field length with arcobject

I want to change some string field in sdegeodatabse with bellow code. The code are running without any problem. but after running, filed length return to default length. What am i missing? static void writetablecode(IDataset dataset) { …
Mahdi Ahmadi
  • 441
  • 4
  • 12
0
votes
2 answers

ArcObjects ExcelWorkspaceFactory Won't Release Excel File

I'm working with ArcObjects to set up a batch import from xls and csv files into a geodatabase. That part works fine, but after the import, I want to delete the file. This, however, doesn't work, because the file is still open. None of the…
Ixonal
  • 616
  • 8
  • 18
0
votes
2 answers

convert decimal to string and add comma and separator

What would be the easiest way to convert a decimal to string, and add a comma and spaces. It has to convert land parcels area, in square meters. It can be 1456, 25678, 364789 or 2548978 m².. It depends on the size of the parcel. I'd like to convert…
djobert
  • 55
  • 1
  • 3
  • 7
0
votes
2 answers

Getting an Access 2007 table (.accdb extension) in ArcMap programmatically

I have recently found a script from ArcScripts on how to get an Access table in ArcGIS programmatically and it works well. But this is for Access 2003 (.mdb extension) and earlier. The code is posted below, and I want to know how to modify it for…
Adrian
  • 23
  • 1
  • 3
0
votes
1 answer

How to find points that intersect an envelope of a line, but not the line itself? (Envelope of a geometry)

I have 2 layers. A lines layer and a points layer. For any given line, how can I find the points that intersect the envelope of the line, but not the line itself, or more specifically, not the to point or from point of the line. I can obviously find…
Jacques Bosch
  • 2,165
  • 3
  • 25
  • 36
0
votes
1 answer

Get rows with same field in ArcGIS 10.1

ArcGIS 10.1 using ArcObjects in .NET. Im well adept at iterating through all the features in a featureclass. However I've spent the better half of a day trying to look for a way to group features by a field. I currently use: Dim pFeatCursor As…
sinDizzy
  • 1,300
  • 7
  • 28
  • 60
0
votes
1 answer

How do I add ArcObjects Version to a Visual Basic project?

I am developing a Visual Basic project in Visual Studio 2010 that uses ArcObjects. (I have ArcGIS 10.3 for Desktop.) I am getting the error "'RuntimeManager' is not declared. It may be inaccessible due to its protection level." A previous answer,…
0
votes
1 answer

selecting row among duplicated ones in VBA

ArcGIS 9.3 Arcobject I wanna select one row of each duplicated SIDs in a field below. (an attribute table of a shape file) The priority is R > S = I > 0 Therefore, among SID 87, FID1 will be selected. (SID 88, STATUS will be S+I) (SID 89, FID 6…
0
votes
1 answer

Adding a Image Service layer to an ArcMap project with ArcObjects

I would like to add an ArcGIS Image Service programmaticaly using ArcObjects. My Image Service specs are below. Data Type: ArcGIS Image Service Service Name: Aerial Imagery 2008 AIS Service URL: ImageService://gisimage/2008_DOQQ Data Representation…
0
votes
1 answer

ArcObjects: Why is my StandaloneTableCount 0? (IStandaloneTableCollection)

When I do: IStandaloneTableCollection collection = (IStandaloneTableCollection)MxDoc.FocusMap Then collection.StandaloneTableCount returns 0. I have created the new table via ArcCatalog and registered it as versioned. What am I missing?
Jacques Bosch
  • 2,165
  • 3
  • 25
  • 36
0
votes
1 answer

How to Capture an OnMouseDown Event in a ArcMap Control?

I have a Control in ArcMap in which I created with buttons, A Listbox and some more buttons. I want to add coordinate items to the list box. Scenario: A user clicks a Add a Coordinate button on the control. The user then clicks on the map to add…
SpoiledTechie.com
  • 10,515
  • 23
  • 77
  • 100
0
votes
1 answer

open mxd in arcobjects vb.net add in

I am trying to open an mxd in an ESRI ArcMap add-in using vb.net. The user starts with a blank mxd and runs a tool to open an mxd that is stored in a file. The mxd that is opened by the code has some feature layers and some graphics in the…
Luke
  • 1
  • 1
0
votes
1 answer

How to access a grid using ArcObgect

How can I get value of each cells of grid using ArcObject? Grid was created by Spatial Analyst -> Distance ->Straight Line I need to use this values for other operations. Please, help me!