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)

2
votes
1answer
69 views

ITopologicalOperator::Simplify not removing self-overlaps

I maintain an application whose main job it is to take esri-ish things from users and turn them into sql spatial objects in our database (2008 R2). Below is an excerpt that may be useful: public ...
0
votes
2answers
2k views

Accessing raster dataset's attribute table? [closed]

I need to loop through the rows in the raster attribute table and add a date for each row.
1
vote
0answers
19 views

Activating new Snapping feature in ArcGIS Engine while editing features and vertices?

I'm working on new Snapping Capability of ArcGIS Engine. I want to use snapping capability using ISnappingEnvironment class while users are editing a feature or moving vertices. I tried ...
1
vote
2answers
641 views

Opening a custom model's geoprocessor window with ArcObjects

I have developed a custom model using ModelBuilder in ArcGIS, and I would like to use a .NET Base Command to open the geoprocessor parameter window for this tool so the user can enter their ...
1
vote
1answer
332 views

Set size of map in PageLayoutControl to print ScaleBar underneath, not within map

For printing we have a PageLayoutControl where the user can select the map extent, he wants to print. I like the map to fill only a square in the middle of the page so that the title, the ScaleBar and ...
1
vote
2answers
560 views

How to center map in PageLayoutControl?

In my print preview dialog I have a PageLayoutControl loading the same map as the main view's MapControl. I want the map in the PageLayoutControl to center at the same position as the MapControl. ...
1
vote
1answer
294 views

Dynamic defining of transformation type for ISpatialReferenceFactory.CreateGeoTransformation call [duplicate]

Suppose given a point (IPoint) in some coordinate system. Required to transform it to another coordinate system. If both of coordinate systems are predefined, we can use IGeometry2.ProjectEx with ...
6
votes
3answers
4k views

Using ArcObjects to choose GeoTransformation?

I’m currently building a Desktop add-in tool with ArcObjects that: Asks a user to select a feature class Reprojects the feature class to Web Mercator Executes some geoprocessing The initial ...
1
vote
3answers
2k views

How to merge several tables/feature classes into single geodatabase object in ArcObejcts?

My project is ArcGis extension, which uses a specific set of tables and feature classes. I want that this structure to behave like single geodatabase object, so user cannot delete part of it's schema. ...
1
vote
1answer
2k views

How to get the “queried” value from attribute table and put it in a textbox?

I am new in VBA, I have a problem about querying an attribute table....: I have a table of a layer (wish.shp) with the fields: owner_ID, Value, Area. I made 3 textboxes in a userform, I input the ...
1
vote
1answer
255 views

Get Feature Symbol

I am using this code to get the symbol associated with a feature: IFeature feature = geoFeatureLayer.FeatureClass.GetFeature( geoFeatureLayer.FeatureClass.FeatureClassID ); ...
1
vote
0answers
35 views

How do you symbolise a 32-bit raster in ArcObjects? [closed]

For rasters that are above 16-bit - you cannot apply a colormap. So what is happening when you symbolise in ArcMap a 32 bit raster - it's certainly possible. I'm trying to emulate this funcitonality ...
0
votes
1answer
607 views

Editing attribute table with VBA? [closed]

I am a newcomer to coding. My task is to create a code snippet that enables the user to edit values (rows) in the attribute table. My attribute table consists of points with basic information such ...
0
votes
1answer
511 views

Focus ArcMap application Window VBA

How would you focus your ArcMAP application window using VBA? I have a script that runs and selects polygons and zooms to them, but I would like ArcMap to focus and come to the front at that point. ...
1
vote
2answers
391 views

Programmatically switching to edittemplate using ArcObjects?

How can I programmatically switch to a edittemplate in: ArcMap 9.3: IEditLayers pEditLayers; IFeatureLayer pFeatLayer; IMap pMap = ((IMxDocument)Application.Document).FocusMap; pEditLayers = ...
0
votes
2answers
869 views

Adds ArcGIS controls in the Visual Studio Toolbox window for dragging and dropping into a design view surface

I want to drag and drop MapControl into a design view, but I have an error: System.Runtime.InteropeServices.COMException(0x80040154):Classe non enregistrée (Exception from ...
0
votes
1answer
440 views

Getting map using C# code in ArcMap?

I have been programming in C# a small code for:1) create a polyline Featureclass in a GDB, 2)put that in the map view (ArcMap 10.2) and finally 3) edit that feature using a button or tool... Well I ...
1
vote
1answer
33 views

Create a mapping between polyline and raster in ArcObjects

In my case I have two sources of data: a vector shapefile with a polyline (expressing the path) and a raster with some integer metadata values available for each cell. What I would like to do is to ...
1
vote
0answers
55 views

ArcObjects OnChangeFeature event not firing unless you move feature

I am displaying points, lines and polygons on ArcMap as features with an addin. I want my end users to be able to change features (move geometries, add vertex, delete vertex etc) and get the updated ...
0
votes
2answers
56 views

AddIn button/tool force Arcgis 10.2.2 to close

Issue : AddIn button/tool force Arcgis 10.2.2 to close. Development environment: Visual Studio 2013, .Net framework 4.5 (I tried with 4.0 also), Arcgis for desktop 10.3 Works fine on development ...
0
votes
0answers
20 views

hold some data at layer object

Is there in arcobjects the ability to store some data at the layer in table of content sth. like ILayer.Tag or an Interface which I can misuse for this?
1
vote
2answers
525 views

ArcGIS COM API Error

i am using the arcGIS api to make a plugin for arcFM, when i try to run this code Type t = Type.GetTypeFromProgID("esriFramework.AppRef"); System.Object obj = ...
1
vote
1answer
229 views

ArcGIS - ICommandBars exception

Testing my VB.NET 2010 app in ArcMap an exception occurs when ICommandBars is instantiated. ' zoom to selected Dim mxApp As ESRI.ArcGIS.Framework.IApplication Dim numUID As UID = New ...
1
vote
1answer
97 views

Spatial reference does not match data frame for Bing Maps

In ArcObjects I am loading Bing Maps as a base layer. It's coordinate system is esriSRProjCS3Type.esriSRProjCS_WGS1984WebMercatorMajorAuxSphere. On top of the base layer, I am trying to load points, ...
4
votes
1answer
75 views

Multiple features within a single feature layer with different geometries

I am working with ArcObjects SDK 10 for .NET. There is already a geospatial database at my disposal. So I am trying to map its spatial context to ArcObjects context. We have objects like state, ...
2
votes
1answer
969 views

Interpolating heights in DEM using ArcGIS API's in C# [duplicate]

I am new to ArcGIS and not familiar with it. I want to interpolate heights in a DEM file using ArcGIS? Is it possible? Actually, I want to write a C# code that will read the height from DEM file for ...
2
votes
1answer
59 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
1answer
405 views

ArcObjects DeleteLayer leaving layer artifacts

I'm working on some code for a button in ArcGIS 9.2 using Visual Studio 2005. The process adds a point layer, performs a select by location, exports the attributes of the selected points, then removes ...
6
votes
2answers
1k views

Problems when trying to Undo edit operations in ArcGIS

I'm trying to programatically stop/abort/undo an edit operation inside a ArcSDE environment. My environment is currently Oracle, ArcSDE 9.3.1 and in our custom code (I inherited a large ugly portion ...
2
votes
2answers
713 views

Detect map scale from raster dataset

Let's suppose you have a raster dataset (in a folder or in a personal database). How can you detect what map scale it represents (assuming of course that all rasters have same dimensions/resolution)? ...
0
votes
1answer
637 views

Going round in Circles..Buffering/ArcObjects/VBA

I've just started learning VBA and Arcobjects, and at the moment just playing around tyring to do different things. What i am trying to do is Click on a tool, and allow the user to put a point ...
5
votes
1answer
1k views

ArcGIS 10 Add-ins - How to adjust the size of an add-in toolbar?

I've built an add-in toolbar with two buttons. Works great, but I'd like to make the toolbar a little wider so that the user can see it's full caption. Is there a property I can adjust in the ...
8
votes
2answers
941 views

What are the implications of using .NET Generics to store ArcObjects?

I'm wondering what are the implications of using Generic types in .NET to store ArcObjects, such as ILayer, IField, etc. The compiler throws me a warning when using these kind of values public class ...
4
votes
3answers
6k views

How do I upload a Featureclass to a Geodatabase in C#?

I have a featureclass with Arcobjects that came from a Shapefile and I wish to import it into a geodatabase. I have the geodatabase connection, I just don't know how to load the feature class to a ...
0
votes
2answers
604 views

Bug in ControlMapMeasureTool? “Measure An Area” creates a duplicate dialog in ArcGIS Engine 10

When we add a measure tool to the AxToolbarControl through the properties dialog, we can change to measure length and area in the dialog that pops up. But when we add a ControlsMapMeasureTool through ...
2
votes
1answer
743 views

Is there any way to perform spatial filter on multiple layers together?

I have a scenario where a featureclass[Child Version] is queried for some overlapping features on [SDE.DEFAULT] Version using ISpatialFilter, After getting few result, these features are looped and ...
2
votes
1answer
286 views

Visual Basic Error while Creating a new UIButtonControl

I am trying to add a new form that a programmer sent me for a specific UIButtonControl. When I import the form into Visual Basic following the steps they sent me, it imports the form as a module ...
2
votes
1answer
839 views

Symbolizing layer with graduated colors using ArcObjects?

Can anyone tell me how to use isimplerender interface to symbolize a polygon layer with graduated colors according to a value of a field such as "population"? I've used the interface ...
2
votes
1answer
548 views

Adding ILayer to IMap in ArcGIS Server?

I wanted to add ILayer to IMap, i think it has been added but problem is that it does not display it on the website. I am running ArcGIS Server 10, using visual web developer 2010 express edition ...
2
votes
2answers
1k views

Copying Symbology between layers with different numbers of features

I am working on copying a layers symbology to a number of other layers which have the same geometry, table structure etc, etc but not the same number of features. I have a state wide layer and I ...
0
votes
3answers
2k views

Unselecting Individual Selected Features using ArcObjects?

In my Add-In built using .NET ArcObjects/C# with Arc 10.0 I would like to be able to programmatically unselect a subset of all selected features gathered through a reference to ...
1
vote
1answer
2k views

Creating Thiessen Polygons (Analysis) by defining external feature boundary?

Although this issue has been addressed in this post some months ago: Thiessen Polygon delineation within a Feature, the appropriate answer has not been given. So, new ideas are welcome. My question ...
2
votes
3answers
580 views

Getting map document name/path from published map service using ArcPy/ArcObjects?

I have several map services published to ArcGIS Server 10.0 SP2 and I have layer metadata files exported to HTML that I want to link to the layers in the map service. Currently the metadata HTML ...
6
votes
4answers
349 views

Filtering features using geometric attributes of polygons in ArcGIS Desktop?

Given a polygon featureclass containing many polygons of different sizes and shapes, which geometric attributes (area, perimeter, etc) could be used to filter the polygons? It's probably best to ask ...
0
votes
0answers
10 views

Editor/EditTemplate: Creates empty feature and Delete's graphic after draw

ClassModels Contain Samples which represent our Feature. The user clicks add on a classmodel to add features (or samples to it). The editor loads the tool and the correct template but when the user ...
1
vote
2answers
118 views

Visual Studio 2015 Error when running ArcMap add-in

I'm running a simple ArcMap add-in in Visual Studio and am getting this error: Severity Code Description Project File Line Suppression State Error The "ValidateAddInXMLTask" task ...
1
vote
0answers
28 views

Can not export some annotaton layers using QuickExport in ArcObjects.NET

I develops add-in for ArcMap that exports different layers to .mif format using ESRI.ArcGIS.DataInteroperabilityTools.QuickExport Geoprocessor gp = new Geoprocessor(); gp.OverwriteOutput = true; ...
1
vote
2answers
54 views

Using pop-up dialog to change properties of northarrow in ArcObjects?

In ArcMap, users could double-click on elements like north arrow and then change its properties in a pop-up dialog. I was wondering how to accomplish this using ArcObjects?
3
votes
2answers
2k views

Is there any way to set polygon features fill color and outline programmatically?

By some process I am creating a polygon feature layer. Before adding the layer in the map, I want to set polygon's fill color to no color and set polygon's outline color and width. I am working with ...
2
votes
1answer
377 views

ArcObjects ITextSymbol.GetTextSize in Python revisited: usage with StartDrawing and FinishDrawing methods

I am using ArcGIS 10.0/ArcObjects and Python 2.6. I am trying to get the usage of the ITextSymbol.GetTextSize method correct. The syntax, as established in an earlier question, is: dblx, dbly = ...