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
2
votes
0 answers

How to add a field to a FeatureLayer?

I'm trying to add a field to a FeatureLayer, this is the code I'm using to do this: IMxDocument mxd = (IMxDocument) app.getDocument(); FeatureLayer flayer = ((FeatureLayer)mxd.getSelectedLayer()); IField newField = null; newField = new…
user2005494
  • 189
  • 1
  • 12
2
votes
1 answer

Why do I have to reload the page to display the map correctly?

I asked this question already here, unfortunately the problem could not be solved, so I ask here :) I've got a JQM page in which I show a map. Stupidly, to show the map correctly, I have to reload the page. This is how the map gets displayed on the…
ArmandoS63
  • 693
  • 1
  • 6
  • 21
2
votes
2 answers

ArcObjects - enumerating feature classes and datasets within a geodatabase

I'm trying to enumerate the contents (feature classes and feature datasets, not interested in tables, etc) of a file geodatabase using vba/arcobjects. I have the file GDB set as an IGxDatabase object, but can't find a way of getting further in.…
Tom
  • 21
  • 1
  • 2
2
votes
0 answers

how to create polyline shapefile using arcObject

I am working on ArcObject. I want to create shape file using arcObject. I am very close to it. but need some better alternative as I feel my solution may fall short in time when there are hundreds of thousands of records I have Geometry field in sql…
Harsh Desai
  • 31
  • 1
  • 4
2
votes
1 answer

Declare a VisualStateManager Group Collection as a Resource in a Control Template

I need to create a several styles that represent different point objects that all do the same thing. To be more specific, it is a bunch of ESRI MarkerSymbols that can either be a Circle, Square, Star, etc but that is probably not relevant to the…
Ernie S
  • 13,902
  • 4
  • 52
  • 79
2
votes
7 answers

Developing ArcMap extension .Net books?

We have 2 new GIS programmer/analyst in our department (new to programming and ArcObjects) and I don't feel I'm qualified enough or have the time to teach them. So I'm looking for entry level books/tutorials for them to use as reference. The only…
MongooseNX
  • 342
  • 6
  • 14
2
votes
1 answer

FeatureCursor instance passed to Search method of ISelectionSet throws NullReferenceException

I am trying to create a custom tool in VB.Net for arcmap. But im having a problem with FeatureCursor passed to ISelectionSet's Search() method. Here's a portion of my code: Dim pSelSet As ISelectionSet = provFSel.SelectionSet Dim provCursor…
spearman
  • 21
  • 3
2
votes
1 answer

Why are released ArcObjects COM objects not finalized until the GC is manually forced to do so?

I am working on a .NET application for processing geographic data that uses ESRI's ArcObjects COM library via ESRI's own .NET interop assemblies. When running in production, the process can crash during some operations due to reaching the 2GB…
Gnat
  • 2,861
  • 1
  • 21
  • 30
2
votes
1 answer

COM objects (arcobjects) in Python

I'm new to OOP and trying to use COM objects (arcobjects) in Python. Program is GIS related, but I did not get any answers on GIS.SE, so I am asking here. Below is piece of my code. I am stuck at the end where I receive iFrameElement. ESRI describe…
Tomek
  • 135
  • 5
2
votes
2 answers

Esri ArcObjects - Esri.ArcGIS.Version assembly

Its a long shot, has anyone used Esri ArcObjects recently? According to the docs: A new requirement is runtime binding. Runtime binding refers to locating the appropriate ArcGIS product installation of a stand-alone ArcGIS Desktop or Engine…
Justin Harvey
  • 14,446
  • 2
  • 27
  • 30
1
vote
1 answer

How to "copy parallel" using ArcObjects, which ESRI namespace "copy parallel" belong to?

I am very new to ArcObjects. Can anyone help me to find the namespace for "copy parallel", which is under the Editor in ArcGIS desktop 10? I will be highly appreciated if you can provide an example about how to use it in Visual Studio 2010.
user1293655
  • 31
  • 2
  • 5
1
vote
1 answer

The command "esriRegasm.exe ..." exited with code -1. I can't build a project

I want to build the project to create a tool with ArcObjects in Visual Studio. I get this error: The command "esriRegasm.exe "...Project1.dll" /p:Desktop /s" exited with code -1. I use C#, Visual Studio 2015, ArcObjects 10.5, ArcMap 10.5. I looked…
Nolu
  • 11
  • 2
1
vote
1 answer

VB6 to VB.NET conversion - System.Collections.IEnumerator

I have a fairly lengthly block of code that I'm trying to convert from VB6 to VB.NET. The ArcObjects GIS code basically looks at a table and groups a bunch of GIS layers together and adds them to the ArcMap table of contents. I'm having trouble…
artwork21
  • 330
  • 12
  • 29
1
vote
0 answers

ArcObjects: Intersect feature class with polygon

I have feature class with polylines. I need to intersect the circle polygon. ITopologicalOperator3 topOperator = (ITopologicalOperator3)pPoly; topOperator.IsKnownSimple_2 = false; topOperator.Simplify(); IGeometry resultGeom =…
aybb_2000
  • 21
  • 4
1
vote
1 answer

How to create an ArcMap Layer from a ArcGIS Map Service

I would like to add an ILayer created from an ArcGIS Server Map service to an IMap with ArcObjects, but don't see how to do it. I am getting an IMapServer3 with the following code, where mapName = the map service: serverContext =…
1
2
3
13 14