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

How to make elements size fixed (Arcobjects)?

I'm using arcobjects .Net 10 to add graphic elements to my map. My problem is that when the map scale changes, the element size change too. How to fix element size at all scales?
1
vote
1answer
46 views

How to set custom fullextent?

I have a WPF Map control whose extent I would like to restrict to a certain area (e.g. to the full extent of some layer). That is, a user should not be able to zoom out too far, or shift the map to an ...
2
votes
2answers
35 views

vb.net arcobjects determine whether arcmap is in editing session

I have a vb.net arcmap addin which provide a function to validate geodb topology. But there is a problem, when I am not in editing session and use the function, arcmap will crash. In this case I ...
3
votes
1answer
49 views

How to change the Transparency of an ILayer?

I've created a function which sets the IColor to a specific ILayer, the value of transparency is between 0 and 255. When I set the value to 0, it gives me a transparent layer which is OK, but when I ...
1
vote
0answers
31 views

Access specific version of featureClass (Table) through SOE

I am new to ArcObject and SOE. The task I am trying to accomplish is: Find the specific version of a table Copy the table (to a new table) that the non-soe user can access that version of the ...
1
vote
0answers
59 views

Exporting selected Features to CAD drawing using ArcObjects and C#?

I'm new to ArcObjects, and I have to export selected features to CAD Drawing using just ArcObjects and C#. The code below works well when I convert to a shapefile ShapeFileWorkspaceFactory, but ...
1
vote
0answers
24 views

ArcGIS geoprocessing Metadata Translator error

We're using the ArcGIS Metadata Translator tool within ArcObjects.net using geoprocessing, which for the most part is working fine, but it's throwing us this error occasionally: The process cannot ...
0
votes
1answer
72 views

How to create a transparent buffer of a polyline?

I use vb.net arcobjects create a buffer around a polyline feature once it is selected. The problem is the buffer has a obvious colour. Since I have other functions on the selected feature, I cannot ...
0
votes
1answer
53 views

How to run spatial query get fields value of 2 layers?

Last month I ask a question "vb.net arcobjects spatial query get fields value of desired layer only", url vb.net arcobjects spatial query get fields value of desired layer only. Now there is some ...
0
votes
1answer
50 views

vb.net arcobjects determine 'create features' on which layer

When I create new feature in editing session, I need to determine the new created feature is in which layer because after that have further more action on the layer. I wonder can this be done in ...
1
vote
0answers
30 views

vb.net arcobjects validate topology function only works after I use arcmap topology tool validate topology first

I find a strange thing occasionally, I have a validate topology function developed by vb.net arcobjects. It work not properly. The case is: open arcmap start editing use my validate topology ...
-1
votes
1answer
55 views

How to get feature fields and values?

How can I get features from EID? I cannot define a Geodatabase connection since it changes. I have to get it from IUtilityNetworkAnalysisExt or IEditor. I figured out how to get EIDs on downstream. I ...
0
votes
1answer
31 views

vb.net arcobjects check if topology has error

I follow the esri example for validating topology, is it possible to tell whether topology error exists? The code I use: ' Step 1 - access a topology Dim topoUiD As UID = New UIDClass ...
1
vote
0answers
28 views

mapping and update data in database

We have two feature layers: layer A - drainage segment layer (along road outline) layer B - road centre line layer. In my SQL Server database I have a table storing the mapping information of ...
2
votes
1answer
62 views

Can Python toolboxes be used with ArcObjects GeoProcess.AddToolbox?

Can Python toolboxes be used with ArcObjects GeoProcess.AddToolbox? I'm trying to execute a tool in a Python toolbox (.pyt) from .NET. First I call: GP.AddToolbox(@"C:\path\to\MyToolbox.pyt") ...
1
vote
0answers
40 views

Using IRelationalOperator ArcObjects interface with feature classes stored in Oracle?

Could you give an example how you’d use the IRelationalOperator ArcObjects interface with features from different feature classes stored in oracle database? In my visual studio project I have an xml ...
1
vote
0answers
35 views

How to create schematic attribute as associated field using ArcObjects?

I'm trying to automate the complete creation of a schematic template with ArcObjects SDK for Java (10.2). I've managed to create the GDB, the schematic dataset and the schematic diagram class ...
1
vote
1answer
106 views

Invalid SQL-Statement error when querying file-geodatabase table date field with arcobjects

I want to query a DateTime Field in a table in a file-geodatabase and I keep on getting the error "invalid sql statement" (Error Code: -2147220985) while that sql statement does not give me an error ...
0
votes
0answers
29 views

Releasing FeatureLayer COM object

I am going through some code and trying to implement correct COM object releasing because currently in an error situation we cannot remove some generated files as the databases are kept locked. I ...
3
votes
0answers
62 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 = ...
0
votes
1answer
44 views

How to set max map scale for a layer?

How can I set the maximum scale for a layer? Sometimes the layer is not visible (it disappear), when the map scale is >= 1:250000. I'd like to set it on max 1:125000. This code does not work: ...
1
vote
1answer
48 views

How to zoom to a specific point?

How is it possible to make the map zoom to a specific point like an address that the user wants to find? Codebehind: private void btnSearch_Click(object sender, RoutedEventArgs e){ var queryTask ...
0
votes
0answers
36 views

Sorting by geometry

I'm trying to implement sorting of features by set of fields. These fields can contain geometry one. For geometries I want to use adjustable XY- and Z-tolerance. My thought was to use ITableSort with ...
3
votes
1answer
31 views

Deriving coordinates from Application.Display or MxDocument.ActiveView in ArcObjects?

I've found two possible ways of converting a MouseEventsArg's coordinates to the coordinates of the current map: The first is taken from a snippet included with ArcObjects: protected override IPoint ...
3
votes
2answers
145 views

Selecting features by location based on selected feature using ArcObjects?

I am very new to ArcGIS and ArcObjects. I am writing a code for a button that will detect a selected feature and then select other features based on the feature that I had selected please take a look ...
-1
votes
1answer
35 views

Is there a method in ArcObjects that is equivalent to ArcPy's: SelectLayerByLocation_management?

I have 2 IFeatureClass and I want to do an INTERSECT between the two. What is the best way to do this from ArcObjects?
2
votes
1answer
80 views

Dockable window close event

Is there an event that fires when a custom dockable window is closed in ArcMap? My dockable window uses the Add-in pattern and hosts a WPF user control. It opens via a command button which is nested ...
1
vote
0answers
21 views

Adding feature to remote geodatabase takes a long time

I have a program that I must add some features to a feature class that is in a sql server remote database. But when I want to open connection and add them, it takes a long time, about one or two ...
4
votes
3answers
62 views

ArcObjects : How to identify ITool.OnMouseUp method execution

In ArcMap, I have a tool that inherits BaseCommand. The tool enables the user to draw a graphic on the screen. I activated this tool (set as current tool) from a Windows UserForm by getting its ...
1
vote
1answer
55 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 ...
1
vote
0answers
37 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
36 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
53 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
1answer
61 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 ...
2
votes
0answers
56 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
107 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). ...
8
votes
2answers
172 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 ...
3
votes
0answers
98 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
135 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
49 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
votes
1answer
69 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 ...
0
votes
3answers
162 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; ...
3
votes
1answer
44 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 ...
2
votes
1answer
45 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?
1
vote
1answer
37 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 ...
1
vote
1answer
40 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 ...
2
votes
1answer
46 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 ?
3
votes
1answer
105 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 ...
1
vote
1answer
55 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. ...
1
vote
1answer
34 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? ...