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
3answers
162 views

Arcmap Refresh Button

I am working with ArcMap and C#. In the bottom left hand corner, there is a menu where you can toggle between Data view and Layout View, a Pause button, and a refresh button. I have created an Add-in ...
1
vote
2answers
28 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 ...
8
votes
0answers
254 views

ArcObjects running in Addin slower?

I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
5
votes
0answers
115 views

Is IGraphicTracker leaking memory?

It seems that when geometries are removed from an IGraphicTracker instance, the geometries remain in memory until IAoInitialize.Shutdown() is called. I have tried removing the geometries by calling ...
5
votes
0answers
318 views

Plugin Workspace: when to close an OleDbDataReader?

I'm developing a plugin workspace for ArcGIS. Internally, the plugin uses an OleDBconnection. All of the sample code I see seems to stress the importance of closing and disposing the connection. ...
5
votes
0answers
102 views

Can I verify that attribute indexes are being used in a query from ArcObjects?

We have some software as part of a larger project written using ArcObjects via .NET. This software migrates and merges data from multiple file geodatabases in one schema to a single file geodatabase ...
5
votes
0answers
193 views

Is it possible to add a command to the ArcMap Find dialog context menu?

I think I already know the answer to this... which is "no", but I wrote this up so I'll ask anyways. Is it possible using ArcObjects to extend/customize the ArcMap Find tool/dialog by adding a ...
5
votes
0answers
730 views

How to find layer ID and name from Identify query using ArcGIS Web ADF?

I need to retrieve the layer ID of every layer returned by the IQueryFunctionality.Identify function (I am using ADF with .NET) Identify function spits out a DataTable array for layers which have ...
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 ...
4
votes
0answers
202 views

What is the function of the ESRI.ArcGIS.AddIns.targets file?

I am currently upgrading from 10.2 to 10.3 and as expected there are always some issues with recompiling addins and upgrading the the visual studio version. There is now a known issue for which ...
4
votes
0answers
261 views

ArcObjects .NET - How to close/release FeatureClass, Workspace, Factory

I have a long-running process. I want to prevent resource leaks or rogue database connections. At intervals during the process I want to do this: get an ArcSDE (Oracle) workspace factory open a ...
4
votes
0answers
171 views

ArcObjects : Out of Server Memory when reconciling a large edit session

One of our users has been periodically experiencing 'Out of Server Memory' errors with ArcSDE 10.0 when trying to reconcile a large edit session. VMware ESX Instance: Windows Server 2008 R2 ...
4
votes
0answers
563 views

ArcGIS Cost Path Analysis - How Is Arcpy Cost Path Analysis Tool So Much Faster Than ArcObjects

Although I love slinging some python to create geoprocessing scripts/services, I was under the impression that using ArcObjects to do the equivalent operation(s) will have better performance. I've ...
4
votes
0answers
848 views

HRESULT E_FAIL error when doing batch geocoding in ArcObjects

I am trying to write a batch geocoding application in ArcObjects/C# and keep getting the meaningless "Error HRESULT E_FAIL has been returned from a call to a COM component" error (error code ...
4
votes
0answers
350 views

Bad data beaking IRelationshipclass.GetObjectsRelatedToObjectSet

I have two workspaces - one a File GDB, the other SDE (SQL Server). Both workspaces contain the same data with the same relationship classes. When identifying features in ArcCatalog, the results ...
3
votes
0answers
49 views

Setting Field in ArcMap Symbology Properties using ArcObjects?

I am programmatically rendering a feature layer in ArcMap but I can't set the Field property in the Symbology properties form. This results in the layer having the correct render/breaks/legend ...
3
votes
0answers
106 views

Memory issue inserting a large dataset in GDB with ArcObjects

I am using the ArcObjects API for Java to load a very large dataset in a File Geodatabase in one feature class. The whole dataset I have to load is composed of 200 datasets of 30k polygons, and I ...
3
votes
0answers
166 views

How to set up graduated colors for a layer using ArcObjects?

I have to render a feature layer with a graduated colors renderer, using the ArcGIS API for Java (or VB, .NET). As the feature layer data is created dynamically using webservices, I don't in advance ...
3
votes
0answers
45 views

Is it possible to add an ArcGIS attachment to a row in Oracle/SDE using oracle stored procedures?

So far I have been able to attach files to features within a featureclass using the python tools and ArcObjects. Within Oracle I have been able to add features with geometries using the ST_Geometry ...
3
votes
0answers
65 views

Rotate map with dynamic display layer?

I am developing an application using the dynamic layer. However, I have trouble rotating the map (Not the same as rotating data frame by default). See more details: ...
3
votes
0answers
256 views

ArcObjects Memory Leak with IWorkspaceEdit?

I have ArcGIS 10.1 installed. I have created a function for copying all of the features from one shapefile to another using IFeatureBuffer, now every time the function when it is called, it takes ...
3
votes
0answers
103 views

Pulling ArcSDE feature classes from current map to fieldmapping as DETable?

I'm working with SDE layers in arcmap. trying to avoid pointing to the sde file itself. I've tried workspace.Pathname, it was empty for sde remote workspace. I've also tried IName from workspace, ...
3
votes
0answers
28 views

How do I drag item/file from ArcCatalog to custom UI form created with Toolbar Add-in?

I have created a button add-in in ArcMap that pops up custom UI/Form. I want to drag and drop file from ArcCatalog into the textbox on the Form. I am able to do so with windows explorer but not from ...
3
votes
0answers
193 views

Temporary File GDB-based scratch workspace is not deleted after it is released

I have created a temporary File GDB-based scratch workspace as follows: var factoryType = Type.GetTypeFromProgID("esriDataSourcesGDB.FileGDBScratchWorkspaceFactory"); var factory = ...
3
votes
0answers
52 views

How to update a field in one geodatabase table via a join to another geodatabase table?

I have 2 tables in a file geodatabase and I need to update a field (via ArcObjects) in the first table with a field in the first. Basically, the equivalent to SQL Server's update statement: UPDATE t1 ...
3
votes
0answers
64 views

How do I check what type of mapsurround is on the map?

I want to have the program add a scalebar to the map, but only if there isn't one already on the map. The code below works for legends, but when I try to replace ILegend with IScalebar it doesn't ...
3
votes
0answers
153 views

An unhandled exception of type System.AccessViolationException

I am trying to upgrade a desktop extension from ArcGIS 10.0 to ArcGIS 10.2. I am getting this error: An unhandled exception of type 'System.AccessViolationException' occurred in GIS.Metadata.dll. ...
3
votes
0answers
309 views

Add WMS Layer into map using Arcobjects

I am going to add a wms layer to my existing map.I use this code: public load_wms(ESRI.ArcGIS.Controls.AxMapControl mapcontrol) { // Create an WMSMapLayer Instance - this will be ...
3
votes
0answers
146 views

How to compute surface of raster or any point using ARCGIS?

I have a raster image whose values are a digital elevation model of terrain. I need to know the surface type (topographic characterization) of particular points along transects of this DEM. How to ...
3
votes
0answers
222 views

converting a distance to a map distance

I have a point and a polyline. I need to find the perpendicular distance between each segment of the polyline and the point. By each segemnt of the polyline I mean that, each polyline may contain more ...
3
votes
0answers
52 views

Difference between Custom Layer & plugin data source?

You can add custom data to ArcGIS Desktop in two different ways: Plug-in Data Sources Custom Layer What is the difference between these two? I'm looking at the possibility of creating an editable ...
3
votes
0answers
772 views

How to wire ESRI.ArcGIS.Desktop.AddIns.Extension to a custom AddIn Button click event?

I am developing custom ArcMap toolbar with various AddIn tools, button and extension. I see the sample how to access the ActiveView events in the extension Initialize() method. private void ...
3
votes
0answers
59 views

Differentiate between 10-based Locator and Other Locators

In ESRI documentation, it states that the IAdvancedIntersectionGeocoding interface is only available for use in older locators (9.3.1 and below). I have verified this statement. One major problem is ...
3
votes
0answers
335 views

What is the correct way to handle assembly resolution in .NET ArcGIS add-ins?

This has been a thorn in my side for some time now -- in .NET ArcGIS add-ins, assembly dependencies packaged with the add-in are often not resolved correctly. I am still not sure why and under which ...
3
votes
0answers
521 views

VBA Convert decimal degree to Meters button

I have 2 data frames one which has WGS data in it and the other OSGB1936. I am trying to create a button where the user can input decimal degrees (WGS) and it will zoom them to that location in ...
3
votes
0answers
164 views

ArcObjects ICommandBar is not refreshing

I am migrating a 9.3 based Desktop extension, to 10.1 The Extension, is building toolbars on the fly. It creates the toolbar, and add the commands to it. This is the snippets of the code that does ...
3
votes
0answers
1k views

Error opening feature class from SDE (which can be opened in another application)

We're using ArcGis 10.1 with ArcSDE 9.3.1 on Oracle 10g. I've got 2 layers that cannot be opened or modified with ArcCatalog or ArcMap (but they show up in the list. Everything worked just fine ...
3
votes
0answers
639 views

How to change page size of pagelayout for printing custom size?

I have a A3 printer (size: 297mm x 420mm). But I am wanting to print my pagelayout with paper size is: 265mm x 380mm I tried to change the page size of my pagelayout to 265mm x 380mm by using the ...
3
votes
0answers
429 views

How to draw a rectangle graphic element (given feature and extents in meters) with ArcObjects?

I am trying to render a rectangle graphics box onto the map, given the center location of an polygonal feature and the extent dimensions (length and width) in meters. The feature has the spatial ...
3
votes
0answers
191 views

ArcGIS and SqlServer.Types: Does feature.Shape.SpatialReference.FactoryCode == srid?

I created a test implementation of the ESRI Geometry to WKT recipe provided by @SagebrushGIS. It seems to work great, but I'm wondering if the SRID value expected by Microsoft.SqlServer.Types ...
3
votes
0answers
147 views

GeoJSON support in ArcObjects 10 .NET

i am currently trying to build a geoprocessing application using OpenLayers and ArcObjects, I have some features that user draws on openlayers and i need to send these features to arcobjects for ...
3
votes
0answers
228 views

How to read pixel values from an image server layer with ArcObjects?

I'm having a problem with reading pixel values from the image server layer. The image server layer class implements IRasterLayer, so when I tried to read pixel values using IRaster2 obtained through ...
3
votes
0answers
557 views

Edit data using arcobjects by SOE Web Services on Arcgis Server 10.0

I trying to develop WebService which main purpose is enable editing data. My Web Service get as param information about records, tables etc. Code looks like below: IFeatureWorkspace ifw = null; ...
3
votes
0answers
159 views

Elevation statistics for a given Area

I am attempting to determine the best way to calculate the Minimum and Maximum elevation for a defined area. The area is defined by an IPolygon The elevation is defined as an ISurface Possible ...
3
votes
0answers
371 views

Problem refreshing GroupLayers in ArcScene (ArcObjects 10 .NET SDK)

The functionality I am seeking is to add a FeatureLayer (containing some data from a file selected for import) inside of a GroupLayer collecting all of the data from that particular source. The logic ...
3
votes
0answers
740 views

ArcObjects - IExportPDF2 and esriExportPDFLayerOptions Not Working as Expected

I have a small function that exports a map document to a pdf. The function works in the fact that it does export a pdf. However, regardless of what I set ...
3
votes
0answers
167 views

Should the IRelationalOperator.Equals return true regardless of vertex orientation?

I don't recall every having an issue with this method, but I am now. As I understand IRelationalOperator.Equals, vertex orientation shouldn't affect equality and if I take a polyline and reverse ...
3
votes
0answers
248 views

Alternative to IMapServer2.ExportScaleBar

Does anyone know a good alternative to the IMapServer2.ExportScaleBar function? I want to do essentialy the same task, but outside the ArcGIS Server environment. For a given map scale, predefined ...
2
votes
0answers
37 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 ...
0
votes
0answers
22 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++ ...