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
1answer
683 views

How do I delete specific graphics on the map using arcobjects

I am writing a small application that allows the user to click on the map, and it will create 3 buffers (these are graphics using the IElement interface) at specified distances. What I want to do is ...
4
votes
2answers
1k views

Perform a spatial join in C# with ArcObjects

I feel like this has to be on the internet somewhere, but I haven't been able to find it. I'm attempting to perform a spatial join on a polygon and point layer. My goal is to push the polygon's ID ...
3
votes
2answers
627 views

Is it possible to deploy on a ArcGIS 9.3.1 machine a component created with ArcGIS 10?

We are developping a C# ArcObjects Class extension assembly. Our development machine was recently updgraded to ArcGIS 10, but when we try to install the assembly on a 9.3.1 machine, we get an R0000 ...
2
votes
2answers
2k views

Geoprocessor Select By Location Using Features Instead of Layers

I have a simple spatial feature selection function that includes: public static void SelectByLocation(IFeatureClass sourceFC, ILayer selectLayer) { Geoprocessor GP = new ...
4
votes
2answers
871 views

Running ArcPy script from ArcObjects?

the standard method requires to run ArcPy script in command line, i've struggled with it to run but without a result, i can import arcpy, set the workspace to the geodatabase path and describe the env ...
1
vote
0answers
72 views

How to protect my application ESRI FGDB data from authorized access using other applications?

I have ArcObjects app which uses file geodatabase for storing data and performing CRUD operations. This file geodatabase needs to be protected from reading data in other applications such as ArcMap, ...
3
votes
2answers
322 views

Listing features in the order they were selected

This is an ArcObjects-specific version of this question: Create Array From Selected Features Based on the Order in Which They Were Selected Is there a way to get the selected FIDs of a feature layer, ...
4
votes
3answers
720 views

ArcServer 10.1 - Publishing C# Executable as a Geoprocessing Service

I am trying to publish an arcobjects C# executable as a gpservice. We did this in 10.0 by adding it to a toolbox and hitting publish. Using ArcCatalog in 10.1 you must first run the script before you ...
4
votes
2answers
1k views

How to update geometry in ArcObjects?

I'm just starting with ArcObjects and I want to update coordinates of geometry vertices. Specifically, I want to swap X, Y coordinates for each vertex of polygons (which can be multipart and have ...
6
votes
3answers
4k views

ArcObjects/ArcServer 10.1 - How to programatically publish a map service?

I am migrating some ArcObjects C# code to 10.1 and am having some trouble programatically publishing an MSD. We are using a multi-site configuration (not sure if that matters). Here is the code I am ...
4
votes
1answer
289 views

Retrieve data from FeatureClass

I have : FeatureClass (Structure) column (Type) column (OID) I am trying to get the (Type) for specific OID. I tried to use this code but it dose not work. IFeatureWorkspace featureWorkspace = ...
1
vote
0answers
41 views

Programmatically determine if a local geodatabase is File or Personal [duplicate]

Possible Duplicate: How to distinguish between File and Personal Geodb workspace? How can you determine whether a workspace is a file or personal geodatabase? Using IWorkspace::Type you ...
6
votes
2answers
134 views

What event is fired when a feature is edited?

When the user draws a new feature (line, point, etc.) in ArcMap, there are null attributes. If the user enters values in these null fields what is the event that is fired? I want to control the ...
2
votes
1answer
173 views

Ghosting and Map Functionality Loss in Map View C# Arcobjects

I'm writing a C# add-in and trying to implement a piece where a user can add points to a graphics layer on the map view. The points are drawing, however the map pane has serious ghosting issues and I ...
3
votes
2answers
299 views

ArcMap: Not scaling and/or rotating when exporting a map

I am writing a console application using ArcGIS (engine or desktop). I'm trying to rotate and scale a map based on a polygon, and I'm not having any luck at all. With some tinkering, I can usually do ...
2
votes
3answers
609 views

Connecting to non geodatabase MS Access database using ArcObjects

I am trying to connect to an MS Access database from a program I have written in VB.Net with ArcObjects 10.0. My MS Access database is not a personal geodatabase so apparently I have to connect to ...
4
votes
4answers
462 views

How to get exact ISymbol image size in pixels

I found the next code to convert ISymbol into bitmap image, but how to know the suitable image size? (suppose we have a ITextSymbol) private static Image PointSymbolToImage(ISymbol symbol, Size ...
1
vote
0answers
329 views

Length in meters arcobjects [duplicate]

i have a an array of polylines in epsg:3857 projection, and i want to calculate length of each polyline. i am new to arcgis and arcobjects, i couldn't find the functions that i need. Should i use ...
2
votes
1answer
270 views

How to change the raster NoData value with ArcObjects?

I am trying to change the a raster's NoData value with ArcObjects and keep coming up short. Here is the code that I thought would work: IRasterDataset _dataset = ...get the dataset... object[] ...
2
votes
1answer
326 views

Arcgis IPolygon(System.__comObject) and ILine2 (Esri.Arcgis.LineClass) intersection

Currently i am developing a Server Object Extension. On my project i am creating a new line class with LineClass myLine = new LineClass(); and getting a polygon from client as JsonObject than ...
2
votes
1answer
524 views

get style item name of one marker symbol

i used next code to load a symbol with specific style.. now i need to do the opposite operation.. i mean, i have one symbol and i want to know it's style. is it possible? private ISymbol ...
2
votes
1answer
115 views

How to use IObjectClassEvents?

I need to use IObjectClassEvents in my project. I don't know how to start, can any one give me a simple explanation, or an example in C#.
2
votes
0answers
121 views

How to change tooltip of an esriControl?

Is there a way to change an esriControl's tooltip? I tried using the ICommand interface but the tooltip propertry is read-only. If I have to build a whole new ICommand and/or ITool is there anyway ...
2
votes
1answer
284 views

Query against FeatureClass for a layer

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 ...
13
votes
1answer
1k views

How to get selected Features/Geometry from Windows Clipboard in ArcMap/C#?

I have a custom tool in ArcMap 10. The Workflow is the following: Select Features in a Layer with the "Select Features by Rectangle" tool Copy the Features to the Clipboard using STRG+c Select the ...
2
votes
1answer
120 views

How to cancel the edit session?

I want to prevent the user from starting an edit session under certain conditions. How can I do that? void m_editEvents_OnStartEditing() { // Code }
3
votes
0answers
128 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 ...
1
vote
1answer
114 views

Listen to edit events

I recently started working on ArcMap. I want to make some changes to the edit tools. For example I want to prevent the user from using the sketch tool when the time is between 1pm and 2pm But I ...
1
vote
0answers
26 views

Editing MosaicDataset attributes

Good morning!, I'm trying to access and edit an MosaicDataset (I need to edit the MaxPS/MinPS fields) But I can't find a way to access them programmatically.. Doe's anyone know how can I edit these ...
1
vote
0answers
21 views

Rasterband Casting Probem [closed]

We have a program that was previously using ArcGIS 9.3 and we recently updated it to ArcGIS 10.0. The program was working before with a line of code that cast an object as a RasterBand. Now we are ...
3
votes
1answer
311 views

Draw graphic on screen without requiring a 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
2answers
410 views

Get the geometry from the lasso selection tool

I'm building an Add-in solution in ArcGIS 10 that contains a custom tool. I'd like to borrow the functionality of the lasso selection tool without reinventing the wheel. Is there a way to intercept ...
1
vote
1answer
2k views

Writing In-memory IFeatureLayer to Shapefile using ArcObjects (Engine SDK)

I've been working on this for a little while now, and can not seem to get this thing working. I've managed to export a geodatabase feature class and shapefile to a shapefile, but what I'm struggling ...
3
votes
0answers
190 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 ...
2
votes
1answer
474 views

Snap Polygon vertices to Point features

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 ...
1
vote
1answer
77 views

generating some random points along network

I'm having trouble with generating some random points along a network. I am trying to do it with Arcobjects in the VBA environment. I would be grateful if you could help me.
-1
votes
1answer
527 views

Reconcile and post versions through C#?

I want to know if we can post the versions based on events through coding. How we do batch reconcile and post through c# code? Is it possible for automatic replication also?
3
votes
1answer
236 views

Repairing disconnected layers with selection sets

Has anyone had any success of repairing disconnected layers that have selection sets that have their data sources broken in ArcGIS? Is there a way to detect this through code and then re-create that ...
1
vote
0answers
61 views

Get polygons inside a polygon

I have developed a tool in arcobjects on Visual studio 2010, the tool works fine but once installed my ArcMap drawing the map (refreshing) and printing slows down.. I have used ITopologicalOperator ...
5
votes
1answer
253 views

How should I publish an arcgis toolbox via arcobjects (c#)?

I've been able to create map and image services by creating, adding, and starting configurations through an IServerObjectAdmin interface to a version 10.0 (sp4) ArcGIS server. Now, I'm shifting my ...
3
votes
2answers
790 views

Why is ICalculator.Calculate significantly slower than the CalculateField geoprocessing tool with SDE datasets?

I just discovered today that there are essentially two ways to calculate field values in ArcObjects: 1. Using ESRI.ArcGIS.GeodatabaseUI.ICalculator: ITable table = …; ICursor updateCursor = ...
2
votes
2answers
2k views

How to overwrite a shapefile or feature class using arcobjects?

I can copy a shapefile but I want to be able to overwrite the copied shapefile to prevent multiple copies being created each time I run the program. I would also like for the saving and renaming of ...
2
votes
3answers
581 views

Split polygon with holes to get several hole-less polygons

Unlike this thread I actually need to split the polygons into several hole-less polygons. I'm not sure on how to approach to this problem. I have polygons with holes of many diferent shapes, like ...
1
vote
0answers
115 views

Why does IFeatureClass.Search fails with -2147215922 (FDO_E_SE_INVALID_NUM_PARTS)?

in a class extension, I'm trying to do search features inside a point feature class(part of a geometric network on an sql server sde database) and I get a -2147215922 (FDO_E_SE_INVALID_NUM_PARTS) ...
3
votes
2answers
538 views

Spatial Definition Queries?

Is it possible to spatially pre-clip layers (say with a IPolygon object) before they are loaded into ArcMap - a bit like a query definition but spatial?? Also I need to do this for raster data? ...
1
vote
1answer
393 views

How do I save edits from an ArcMap editing session using VB.Net?

I have figured out how to do a map save document, but I would also like to be able to save edits whether or not I am also saving the map document.
2
votes
1answer
544 views

How do I save an ArcMap map document using VB.Net?

I am trying to save the map document that is currently open. How do I write the code? I have tried many suggestions that I found using Google searches, but nothing works. Currently I have: Dim ...
4
votes
1answer
855 views

ArcObjects - Create a map in the background from layers and save as JPG

Given a series of map layers is it possible to arrange them in some order, add basic map features (north arrow, scale bar) and then save the result as a JPG. I'd like to accomplish this in the ...
2
votes
2answers
394 views

How to retrieve all subtype codes from ISubtypes interface

I'm trying to retrieve all subtypes for a given feature class. ISubtypes.Subtypes give you an enumeration of all subtypes in the class. However the IEnumSubtype.Next method requires the subtype code ...
2
votes
0answers
97 views

Is it possible to lock a single feature from editing in ArcObjects?

We're developing an ArcMap addin. Now we need a way to lock a feature from editing/deleting. Is this possible with ArcObjects or do we have to create our own implementation of locking? Example: User ...