Questions tagged [arcobjects]

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.

409 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
169 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 ...
theswiftlearner's user avatar
7 votes
0 answers
501 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. ...
Kirk Kuykendall's user avatar
6 votes
0 answers
832 views

ESRI ArcObjects and Unit Testing the Geoprocessor dll

I have an issue with using ArcObjects and the Geoprocessor .dll library in a UnitTest environment (MSTest) in Visual Studio. When I test a program that creates an ESRI.ArcGIS.Geoprocessor object and I ...
user3147913's user avatar
6 votes
0 answers
425 views

How to prevent automatically redraw the graphic layers on ArcObjects?

After a ShapeFile that was read to IFeatureLayer converted to IGraphicElements, I'm trying to draw that on map (using Sublayer of ICompositeGraphicsLayer). Of course, I succeed to display it on map, ...
Sangjin Sim's user avatar
6 votes
0 answers
1k views

Simple data vs non simple data in ArcGIS

I want to enter some data in a feature class with ArcObjects. In my code I use EditSession for that, but in storing data an error returned that says I must use editsession. By researching I found that ...
Mahdi Ahmadi's user avatar
6 votes
0 answers
434 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 segment of the polyline I mean that, each polyline may contain more ...
Emi's user avatar
  • 2,397
6 votes
0 answers
1k 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 -...
mfowler's user avatar
  • 345
4 votes
0 answers
148 views

LasDatasetToRaster does nothing to the Raster Layer

I have been trying to figure out how to clip and rasterize a LiDAR map file programmatically (Not through arcpy) I use C# but read many languages. So far I have been able to access and assign the LASD ...
Michael Collins's user avatar
4 votes
0 answers
1k 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 ...
Marco A.'s user avatar
  • 375
4 votes
0 answers
540 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 ...
BlinkyBill's user avatar
  • 1,163
3 votes
0 answers
83 views

Symbolize Rubberband Tracker as it tracks

I am trying to symbolize a rubberband tracker as it is drawing. The default symbol is a simple black line. When setting the symbol of the line in the ScreenDisplay method and and calling ...
amasephy's user avatar
  • 1,234
3 votes
0 answers
195 views

ArcObjects modify Map Scale

I'm trying to modify the scale of the map so I can further export to pdf. The mxd document has a fixed map scale option set. The initial value is 250 and final is still 250 unchanged. The code looks ...
Damian Radinoiu's user avatar
3 votes
0 answers
2k views

"Error HRESULT E_FAIL has been returned from a call to a COM component

I am new to ArcGIS and stuck with "Error HRESULT E_FAIL has been returned from a call to a COM component." error while converting gdb to geodatabase through Arcgis .net SDK verstion (Arcgis Desktop ...
Ashish Anand's user avatar
3 votes
0 answers
268 views

How to undo/redo drawing polyline

I want to draw a custom polyline using mouse click events in an AddIn.Tool project without esri's build-in interfaces eg. Rubberband, IDisplayFeedback or IShapeConstuct. I got problems pushing caches ...
Jason.Young's user avatar
3 votes
0 answers
112 views

Programmatically loaded raster turns black after adjusting the georeferencing

I have an ArcGIS Add-In that scans our file directory for aerial imagery rasters intersecting a given point geometry and loads the qualified images to an mxd. As soon as you hit "Update Georeferencing"...
cevondanady's user avatar
3 votes
0 answers
207 views

"Delete this Add-In" event for uninitializing own ArcMap Add-In

Is there an event that gets triggered, when removing an Add-In by pressing the "Delete this Add-In" button in the Add-In Manager - using ArcMap 10.x? I want to listen to this event to let my Add-In ...
Christian Junk's user avatar
3 votes
0 answers
250 views

Adding layer with ArcObjects from Python script tool?

I would like to load an AFR file into a data frame in a currently open MXD and the IMap.AddLayer function is not working as expected if the data frame in which to load the AFR file is activate. And I ...
Flo's user avatar
  • 89
3 votes
0 answers
58 views

Can a custom command be placed in attribute table window toolbar in ArcMap?

Is it possible to place custom command on ArcMap's attribute table window toolbar? As far as I understand I need GUID or ProgID of this toolbar in order to find appropriate ICommandItem with ...
Maxim's user avatar
  • 307
3 votes
0 answers
180 views

Exporting ActiveView to Jpeg using ArcGIS 10.2.2 fails

I have some legacy VBA code that exports the activeview to a jpeg, which needs to be updated, so it can be used in ArcGIS Desktop 10.2.2. The application uses the following code Option Explicit ...
MapMan's user avatar
  • 2,144
3 votes
0 answers
201 views

ArcGIS Server Object Extensions: how do I deploy extra .dll's?

I am developing an ArcGIS Server Object Extensions in C# that makes calls into a C++ .dll. How do I add this .dll to deployment? By that I mean that I want it included in the .soe.
Andy's user avatar
  • 377
3 votes
0 answers
125 views

Is possible to create a shapefile with a specific encoding using ArcObjects?

I have the code to create a shapefile programmatically, something like this 28310 - Create a new empty shapefile programmatically moreover I am able to put the data from a layer in it. It works ...
XtianGIS's user avatar
  • 782
3 votes
0 answers
157 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 ...
Samuel's user avatar
  • 31
3 votes
0 answers
346 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 ...
superrache's user avatar
3 votes
0 answers
423 views

ArcMap - Export raster symbology to a raster function template programmatically

I would like to programmatically export symbology for a raster dataset as a raster function template xml file, as can be done by clicking the export button in the symbology tab of the layer properties ...
pjbarrs's user avatar
  • 41
3 votes
0 answers
930 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 = (...
stakx's user avatar
  • 1,141
3 votes
0 answers
213 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 ...
Twelve Fluidoz's user avatar
3 votes
0 answers
1k 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 ...
Majid's user avatar
  • 435
3 votes
0 answers
534 views

Row ID Column Type : User Maintained - Insert using IFeatureBuffer - ArcGIS 10.2

I am trying to insert a record in SDE feature class (which is not registered with SDE) using Arcobjects 10.2 using IFeatureBuffer.InsertFeature functionality. This throws an error message "The current ...
iamlaksh1's user avatar
  • 339
3 votes
0 answers
2k 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 ...
mitaka's user avatar
  • 737
3 votes
0 answers
69 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 ...
Logan B. Lehman's user avatar
3 votes
0 answers
645 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 ...
blah238's user avatar
  • 35.8k
3 votes
0 answers
933 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 ...
Daz's user avatar
  • 355
3 votes
0 answers
242 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 ...
Ghassan Karwchan's user avatar
3 votes
0 answers
2k 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 two layers that cannot be opened or modified with ArcCatalog or ArcMap (but they show up in the list. Everything worked just fine ...
Bananapa's user avatar
3 votes
0 answers
1k 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 ...
taibc's user avatar
  • 441
3 votes
0 answers
236 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 (...
elrobis's user avatar
  • 6,426
3 votes
0 answers
467 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 ...
Huidae Cho's user avatar
3 votes
0 answers
824 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; ...
yaotzin's user avatar
  • 199
3 votes
0 answers
237 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 ...
Chris's user avatar
  • 474
3 votes
0 answers
517 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 ...
DBaker's user avatar
  • 123
3 votes
0 answers
1k 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 pdfExport....
user890's user avatar
  • 5,705
3 votes
0 answers
207 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 ...
Jay Cummins's user avatar
  • 14.6k
3 votes
0 answers
772 views

Intersect two layers and get resulting features

I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features. I'm trying to get this code working // get first feature (index 0) ESRI.ArcGIS.ADF.Web....
Marco A.'s user avatar
  • 375
3 votes
0 answers
785 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 ...
Matt's user avatar
  • 91
3 votes
0 answers
3k 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 = ...
MathiasWestin's user avatar
3 votes
0 answers
327 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 ...
shawn deutch's user avatar
2 votes
0 answers
52 views

What is going on in ArcMap AddIn?

I have an ArcMap-addin which is working from ArcMap 10.2 until 10.8 but since an undefinite time in undefined circumstances there happen things that I can't explain. I'm searching for the cause while ...
Frau Schmidt's user avatar
  • 1,181
2 votes
0 answers
16 views

Export TIFF from ArcGlobe viewer

I'm attempting to export the current view to a TIFF (I attempted JPEG as well) image in ArcGlobe, but it seems most paths to this are broken in ArcGlobe even though the first two of these work in ...
danielm's user avatar
  • 1,539
2 votes
1 answer
207 views

Creating a selection set from selected features using select by location

I am trying to convert my VBA code to vb.net. I use “Select by location” to select all the points that intersect lines. Then I want to click a button to put the points into a selection set. Then I can ...
BCConnor's user avatar
2 votes
0 answers
175 views

The project does not build. The command “esriRegasm.exe …” exited with code -1

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. ...
Nolu's user avatar
  • 91

1
2 3 4 5
9