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)

8
votes
0answers
337 views

Scale in printed map (mxd) is different in code to manual printing

This question is related in part to a previous question I have asked. I have tried printing an A3 mxd with the Print Active View code as published by ESRI and have changed only one line of code and ...
5
votes
0answers
221 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
66 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 ...
4
votes
0answers
81 views

Is it possible to share temporary (InMemoryWorkspace) FeatureClass between Threads?

I'm trying to run some operations (functions) in seperate threads so that the UI is not blocked. One of this operation is the generation of a feature class copy from an existing feature class into a ...
4
votes
0answers
363 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
550 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
728 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
283 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
104 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
129 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
174 views

How to add individual layer of WMS group layer to ArcMap?

I am attempting to add a single WMS layer that is part of a WMS service group layer. I am writing code to do this using ArcObjects in C# .Net. So far I have been unsuccessful. I can either only add ...
3
votes
0answers
52 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
100 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 ...
3
votes
0answers
185 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
294 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
712 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
87 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 ...
3
votes
0answers
329 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
236 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
132 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 ...
3
votes
0answers
146 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
119 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
166 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
419 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
143 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
292 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
526 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
157 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
269 views

ArcObjects - WFS:

Hy, has anybody an example concerning accessing data from a WFS server by using the DataInteropability in ArcObjects? I'm getting the right field definistion, but don't know how to read the data. ...
3
votes
0answers
229 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 ...
3
votes
0answers
496 views

How to return FeatureLayer from gp service(using custom function tool) (.NET)?

My basic problem is that I have a custom function tool HLZCalulation that I created. It takes in a string to a file gdb , opens it, does some calculations, and then returns a featurelayer with the ...
3
votes
0answers
1k views

How to set margin on PageLayout in ArcGIS Engine?

When we create a PageLayout from the A4 Landscape template and print the layout on a pinter with A4 Landscape paper we get four pages instead of one. We are using the IPage.PageToPrinterMapping = ...
3
votes
0answers
280 views

How do I Convert from LayerDescription.SelectionFeatures to GraphicsLayer?

How do I convert (in a clear and concise way) from ESRI.ArcGIS.ADF.ArcGISServer.LayerDescription.SelectionFeatures to ESRI.ArcGIS.ADF.Web.Display.Graphics.GraphicsLayer I want the selected ...
2
votes
0answers
25 views

Adding a button from an add-in to a TOC context menu

I would like to add a button to a group layer context menu in the table of contents. The button is from an add-in that also contains an extension. Should be straight-forward enough. The extension ...
2
votes
0answers
54 views

How to add multiple shapefiles with VB.Net

I have created a toolbar add in for arc with a button that opens a form with 3 selections that are shapefiles, once the shapefile is selected I click the Add Layer button. Currently I can only get one ...
2
votes
0answers
33 views

Is it possible to preview a raster catalogs raster field in a Windows form?

What I want to achieve: The attribute table for an ArcGIS Raster Catalog contains a raster field. When a raster field cell is clicked with the mouse, a preview window displaying the raster associated ...
2
votes
0answers
176 views

GDAL: Geotransform - rotated rasters (and ArcGis)

I am working on a GDAL driver for a proprietary grid-format. In some cases, the grids are rotated in order to get smaller file sizes. In my GDAL geotransform array, I do the following (showing a ...
2
votes
0answers
118 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 ...
2
votes
0answers
166 views

Problem with multi-threading and geoprocessor tool in c#

What I am doing: I am trying to run a geoprocessor tool in a background thread other than UI thread. I am passing string path of arcObjects and creating that arcObject in my background thread. Then I ...
2
votes
0answers
61 views

ArcObjects: Custom GP tools: GPCompositeDataType and DataType

I got an issue with the parameter value's datatype returned when using composite type parameters. In my case, I create a composite of DEWorkspaceType and DEFeatureClassType: IGPCompositeDataType ...
2
votes
0answers
174 views

Geodesic distance between two polygons in ArcGIS

Does the IGeometryServer2 interface work in desktop applications? My solution is an Add-in for ArcGIS 10. I'm currently passing it two valid polygon features that are in a projected coordinate system. ...
2
votes
0answers
56 views

ArcObjects: Does an IEnumElement that was returned from IGroupElement3.Elements() maintain the z-order of the GroupElement?

I want to read graphics elements (TextElements and RectangleElements) from a GroupElement object (IGroupElement3) and put them into another in the same order as they were added to the original. The ...
2
votes
0answers
80 views

ESRI CreateGeometryFromWkbVariant creates CCW polygon

I am using ESRI GeometryEnvironmentClass that implements IGeometryFactory3 and I use the method CreateGeometryFromWkbVariant. For the same wkb, in ESRI 9.3.1 the returned polygon is oriented ...
2
votes
0answers
246 views

Can I use an Update cursor with a versioned feature class which has attachments in ArcObjects .NET

I have a problem with my code (C# ArcObjects 10.1). We are trying to update and insert 10 - 15 rows at a time into a feature class hosted in ArcSDE 10.1 on SQL Server 2008 R2. We have a feature class ...
2
votes
0answers
317 views

How to copy a feature class within the same GDB

I'm trying to copy/clone a feature class within the same file gdb using C#. I've figured out that this won't work with IDataset or IFeatureDataset. So far I only found IGeoDBDataTransfer.Transfer but ...
2
votes
0answers
157 views

Is ArcFM or ArcMap leaking memory when switching between page templates?

Can anyone else reproduce the memory leak described below? Any insight into what may be causing the leak is appreciated. I have custom code that swaps between landscape and portrait templates and ...
2
votes
0answers
148 views

Processing arcobjects cursor is taking long time

I am maintaining a code on arcobjects 10.1, and there is a bug happening. I have a code that is parsing through a cursor, and generate a where clause statement to run it on a second query. So the code ...
2
votes
0answers
115 views

How to identify custom lines in .Dgn file using DgnLib?

I am getting a problem, I can't identify custom lines in .Dgn file. As you know, in Microstation 7, we can assign the style value of lines from 0 to 7. But if lines are customed lines, they always ...
2
votes
0answers
749 views

How can I copy selected polygon features to a polyline feature class with ArcObjects?

I would like to copy selected polygon features to a polyline feature class. (Similar to how polygon features can be copied and pasted inside an edit session in ArcMap) Until recently I've been using ...
2
votes
0answers
47 views

ArcObjects custom GP tool: Multiple extensions using IGPFileDomain

I am using IGPFileDomain to make the user select between different file extensions, for example .type1, .type2, .type3. These are added using domain.AddType("type1") etc. The dialog box then lists ...