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)

1
vote
2answers
814 views

Zooming ArcMap to feature using ArcObjects?

I find a feature by using IFeatureClass.Search then I want to show the feature on the screen. How can I do that ? Is there a zoom interface or something else?
1
vote
1answer
290 views

Speed up plug-in datasource in ArcObjects

Are there any tricks involved in getting plug-in data sources to run at higher speeds, similar to the built in types? I've noticed that a simple plugin-data source will run many times slower than the ...
3
votes
4answers
1k views

Debugging DLL (ArcGIS tool) with Visual Studio 2008 Express?

As per Esri's recommendation I began the process of converting my existing VBA customization into VB .Net Express edition. I was surprised to realize that debugging a DLL is not an option in the ...
1
vote
2answers
70 views

How to get FeatureClass or FeatureLayer from FeatureClassID?

I did a network analysis with ITraceFlowSolverGEN and the method FindFlowElements(). Then I did a queryId's with INetElements which returns the FeatureClassId and OID. Now I want to get the ...
0
votes
1answer
122 views

Implementing IEditSketch interface for custom CAD tools? [closed]

I want to build cad tools which will be used in municipality applications on esri. The user wants to edit on the map and does it by using IEditSketch.But i want to write a custom IEditSketch.So i ...
0
votes
0answers
34 views

Sr Lock on created gdb is not releasing

My problem is sr lock is not releasing on gdb , also please see that code can be improved? Below is my code public String exportGDB(String whereClause,IServerObjectHelper serverObjectHelper) // ...
1
vote
1answer
59 views

Get currently open Attribute Window

I have an AddIn (C# VS 2010) that depends on the selected items in the Attribute Window (This is the right-click on the Layer Attributes Table Window). When the user hits Start Editing I want to get a ...
0
votes
0answers
15 views

ArcGIS AddIn to load qgis symbology

I'm looking to make an add-in for Arc so that I can load symbology created in QGIS. I'm familiar with Arc and the way symbology works in it, but I'm unsure what the best way to tackle QGIS symbology ...
4
votes
3answers
388 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 ...
6
votes
2answers
818 views

Alternatives to ArcGIS Extensions using ArcObjects?

I was wondering if there are any projects based around using ArcObjects and external libraries to create open source alternatives to extensions in ArcGIS. For example 3D Analyst, Spatial Analyst etc ...
6
votes
5answers
3k views

What is hierarchy (object model) of features in ArcGIS?

I'm new to GIS. My understanding of shapefiles is that they are (contain?) featureclasses, that contain features (points, polylines, polygons). Is there a clear hierarchy for these files. Would the ...
6
votes
6answers
2k views

Finding shortest path while avoiding polygon features

I'm developing an extension to ArcMap where I have a set of static, concave polygon features and I'm trying to find the shortest path between 2 points without crossing any of the polygons. Is there ...
0
votes
0answers
491 views

ArcGIS encountered a serious application error after Closing

i have developed my own add-in for arcmap 10.1 with VS2010. it works fine in my computer but not for other computers. i mean the program goes fine in everything but after closing Arcmap the error ...
7
votes
2answers
2k views

Where is feature cache in ArcMap for ArcObjects to access?

It seems that ArcMap keeps a cache for every layer which contains features data and every time wants to refresh layer or apply a change, uses this cache. As I found, when ArcMap wants to draw a layer ...
0
votes
1answer
279 views

.net arcobjects draw polygon(rectangle) can not start at the preferred location

I am using the sample code (draw a polygon on the screen) provided by Esri but it seems I cannot start the drawing from a location I want, every time it starts at wherever the function(or tool) ...
6
votes
0answers
238 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 ...
7
votes
2answers
493 views

Exporting ArcGIS plugin data source to Shape?

I have implemented a plug-in data source for ArcGIS. In my case, the format read by the plug-in may contain point, line and polygon features within the same file. In my implementation the data file ...
6
votes
1answer
738 views

Getting table Name from IObjectClass using ArcObjects?

I'm using IRelationshipClass.DestinationClass to get an IObjectClass. From here, I want to be able to get the table name, but can only access the AliasName. Any ideas? The IObjectClass can be ...
7
votes
3answers
835 views

Converting high precision dataset in file geodatabase to low precision using ArcObjects?

A high precision dataset was loaded from a file geodatabase into arcsde 9.3.1. The dataload was achieved by copy/paste in ArcCatalog. A custom tool (arcobjects) that extracts from the dataset to a ...
0
votes
1answer
34 views

Activate / Deactivate customized ITool from Form in ArcObjects?

I'm using ArcGIS 9.3/VB6, and I have a little issue with the activation of a custom Tool: I have a Class, that implements both ICommand and ITool When I click on ICommand, the form is launched ...
0
votes
1answer
32 views

Get CostDistance IGeoDataset as raster in C# ArcObjects

I have a CostDistanceCode that works correctly. I cannot cast the IGeoDataset result into a raster. The last line returns a null raster. How can I resolve this? // Declare the output ...
4
votes
2answers
2k views

Merging two polylines with programming?

We are currently working on a project where we have to merge sections (polylines) to a route, but the big question is how to do this. We have currently tried adding those two as segmentcollections but ...
0
votes
0answers
213 views

how to write Topology Graph Edges geometry to polyline feature class

i have created topologygraph of a polygon feature . and iwant individual ids of polylines i want to write Topology Graph Edges geometry to new polyline feature class any samples OR documentation ...
4
votes
0answers
95 views

Open ArcMap in Maximized State in C#?

I am running windows 7 enterprise with ArcMap 10.2 l have an application that processes data, when the data is finished processing I have a button that will show the results in a datagrid. From this ...
7
votes
3answers
1k views

E_FAIL when calling ESRI.ArcGIS.Carto.IImageServer.Initialize()?

I am using ArcGIS Engine and Developer Kit 10 on Windows 7. Specifically, I'm writing an ArcObjects console program using Visual C# Express 2008. I am attempting connect to an image server via a URL ...
7
votes
1answer
2k views

Getting ArcGIS Templates in Visual Studio 2010?

I have a work computer which has ArcGIS desktop installed first and then VS2010 (just the way IT does it) and then templates are not available, anyone know what I need to do to see the templates? I ...
0
votes
0answers
36 views

Problem for Map Topology creation in ArcMap

I will create a map topology in ArcMap. My code defines the layer in my map topology but after call EditTopology Tools, a message show "No topology .... bla bla bla.." Any ideas why this would be ...
2
votes
2answers
566 views

ArcObjects table views or SQLite3 in Python?

Given a larger csv (1000+ points) with attributes, I need to do both attribute and spatial queries on the data. Would it be faster to read the points into an xy feature class, and do the spatial and ...
0
votes
1answer
55 views

Determine whether table is registered in geodatabase with ArcObjects

In ArcCatalog we can register a table in the GeoDatabase using the tables context menu. Now i'm trying to find a way with ArcObjects, to detect whether an ITable is already registered, is this even ...
4
votes
2answers
1k views

Unable to cast COM object (IMapServer --> IMapServerObjects)

I have just deployed an AGS-based application to our web server. This app worked great in development, but after deployment to the server I got the following error: Unable to cast COM object of type ...
2
votes
1answer
92 views

Create geometry from a result of intersection [closed]

Split a polygon in half with an extended line public Ipolygon CreatePolyFromIntersection(Ipolgon polygonA, Ipolygon bounradyThatcontainsPolylgonA, IFeature lmark){ ...
2
votes
1answer
51 views

Attribute Table Window loses highlighted selection after Addin is Opened

I'm so new to GIS that this question might seem dumb to a lot of GIS Developers. I have taken over a project that is an AddIn for an ArcGIS Desktop app. C# VS 2010 project. I can get the Selected ...
3
votes
0answers
34 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 ...
0
votes
1answer
152 views

cad to shapefile conversion

i have use arcgis10.1,arcobjects.net. i did following code ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); gp.OverwriteOutput = true; ...
2
votes
1answer
202 views

arcmap editor attribute window fill value programmatically

In my map I have a layer named PARCEL, when create new feature on this layer, the attribute window will open automatically. There are 2 attributes in this layer: PARCEL_ID and SUB_ID. Since the ...
2
votes
1answer
396 views

Query against FeatureClass for layer using ArcObjects?

This is some code that I am using to try to get a working IFeatureLayer from a subset of data from a database table. The fourth line containing "fcWkspc.OpenFeatureQuery" throws and error complaining ...
3
votes
1answer
55 views

ArcGis 10.2 returning an enum status of EsriLicenseNotLicensed

I have an old VS project that was using ArcGis for a map control. I now have 10.2 on my machine. code that I used previously to find & initialize the license no longer works. I know the enums ...
2
votes
1answer
177 views
0
votes
1answer
25 views

Setting color to line layer using VBA in ArcGIS Desktop?

I am getting the compile error at pcolor.RGB. I want to add a color to the line feature. How to modify the code? Public Sub surya() Dim pmxdoc As IMxDocument Dim pstylegallery As IStyleGallery ...
0
votes
2answers
46 views

How to fill combo box of a form with the map layers name

While writing the code for adding all the layers in arcmap into combobox of a form, I am getting the error: 'Bestaurents.frmRestaurentviewer' does not contain a definition for cmblayer and no ...
-1
votes
1answer
64 views

Spatial checking for 2 polygons intersect in ArcObjects? [closed]

I want to check source building intersect with target building (source buildings 150000 & target buildings 150000) this is very heavy data. i have use(Spatial ...
4
votes
1answer
42 views

Knowing Previous Command Item C# in ArcObjects?

I am creating a tool for ArcGIS Desktop that will execute a command when I click a place on the map. The Code looks like this: public class TileLasLoader_Tool : ESRI.ArcGIS.Desktop.AddIns.Tool { ...
3
votes
1answer
577 views

Draw graphic on screen without requiring double click to finish sketch?

I am trying to get the user to draw a line (only 2 vertices) on the screen (just like the georeferencing link/spatial adjustment link). I got the below snippet from Esri website which does give me a ...
3
votes
1answer
473 views

Runaway memory usage with Event Layers in ArcGIS Engine and Desktop?

I have an ArcEngine application, based off an MXD with an axMapControl. Several of the layers in the map are event layers built with XY data in a SQL table. It has routing info applied from a ...
1
vote
1answer
216 views

Using IFieldChecker in ArcObjects?

I'm having some problems using IfieldChecker. I have this following code, which I'm trying to test permitted/not permitted fields, according to my workspace public IEnumerable<IFieldError> ...
5
votes
2answers
2k views

Deployment options of ArcMap AddIn?

I made an addin for arcmap and want to deploy it using setup file. By double clicking the setup file anyone can install it in his machine and through installation it will check all dependencies and ...
1
vote
1answer
298 views

Registration of modules in ArcMap?

I’m programming a module for ArcMap (ArcGIS 9.3) in Visual Basic (Visual studio 2005) realizing ITool interface. My task is to link it to ArcMap to reflect an icon on the Tools toolbar. The problem is ...
5
votes
5answers
671 views

Measuring draw time of layer in ArcMap?

I'd like to quantitatively measure the display performance of mosaic datasets, image service layers, raster layers, feature layers, etc. in ArcMap 10. How can I measure the draw time of a particular ...
-3
votes
1answer
49 views

not all code paths return a value [closed]

While writing the following code i am getting "not all code paths return a value" error for GetLayerByName() function. private ILayer GetLayerByName(string slayerName) { ...
2
votes
1answer
820 views

Snapping Polygon vertices to Point features using ArcGIS?

I have a set of polygons drawn using an inaccurate GPS PDA. these polygons are sharing nodes. After post-processing GPS data to get accurate coordinates i have a set of all the nodes, then i have to ...