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.

learn more… | top users | synonyms (3)

0
votes
0answers
17 views

C++ code and ArcGIS Button

I have some code in c++ that used gdal and process raster and create an output raster. I want to create a button in ArcGIS Desktop (using ArcObjects SDK 10.2 c#) and pass the raster layer to my c++ ...
0
votes
1answer
24 views

Proper way to check if a Factory Code is Projected or Geographic

I would like to create a SpatialReference with ArcObjects, but I won't know whether it is Projected or Geographic, I'll only have the SRID. Is it fine practice to use ...
1
vote
2answers
339 views

Why does my ITopologicalOperator Intersect result have incorrect area?

I have used ITopologicalOperator for getting common Area of two polygons but the result is not correct. May anyone please tell me how to get the common area of two features. //Make Topological ...
2
votes
1answer
231 views

buffer using topological operator

IMap map = axMapControl1.ActiveView.FocusMap; IFeatureSelection fSelection = map.get_Layer(0) as IFeatureSelection; ISelectionSet selSet = fSelection.SelectionSet; ...
0
votes
1answer
207 views

vb.net arcobjects enable customized context menu item only if a feature is selected

The solution may be very simple, but I haven't made it work. I want to enable a data view context menu item only if a feature (in polyline layer) is selected, all other places the item should in ...
0
votes
0answers
8 views

ArcObjects - Interacting with existing ArcGIS Server layer

I have a bunch of users running a 10.2.1 VB.Net extension, which assumes they have a particular MXD loaded. That MXD contains an existing ArcGIS Server layer (ie. not added programmatically by the ...
2
votes
1answer
22 views

Filtering Layers based on types in ArcGIS

I want to loop through all the layers in TOC in ArcGIS and report Raster and Vector Layers. I want to see how many layer are raster and how many are vector. I can access the layers using: IEnumLayer ...
2
votes
3answers
168 views

Using .NET Runtime SDK or .NET ArcObjects?

I want to build a desktop GIS application with following features in it: It can be able to read all the attributes of any digitized map It can be able to draw polygon or line With the help of that ...
2
votes
0answers
29 views

ITopologicalOperator2 operation Simplify taking very long in ArcGIS 10.3.1

I have a method that does a simplification of geometries. I have used this common code since ArGIS 9.2 without issues and it still works fine in ArGIS 10.2.2. Recently I upgraded a project to 10.3.1 ...
3
votes
1answer
39 views

Polygon points to Polyline

I am trying to create a polyline from the points that I query from a polygon. I have a polygon, and I am getting its edges, casting them to segments, and then use QueryNormal to get the mid point ...
4
votes
0answers
22 views

IRasterLayer background transparency in C++ with ArcObjects 10.x .NET

I have a georeferenced IRasterLayer which is displaying data with no alpha channel. I am trying to specify a color which should be treated as transparent. In ArcMap it is possible to set a specific ...
2
votes
0answers
21 views

How can I get domain values associated with a field using ArcObjects?

I am trying to access the domain of a selected feature. I have seen examples for VB.NET and C#.NET, but I cannot access the domain of a specified field. Dim findName As String = Nothing Dim ...
2
votes
1answer
34 views

Standalone program can see license

I used standart license initialization code in C# standalone program. It was working perfectly on 10.1 and 10.2. But after migrating to 10.3 it says Licenses are not available. Meanwhile ArcMap and ...
0
votes
1answer
19 views

This operation is not allowed while editing error

When I tried to delete a feature, I got :This operation is not allowed while editing" error when I wanted to refresh version. The related code is: 'Start Editing Operation ...
0
votes
1answer
345 views

How to call a GP service from ArcObjects in .NET using ArcGIS Engine 10.2?

I published and successfully accessed a GP service in ArcMap 10.2, but I couldn't make it work in my .NET program using ArcObjects 10.2: IGeoProcessor gp = new GeoProcessorClass(); ...
2
votes
2answers
75 views
+150

How to create installer for ArcObjects applications in VS 2012

After Visual studio 2010, the extremely useful "Setup And Deployment" project have been removed from visual studio. And MS have packed it with a rather lousy InstallShield LE(LIMITED edition). You ...
0
votes
1answer
24 views

Spatial checking for 2 polygons intersect in ArcObjects

I want to check source building intersect with target building (source buildings 150000 & target buildings 150000) this is very heavy data. i have use(Spatial ...
4
votes
2answers
178 views

Create layer from ArcGIS REST URL in ArcObjects using C#

I am trying to create a layer and add it into a MapControl from ArcGIS REST URL. For example I use the following URL ...
7
votes
1answer
2k views

Creating ArcGIS add-ins for both 10.0 and 10.1

Has anyone tried to deploy the ArcMap add-in for both ArcGIS 10.0 and ArcGIS 10.1? There is a target version parameter in the add-in config XML file that needs to be specified. After upgrading the ...
2
votes
1answer
17 views

.net arcobjects delete point feature by one of the attribute value

What I want is to delete a feature by objectID, currently I have got the objectID of the related feature, but I have no idea how to delete the feature, can anybody give me some advice? The ...
-1
votes
1answer
177 views

Which Map format for performant ArcGIS Visual C# application?

I am developing small ArcGIS Visual C# applications. I can display maps on the interface. Which map format (.jpg , .tif , .png / ArcGIS supported other map formats ) provides the best performance? ...
3
votes
1answer
740 views

Creating ArcGIS toolbar with new tools using Python?

I have written a number of fairly-simple python functions using arcpy which help a user significantly when performing a certain workflow using various tools (both ArcGIS toolbox tools and external ...
0
votes
1answer
174 views

Is snapping working when changing from NAD83(decimal degree) to NAD83 Zone UTM 11N(meters)?

I've used the following ESRI snippet to Convert the display extents in Pixels (at the current map scale) and then return out the map units. public System.Double ...
1
vote
1answer
343 views

Extracting all field names of a featureclass using query filter programmatically

I want to get all field names present in a feature class using queryfilter programmatically.
0
votes
2answers
19 views

Changing Layer Color

I have a map with many feature classes on it. I want to use arcobjects to get to a selected layer (aka one of the feature classes) on the map, and change the fill color of all the polygons within that ...
2
votes
1answer
300 views

Can I update the service on ArcGis Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
1
vote
2answers
970 views

Get the distance from a point on a polyline to polyline's from point

I have a polyline and a point on the polyline. I need to find the distance from the from point of the polyline to that point. ICurve.QueryPoint method does the opposite thing. It gives a point ...
3
votes
1answer
104 views

Field cannot be deleted because it is being used as relationship key?

I want to delete some fields of featureclasses, but when I run the code FeatureClass.DeleteField(Field) it works well for some featureclasses but after some time it gives an error such as: The ...
2
votes
0answers
15 views

Catching data frame caption changed event

Is there a way in ArcObjects to catch the event that the data frame's caption has been changed or a layer's caption has been changed?
4
votes
1answer
294 views

Exporting Featureclass to Shapefile with field names changed using ArcObjects?

I have some annotation feature classes stored in a Pgdb.I want to export them to a shape file.Some field name need too be changed in that shape file.I am using vb .net to do this.Any help is ...
2
votes
0answers
51 views

How do I persist an ArcObjects workspace?

In a custom layer I have a workspace variable (File GDB or SDE) that I need to persist (save/load). Therefore I need to persist the ConnectionProperties of the workspace. Thankfully ...
2
votes
1answer
35 views

Programmatically get Layer source properties DataType with ArcObjects?

I am trying to access the DataType property of a Layer in the TOC in ArcMap. The layer is added from a web service as an IMapServerRESTLayer. The Data Type property is listed with Layer > Properties > ...
3
votes
2answers
2k views

Finding intersection points of two polyline features using ArcObjects?

I'm currently working with street intersections trying to find point(or points) where 2 given streets intersect(!disjoin). Streets are all Polyline features, and I have to work with 2 features at ...
1
vote
0answers
22 views

Memory leak updating geometry - ArcGis Runtime .Net

i'm working with ArcGis Runtime SDK for .Net v10.2.5. I have an UDP socket listening and waiting for image data that fires a function executed on a different thread in background. I want to draw ...
2
votes
3answers
751 views

How to change Map Scale programmaticaly in C# WinForm Project

I have created form with axMapControl and comboBox with values of possible scales (e.g. 1:1 000 000, 1: 500 000, etc). How can I change current map scale programmaticaly by using value from ...
3
votes
1answer
210 views

ArcObjects/VBA to python Network edge to junction lookup IEdgeFeature equivalent in arcpy

In an effort to migrate a script that transfers attributes from a geometric network to a feature class (on a given network edge segment, what are the up and downstream junctions?) I would like to ...
2
votes
1answer
207 views

Create FeatureClass in Personal Geodatabase and store data

I have to create a new featureClass in my existing personal GeoDatabase. And save some polylines into this featureClass. How can i do it? I need c# code to do this. Edit: I have a problem during ...
0
votes
0answers
16 views

ORG_ Tables After Replication

I am performing a an import on replica data using ArcObjects. Everything seems perfect - I am using one way Parent to Child with archiving enabled and I am using a disconnected approach (import XML ...
0
votes
1answer
20 views

Updating and interacting with map layers through a windows form

Using arcobjects I am attempting to connect a windows form with a checkedlistbox, to the layers that I have on my map in ArcGIS. When I first create my form, the list of checkboxes will automatically ...
10
votes
2answers
1k 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 ...
6
votes
2answers
2k views

Detect Table of Contents Changes in ArcMap using ArcObjects?

What is the preferred and/or most efficient method for detecting a change in the table of contents in ArcMap using ArcObjects? My current implementation relies on a dictionary with the names and ...
1
vote
3answers
222 views

Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013: Unable to start ArcMap.exe

I am developping an ArcMap 10.3 Add-In targeting .NET framework 4.5 on Visual Studio 2013. I used ESRI's wizard to build a simple button add-in and the projects debug properties are configured to ...
1
vote
1answer
324 views

Overlapping Polygons in same feature class using Arcobjects

I have a polygon feature classs with millions of records, I need to find list of overlapping or intersecting polygons in the same feature class, and how to do it efficiently? I need a ESRI ...
0
votes
0answers
133 views

Run time error for GP objects

I have a code with toolbars, which I tried to run it in another PC, but it failed. I get a run time error "Method Addtoolbox of object IGDispatch failed". The line that the code stacks is the last one ...
3
votes
1answer
38 views

How to sort attribute table using ArcObjects/VBA code?

I'm using ArcMap 9.3. Shift the rows order display (ascending/descending) for a given field is as simple as double clicking on the screen. However I'd like to know how to perform this simple ...
0
votes
1answer
23 views

Using AddDataDialog in standalone ArcObjects/C# application?

I need some help with showing an "AddDataDialog" in a C# standalone application to select some feature classes from inside a file-geodatabase. Whatever I try, it ends up with an Exception which makes ...
1
vote
1answer
409 views

IMapServerObjects.get_Map says object is null reference.

So I am trying to access a map layer, which I can connect to. try { agsconn.Connect(); Log.Write("Connected.", "myclass"); ...
0
votes
0answers
39 views

Drawing polylines with angle and distance using vba

I am new to arcobjects using VBA. I have a point feature, and i want to draw polyline using point feature as starting point in desired direction and distance. And I have to draw second line basing the ...
1
vote
1answer
651 views

Custom C# tool populate field combobox parameter from layer parameter

I'm creating a custom tool for arcmap toolbox where user select FeatureLayer in one combobox, and in next combobox user can select a field from selected FeatureLayer. FeatureLayer combobox fills ...
5
votes
1answer
202 views

How can I increase performance on inserting features with polygon geometry?

I have a problem when inserting features with polygon feature class in FGDB. This is my code: ... initialising some fields (does not affect performance) m_featureBuffer.Shape = ...