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
41 views

How to enable and disable IcommandItem of ArcObjects?

I have Commandbutton1 and Commandbutton2 in commandbar. Commandbutton1 is disabled on some condition. I want to enable Commandbutton1 on click of Commandbutton12. How do I do this?
3
votes
1answer
41 views

Opening a featureclass not being the owner of the data in SDE

How can you open a featureclass if you are not the schema owner but have been given privs to select or view the data? So given a name of a featureclass, say "STREETS" - how can I open this if I am ...
0
votes
1answer
102 views

Determine what value used in Editor.OnCreateFeature

How can I determine what Value-Layer (not the layer itself, but the different colors for different attributes) was used in ArcGIS CreateFeature Event, when I insert a new feature using the Editor?
1
vote
0answers
13 views

Merge polygon based on other line shape file PostGIS

I have a polygon shape file and a line shape file. I would like to merge two polygons which shares the same border along with line shape. Finally the line should be removed in polygon shape file. In ...
4
votes
1answer
132 views

How to call ESRISignAddIn Silently (no UI)?

I am creating a build workflow and I ran into some problems. When I call ESRISignAddIn.exe from the command prompt it is throwing up a dialog saying "Add-In successfully signed". I was expecting it ...
6
votes
2answers
60 views

Run ArcGIS 10.1 application on 10.2

I support a .NET application that has been compiled on a PC with ArcGIS 10.1 installed. The application comprises a user interface and an ArcGIS desktop extension, plus an installer assembly that is ...
0
votes
2answers
310 views

Get selected features on ArcMap in arcMap Addin (eclipse)

I am building a custom arcMap Addin button which onclick event tells info about selected features. Following is my java class --- public class Break extends Button { /** * Called when the button ...
1
vote
0answers
18 views

Minimum Bounding Box by Area using ArcObjects

I'm trying to calculate the minimum bounding geometry by area for a polygon in arcobjects. I know that the the MinimumBoundingGeometry class is exposed but I was hoping that this functionality was ...
3
votes
0answers
17 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 ...
2
votes
0answers
22 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 ...
2
votes
0answers
30 views

Getting XY screen coords from ArcScene 3D point using ArcObjects?

I already know how to convert screen point (X,Y in pixels) to 3D point: ISceneGraph pSceneGraph = m_pSceneHookHelper.SceneGraph; IPoint pPoint; pSceneGraph.Locate(pSceneGraph.ActiveViewer, X, Y, ...
2
votes
3answers
43 views

How to convert PCS based point X/Y into GCS Lat/Lon using ArcObjects

There are so many permutations of questions I've tried to find the answer to my question from various sources, but I have yet to actually find an answer the way that makes sense to me (and works). ...
2
votes
0answers
45 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. ...
2
votes
2answers
236 views

Geoprocessing Tools on ArcGIS 10.2 and Visual Studio 2012 -issues

I am migrating one of the existing project (custom Geo-processing tool- class library project) source code which runs on ArcGIS 10 SP4 and Visual studio 2010. This is working fine. I am could run the ...
1
vote
0answers
11 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 ...
1
vote
1answer
205 views

How to set min and max value for stretchType: esriRasterStretch_PercentMinimumMaximum

How can I set the min and max values for the stretch type "Percent Clip" in arcobjects? It's possible to set the Stretch type: rasterStretch.StretchType = ...
1
vote
1answer
28 views

How to add an IFeature to the Map and zoom to it ?

I have an ITable i cast it to an IFeatureLayerDefinition after casting it to an ILayer then to an IFeatureLayer, then i used my IFeatureLayerDefinition to get only one IFeature using the ...
1
vote
1answer
13 views

Placing a cost raster in Arcmap Table of Contents in 10.2.2

We have a set of routines that have been used for writing rasters to the ArcMap table of contents from our tools. The code that always worked is this: /// <summary> /// Used for ...
0
votes
3answers
30 views

Adding Field To feature class using ArcObjects and C#?

I want to add a new field to my featureclass.My code for that is: public IMxDocument mxDoc; public IMap map; IFieldEdit2 field = new FieldClass() as IFieldEdit2; ...
-1
votes
1answer
37 views

Create gdb file from Sql-Server Views using ArcObject in .Net

I am able to Create blank .gdb file using arcObjects in .net. e.g for Create blank gdb file i have wrriten this code. public IWorkspace CreateFileGdbWorkspace() { IWorkspaceFactory ...
3
votes
1answer
29 views

How to zoom to an ILayer?

I used IFeatureLayerDefinition.CreateSelectionLayer() to create a new IFeatureLayer then i cast this one to ILayer and set it to the Map, my problem is that i can't zoom programmatically to this ...
0
votes
1answer
186 views

Join and Calculate vb.net

Im trying to join an excel table to a shapefile and then calculating those fields using vb.net. The code I have written has no errors, but won't work when I try it in ArcGIS 10.1 and I'm out of ideas. ...
1
vote
1answer
12 views

ArcObjects 10.1 IDatabaseCompact lock file

I'm trying to automate one of task by creating code that will execute the IDatabaseCompact.Compact method to a GDB file. Everything seems to work fine but there is always a .lock file generated after ...
2
votes
1answer
28 views

Can I convert an IFeature to ILayer and add it to the map?

I want to use FeatureClass.Search() to get a specific Feature and I want to convert this one to ILayer and set it to the Map, is there any way to do that?
0
votes
1answer
101 views

C# Microsoft Visual: Setting text box value to null

I'm creating an attributes table in ArcObjects to show a bunch of values. They save just fine when I put them in, the problem is reverting them back to null. My text values all get turned into a blank ...
0
votes
1answer
125 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 ...
2
votes
2answers
264 views

Migrating Defense Solutions objects from ArcGIS 9.3.1 to 10.0 gives Unable to cast COM object error?

I've got an ArcGIS Engine application that uses the IMADtedLayer interface to access VPF DTED catalog layers and adds them to a map. The code ran fine under v9.3.1. I just updated to v10, and now I ...
2
votes
1answer
33 views

How to show a specific geometry on the map and hide the others?

I have a FeatureLayer, i used the method IFeatureLayer.Search() and the interface IQueryFilter to get a specific Feature, and i want to show only this Feature on the Map, how can i do that ?
2
votes
1answer
77 views

Accessing File Geodatabase to convert to shapefiles using ArcObjects?

The end result of what I'm trying to do is convert a FGDB into a folder of shapefiles. To do this, I need access to all the data I'd expect to see in a shapefile. Once I get all the information I need ...
3
votes
1answer
40 views

How to get all the FeatureClasses from IWorkspace?

Well i create a Geodatabse in my SQL Server using ArcCatalog then i create 5 new FeatureClass, i want to get all the FeatureClasses in this GDB, this is my function to get all the FeatureClasses from ...
2
votes
1answer
174 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 ...
1
vote
1answer
27 views

Difference between ArcObjects SDK for Java and ArcGIS Runtime for Java?

I would like to develop spatial tools and automate my spatial analysis process (including converting XY into shp, proximity analysis, network analysis, geocoding etc on thousands of files) in Java. ...
5
votes
1answer
407 views

Slow performance when selecting features

I am trying to use the following code to select the features that have the attribute values that I pass in. The performance is really slow when it comes to a lot of values e.g >16k values to match ...
2
votes
1answer
120 views

How do I export circles from ArcObjects to WKB?

I have a small circle in SDE which I'm trying to extract through ArcObjects into well-known-binary (for later import into other systems). Using the IWkb interface I can obtain the WKB, but it comes ...
1
vote
1answer
18 views

Connect to remote Sqlserver using arcobject

I want to connect to a database assigned to a vps with an ip address.I used this string to connect to Database when it was on localhost. how I change it to connect to remote one? ...
0
votes
1answer
20 views

Working with topology errors sample code error

I am following the sample code from ESRI for checking topology errors using vb.net. But in my workspace an error happened. My code is listed below: ' Step 1 - access a topology Dim topoUiD As ...
1
vote
2answers
30 views

vb.net arcobjects spatial query get fields value of desired layer only

Currently I am using ArcObjects (10.2.1) in vb.net (vs 2012). What I intent to develop is a spatial query tool. There are 2 steps in the function: (1) Use "Select Features" tool in ArcMap to select ...
4
votes
1answer
436 views

Can custom map tiles be properly rendered via ArcObjects within my ArcGIS 10.1 Desktop AddIn?

Within ArcObjects for ArcGIS 10.1, we are attempting to render pre-generated map tiles as a basemap (group) layer. The tiles themselves are of the typical web mercator aux. spherical tiling scheme. ...
4
votes
0answers
16 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 ...
2
votes
1answer
30 views

Build Network Dataset with python comtypes

I know this isn't possible in arcpy, so I thought I'd give it a stab using comtypes. I am trying to translate some of the VB.NET code to create a network dataset from the help docs: ...
0
votes
0answers
126 views

Do any geodatabase schema and data migration libraries for .NET exist?

I'm performing code refactoring and database normalization in my project and looking for any .NET library for geodatabase schema and data migrations. Does any solution exist for ArcObjects? During ...
1
vote
1answer
22 views

Join Table to QueryFeatureClass

I've joined a table to a SQL-QueryLayer like posted here Using IRelQueryTable When I set geoFeatureLayer.FeatureClass = relQueryTable as IFeatureClass; the Layer in ArcMap forgot that it is an ...
2
votes
1answer
45 views

GDB conversion to MongoDB

I'm interested in converting a GeoDatabase to a MongoDB database. more specifically, given I have a GeoDatabase (.gdb files), how do I convert these files to fit into a MongoDB Database (.bson files). ...
5
votes
2answers
575 views

IFeatureClass.Search throws error “0x80041599 The number of points is less than required for feature”

I am creating a buffered geometry around a point feature in order to search for other nearby features. I use the TopologicalOperator to create my buffered geometry. I am attempting to search a feature ...
2
votes
0answers
28 views

Layer Turned Off But Pop Up Showing

I'm having an issue with my popup in my map made using ArcGIS online. One of my group layers contain 4 layers. When I turn all of the layers in this group layer off, the second layer's popup still ...
1
vote
2answers
246 views

C# code to display result of spatial query on arcmap

the problem is i have to display those points on arcmap that lies inside the envelope.I am explaining what i have done so far. I have one point feature class say featureclass ,open it and used one ...
0
votes
1answer
149 views

Adding an existing Feature class to an existing Feature Dataset in c#(arcobjects)

I want to add an existing feature class to an existing feature dataset. Both the feature class and the dataset have the same coordinate system, I searched over the net but only assistance I found was ...
3
votes
0answers
38 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 ...
0
votes
1answer
282 views

ArcGIS 10 IGPFunction2 and IGPFunctionFactory Implementation

I'm creating a custom ArcToolbox tool in C# .NET in ArcGIS 10 SP2. Though I seem to be having two issues which maybe related: Firstly, my tool is run as a background task i.e. the GP dialog does not ...
3
votes
1answer
140 views

Importing shapefile to file geodatabase feature dataset using ArcObjects and C#?

I'm trying to import a shapefile into a featuredataset under a geodatabase using FeatureDataConverter.ConvertFeatureClass. All the examples that I found are not concerning the import under an existing ...