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

How do I access a feature layer's “displayField” from a REST SOE?

Understanding I can't use the 'ESRI.ArcGIS.Carto.IFeatureLayer' interface, how can I get to a Feature Layer's "displayField" from a REST server object extension using arcobjects C#? ...
0
votes
0answers
18 views

Hotlinking Images using PickListener(MOJO)

I have a class class MyPickAdapter implements PickListener { public void beginPick(PickEvent pe) {} public void endPick(PickEvent pe) {} public void foundData(PickEvent pe) { } }; ...
-1
votes
1answer
37 views

Can I convert raster to shape by specify class?

I use the method "IMultivariateOp.MLClassify",so I get many class such as the figure below, can you give some code in C# to convert each of them to shape?Thank you. one more question, why I just ...
0
votes
0answers
16 views

How to iterate the area of uniqueValue in raster?

Here is a figure shows the result of the classify after using "IMultivariateOp.MLClassify",but how can I iterate them? Can I iterate them directory instead of using IRasterWorkspace or ...
0
votes
0answers
53 views

How to populate a dropdownlist with map service field names given only the layer name

I'm trying to wrap my head around a task which seems pretty simple, but not sure what the easiest way to go about it. I'm using javascript api and have a populated dropdownlist of sorted layer names ...
0
votes
0answers
37 views

How to convert raster to polygon that I classify in C# ArcGIS engine?

by " IMultivariateOp.MLClassify" method,I just can classify the raster into many classes,but how to convert each of them to polygons,and give them properties like names? I need some code in C# in ...
0
votes
0answers
32 views

ArcObjects SDK: Textured MultiPatch: problems with large texture images

I am using IGeneralMultiPatchCreator to create a textured MultiPatch. This works fine for small texture images, but fails for larger images (15 MB .png). In ArcScene the MultiPatch is displayed in ...
0
votes
1answer
16 views

Create Cost Array ignores NoData!

After a great deal of research here is what is happening: We select two points on a hydrography map with an island inbetween. It is expected that the CostDistanceWithPolyline would return a line that ...
1
vote
0answers
74 views

how can i export a shapefile

hi I want to select the cities that exist in Morocco and export it to a shape file and I used this code but its not working, it gives me an error: code: import arcpy from arcpy import env ...
1
vote
1answer
66 views

How do I perform a raster overlay analysis in ArcObjects?

Using the "IMultivariateOp.MLClassify" Method, it will create a field call "Count",which can be used for calculating area, as shown in the figure below: But now I want to calculate the increase ...
1
vote
1answer
53 views

How to get Name of IRaster object using ArcObjects?

I have an IRaster object as output from a function. I need to be able to get the name of that raster. Is there a way that I can do that? I know that I can't mask an IRaster as an IRasterDataset. If I ...
0
votes
1answer
92 views

How to add features to geometry collection using .ShapeCopy

I'm having an issue with trying to complete the loop of adding the selected geometry to my geometry collection. The goal is finding streets that intersect the given streetname (then locating the ...
1
vote
1answer
33 views

Help with ArcObjects language to open or access a shapefile?

I am writing a program with a dialog box that when they click on the map button a shapefile will open. I wrote a program that opened a map document is it the same language as that is. Which is the ...
2
votes
1answer
133 views

Adding FeatureLayer on a thread crashes ArcMap

I asked this question on the ESRI forums but got nothing so I thought I would try it here (hope that is consider ok). I am creating an extension for ArcMap 10.2 using Visual Studio 2012 C# WPF. ...
1
vote
1answer
78 views

Get a spatial reference object by name from a saved string

I am creating an ArcMap 10.2 extension is VS 2012 and C#. I want to give the user the option to select a spatial reference to be applied to a layer - planning to use the Dialog for that. But then, ...
1
vote
2answers
19 views

working with hydrography raster the cost array ignores the end of water

We have our maps laid out using hydrography maps from NOAA. We had to run the graphics through several steps to create the water feature raster. I have a process that pulls in that raster, sets a ...
-1
votes
1answer
118 views

ArcGIS Engine--load mxd file to map control or pagelayout control?

When load a mxd file using ArcGis engine,how to automatically detect whether it's saved in mapcontrol or pagelayout control?Thanks!
1
vote
3answers
537 views

Zoom to selected features with ArcObjects

I am trying to figure out what is the best way to set the active view extent to be able to view all the selected features on the Arc Map. 1.The Map has only one layer. 2.The features are filtered ...
2
votes
2answers
66 views

Is it possible to create an addin for a specifc MXD?

I am currently in the process of creating Addin's and also converting our VBA projects to .NET addins. With the VBA applications, they would only work with specific MXD's. Is this possible to do with ...
0
votes
0answers
41 views

Suggestions on how to find street intersections

I'm running AGS 10.2 with AGS Desktop 10.1 and SQL 2012. I have a REST SOE which is currently providing custom services to a JSAPI app. I'm working with a basic streets layer with only street names ...
1
vote
1answer
64 views

Get Polygon or IGeometry from Envelope in ArcObjects

I would like to create a Polygon Feature from the geometry of an IEnvelope in C# ArcObjects SDK 10. Is there an easy way how to do it?
3
votes
1answer
54 views

Store user settings in map document?

I have created a custom tool for ArcMap with .NET and would like to know if there is any way to store user defined settings in a MXD. The tool simply draws a graphic circle of a certain radius with ...
2
votes
1answer
47 views

How to get a collection of georeferencing control points in an ArcMap document?

I have created control points (i.e. links) using ArcMap's Georeferencing toolbar. How can I programmatically retrieve a list of these points? I'm looking for something like an enum of the links you ...
1
vote
0answers
38 views

Issue on IFeatureDataConverter.ConvertFeatureClass

Does anyone know if it's possible to reuse this method with a "feature dataset" already present ? I'm trying to import multiple shapefiles under a featuredataset inside a fgeodb. Everything it's ...
1
vote
1answer
85 views

Replace error message in ArcObjects .net custom geoprocessing tool

I am writing some validation in the updateparameters method of my custom geoprocessing tool. I need to post an error message when specific conditions exists and I would like to include a standard esri ...
0
votes
0answers
26 views

NextBuffer operation takes a long time when there are no rows in a table

We're trying to get data from a table which contains no rows. The query runs fast, but the SDE gets stuck on NextBuffer command. Some code that we're using: IQueryName2 queryName2 = (IQueryName2)new ...
2
votes
0answers
29 views

Getting value from IRow is slower while edit mode is on? [closed]

When I access a value in an IRow using get_Value(index), it usually takes 0 to 1 ms. But when edit mode is on, the same operation takes 0 to 15 ms (most common values are 0 and 10 ms)! What could be ...
3
votes
1answer
98 views

Shp to featuredataset (GeoDB)

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 ...
2
votes
2answers
107 views

How to get Database name for layer in ArcObjects?

I am writing an ArcGIS ArcMap Add-In and need to determine what database a given layer from. How can I determine this information? I attempted to use the FeatureLayer to get a FeatureClass, and then ...
1
vote
0answers
108 views

ArcObjects - Export map to PDF - graphics not appearing

I'm having an issue with our ArcObjects code for exporting a map to PDF. There is a section of code that adds graphics on to the map (polygons, lines, text etc). This seems to work fine for the first ...
3
votes
2answers
212 views

Why unable to edit ArcSDE from multiple computers on LAN using custom ArcGIS Engine application?

I cannot edit an ArcSDE database from multiple computers on a LAN network using a custom ArcGIS Engine application, I have tried both versioned and non-versioned feature classes, but they cannot be ...
4
votes
2answers
100 views

Maximum length of WHERE clause with IN statement

I need to get all features from feature class where their field value matches to input array. To achive this one may set IQueryFilter.WhereClause property similar to 'FIELD_NAME IN (array[0], ...
3
votes
1answer
217 views

In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?

I need to change the spatial reference of an existing MXD programmatically. In ArcMap UI, I would take the following steps: 1) Open the data frame properties and go to the Coordinate System tab; 2) ...
1
vote
1answer
82 views

Geoprocessor Execute HRESULT COM Error

Recently, I started having problems with my C# projects running ArcGIS10.1 geoprocessing tools. My tools point to custom scripts in project toolboxes. The code in question has run without issue in the ...
0
votes
0answers
49 views

Command doesn't show up on ICommandBar

I'm trying to put a custom command into the Help menu on startup if it isn't already there. This is my code to do so: private void OnCreate() { // other stuff in OnCreate()... // registering ...
1
vote
0answers
36 views

Icon missing when adding custom combobox command to Toolbar

I have a custom command: class ATL_NO_VTABLE CSliceSelector : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CSliceSelector, &CLSID_SliceSelector>, ...
0
votes
1answer
40 views

Handle string or int in server object extension

How would you also check to see if the value you are passing into into an SOE is an integer as well? This checks for string, but returns 0 when passing number: string searchValStr; int ...
1
vote
0answers
53 views

GP-Tool: Detect if running in background or foreground ? (ArcObjects)

I got a geoprocessing tool which I want to prevent from running in background, due to some weird crashes that happens. Is it possible to programmatically detect if background processing is enabled ? ...
1
vote
1answer
64 views

Errors when creating a TextElement from ArcObjects

I am attempting to add some text in the layout view of ArcMap. I’m using the following line for the TextElement that I’ve found online from numerous places including ArcObjects Library Reference. ...
5
votes
2answers
660 views

ArcObjects - find nearest feature to a point - has to be FAST

I've seen lots of discussion on this, especially using IIndexQuery.NearestFeature() on a FeatureIndex instance. Something like this: private IdDistancePair FindNearest(IGeometry g, IFeatureClass fc, ...
1
vote
1answer
87 views

What is the correct approach to handle mouse events for a tool that is called by a button?

I have a dockable window with a 2 buttons that call 2 different tools (Draw Marker and Select Features), What i want to happen is when the user clicks on the relevant button on the dockable window and ...
1
vote
0answers
24 views

Implementing day night functionality [duplicate]

I want to implement day/night functionality on world map i.e there will be dark layer showing countires having night now. This world map could be creaeted through ESRI or SVG map.I want to ...
1
vote
0answers
31 views

Is it possible to add dynamic controls to a dockable window?

I am writing a small application that uses the dockable window. What will happen is that for each layer in the TOC a label and checkboxes will appear within the dockable window. However what do i need ...
3
votes
1answer
162 views

How do I draw transparent polygons with ArcObjects?

How do I draw transparent polygons in ArcObjects? I mean is it possible to set alpha channel?
3
votes
1answer
51 views

How can i uncheck leader lines show in piechart using ArcObject?

I'd like to uncheck the leader lines of my piecharts programmatically . I surf in the internet and found nothing about this.It's simple to uncheck the leader lines in ArcMap. Just go to properties of ...
3
votes
0answers
129 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 segemnt of the polyline I mean that, each polyline may contain more ...
1
vote
0answers
31 views

IfeatureClass.searc(Iqueryfilter pqueryfilter, bool recy) is throwing external component has thrown exception [closed]

I am running my code to trace features approx 20 lacs and my code is working fine for 2 or 3 lacs features and after sometime it thrown external component exception. Please provide any code ...
0
votes
0answers
28 views

Manipulating Rasters and Cost Arrays

I have a map file created by an external group. Within this file is the hydrography map. In one existing piece of code we are making a call ... passing a CostArray as follows, the FeatureClass being ...
1
vote
2answers
74 views

Can SqlWorkspaceFactory connection files be created with ArcGIS Desktop?

With ArcObjects, I can use IWorkspaceFactory.Create I can create a connection file for a SqlWorkspaceFactory. Is there an out-of-the-box method to create the same file in ArcGIS Desktop? Update: I ...
1
vote
0answers
39 views

Issues using Arc 10.0 extension recompiled for 10.1

I have a written an ArcGIS extension in C# .Net for version 10.0. I have attempted to recompile this extension for 10.1 and that works. But running the extension in 10.1 is causing ArcGIS to crash. ...