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

Why does Exporting Document to JPEG using ArcObjects in Layout View result in bad picture quality?

I want to export the Active View with ArcObjects to JPEG. All Layers in the Document are raster layers (GeoTiff). I use this code which works quite well when in Data View, but when I perform the same ...
1
vote
1answer
63 views

How to convert an IGeometryCollection into a Polyline

I am using the CostPathAsPolyline method which returns the Polyline as an IGeometryCollection. I now need to get this converted back into a polyline. But it seems to be more complex than just a ...
0
votes
0answers
125 views

How to get the top left and lower right coordinates of polygon in ArcObjects?

First of all, draw the rectangle ESRI.ArcGIS.Display.IScreenDisplay screenDisplay = Map1.ActiveView.ScreenDisplay; screenDisplay.StartDrawing(screenDisplay.hDC, (System.Int16) ...
1
vote
0answers
45 views

How to return shapes from geo service?

I have a geo service that seems to finally be working. I have the service setup with a list of Polylines as the returned object. This is what I'm trying to implement but it doesn't work: ...
1
vote
1answer
223 views

How to create windows form based tools as add-ins in arcgis 10.0 using vb2010

Here i am again with a query again. Let me explain the project layout first. I am writing a project in vb2010 in which i want to add a package having 4 toolbars with about 48 tools in them in ArcMap ...
2
votes
2answers
279 views

How to draw one rectangle in ArcObjects?

Is there button in ArcObjects "draw rectangle" such as in openlayers? Update Well, I use this code for drawing: ESRI.ArcGIS.Display.IScreenDisplay screenDisplay = Map1.ActiveView.ScreenDisplay; ...
1
vote
1answer
59 views

CreateRasterCatalog on the fly using ArcObject 10 .NET SDK

My debugger crashes without showing any error. It crashes not even catches exception on the line: rasterWorkspace.CreateRasterCatalog(catalogName, fields, "Shape", "Raster", "defaults"); Code ...
0
votes
1answer
43 views

How to access functions from another project in vb2010

I have written a project which has common functions in Visual Basic 2010 i.e. Visual Studio 2010. for e.g. Public Function FlashPolygon(pDisplay As IScreenDisplay, pGeometry As IGeometry) Dim ...
0
votes
0answers
55 views

How to remove Raster from Raster Dataset programmatically?

I have Raster (it is 6 adf files). This raster was added to Raster Dataset in sde database. Geoprocessor geoProcessor = new Geoprocessor(); Mosaic mosaic = new Mosaic(); ...
1
vote
0answers
116 views

ArcGIS Server Object Extension (SOE) RestOperation configuration

How would you accept a call to a RestOperation with string and reply back with a json array of the column names in the table holding this information? So, if string is 'owners' then get names of ...
0
votes
0answers
90 views

Add Layer into existing GroupLayer in map c#

I can't add Layer into existing GroupLayer in map. I'm trying this code below, but it does not work! I need code looks like this: public void AddLayer(AxMapControl mapControl, ILayer pLayer) { ...
2
votes
1answer
83 views

Application Extension vs. Add-in Application Extension

Background: I am tasked with rewriting a 9.3 ArcMap solution based upon a VB6 implementation using an application extension and several forms. The interface to ArcMap is that this solution needs to ...
0
votes
0answers
61 views

How to retrieve FeatureServer and ClassExtensions error messages?

I am having problems when publishing a service with a FeatureServer capabilities. This service is pointing to a FeatureClass on the Geodatabase and this FeatureClass has a classExtension associated. ...
4
votes
2answers
179 views

How to create new legend using ArcObjects?

I am trying to add simple legend to the map. I wrote some simple test code below to see what happens but it did not work. var map = activeView.FocusMap; IGraphicsContainer ...
2
votes
2answers
225 views

How to copy selected features from one sde to another using ArcObjects?

Assuming I have two SDEs or other datasources with the same datamodel. One contains features the other one is empty. In ArcMap I have layers from both datasources in my table of contents. Now I would ...
1
vote
0answers
29 views

Bug in ArcGIS WebADF's IMapFunctionality.DrawExtent?

I'm maintaining an old ArcGIS WebADF-based application that has recently been upgraded to use the 10.1 libraries. I'm not too optimistic about finding a solution as I think I'm the only person in the ...
1
vote
1answer
46 views

How do I use a generic List with my Arc Objects code?

/// <summary> /// Gets a list of all geoms in a Feature Class /// </summary> /// <param name="FClass">The Feature Class</param> /// <returns>a List of ...
0
votes
0answers
34 views

IcommandItem make enable and disable

I have commandbutton1 and Commandbutton2 in commandbar.And Coummandbuton1 is disable on some condition.I want to make enbale commandbutton1 on click of commandbutton2.How to do it. Vinayak Panchal
1
vote
1answer
111 views

Why does my ITopologicalOperator Intersect result have incorrect area?

I have used ITopologicalOperator for getting common Area of two polygons but the result is not correct. May anyone please tell me how to get the common area of two features. //Make Topological ...
2
votes
2answers
91 views

How to use IFeatureCursorBuffer in VBA

I tried to use IFeatureCursorBuffer to create and dissolve the buffered features.I am trying to get the solution since some days using dissolve and UnionOverlappingBuffers, but not being able to get ...
0
votes
0answers
20 views

Does ArcObjects ConstructUnion operation sometimes fail to merge touching parcels?

I have some code which identifies touching parcels and uses ConstructUnion to produce a single polygon from them. Just occasionally the touching parcels remain unmerged even though they have been ...
1
vote
0answers
82 views

How can i import Google map or Bing map to my application using ArcEngine?

I'd like to create an application using ArcEngine 10 . I want to import google map or bing map to my application as base map. I surf in the internet but couldn't find any tools or API to import these ...
10
votes
6answers
462 views

How do I iterate through every cell in a continuous raster?

See this link for more details. The Problem: I want to loop through a continuous raster (one that has no attribute table), cell by cell, and get the value of the cell. I want to take those values ...
1
vote
1answer
34 views

IElement, extract Element from GroupElement nested in GroupElement

As per title. I am trying to extract Element from nested GroupElement. I can not find any code sample for that. Please refer to one or point me in to right direction, how to do that. It sounds ...
0
votes
0answers
79 views

How to create a raster dataset from a known decimal extent?

I have an input raster pInputRaster. I want to create a new raster dataset called pOutputRasterDS that is the same width, height and cellsize as my input raster dataset (I'm not worried about ...
1
vote
1answer
21 views

Assign a Value to a Customized Toolbar Item

I have developed a main toolbar that uses windows forms and arcobjects to write to sde databases. I am trying to extend the functionality of the toolbar to point to two different databases dependent ...
2
votes
2answers
272 views

Create a Line FeatureClass from IPointCollection

I want to create a new line layer from a point layer. I store the points in an IPointCollection. I want to use that IPointCollection to create a line IFeatureClass. I know how to create a single ...
1
vote
0answers
63 views

Am I correctly projecting a geometry using a WKID in ArcObjects?

I would like to take in any valid WKID for a spatial reference and then project a single geometry to it. The following code seems to be working, but (1.) can someone verify that this is the correct ...
0
votes
0answers
60 views

group all layer index file after adding to TOC

I have added all the tif file of shape file to the map (Desktop).what i need to do group all tif file as one layer to TOC.How to do? Please help me.I am using c#.net
3
votes
2answers
220 views

.net Geoprocessing object: 000816: The tool is invalid

I am currently trying to build an ESRI Addin that supports multiple versions of ArcGIS (10.0 & 10.1). The project targets .net framework 3.5 and is built in the ArcGIS 10 environment. The ...
1
vote
1answer
72 views

Is it possible to disable an Extension Addin on Startup

I am currently creating an Addin, that can be toggled on/off from the extension manager. What I want to do is when ArcMap is being loaded, to check the license level being used (which I have done), ...
1
vote
0answers
96 views

What is a good way to cluster point data by item counts in ArcGIS?

I have point features that have as an attribute an asset count. For instance, point A may have 3 assets whereas point B may have 300 assets. My goal is to have each point be in two categories: ...
1
vote
0answers
36 views

What is the difference between a Custom Layer & a plugin data source?

You can add custom data to ArcGIS desktop in two different ways: Plug-in Data Sources Custom Layer What is the difference between these two? I'm looking at the possibility of creating an editable ...
1
vote
1answer
149 views

Debug target is missing - how to set in VS 2010 Express?

I updated ArcGIS from 10.1 to 10.2 and recompiled all Addins with ArcObjects 10.2. I am having an issue with 1 addin that accesses a custom tool in a toolbox and want to debug the project. However, ...
1
vote
1answer
46 views

ArcObjects- IBorder.GetGeometry() in Python

I am trying to get geometry of frame border trough IFrameElement.Border. I do receive IBorder object, which has .GetGeometry() method. How do I use this method to get geometry of the border? I can ...
1
vote
1answer
80 views

Getting compilation error on esriLicenseProductCode.esriLicenseProductCodeArcView

I am getting compilation error on esriLicenseProductCode.esriLicenseProductCodeArcView I have installed Arcgis 10.1 and authorized ArcEditor. I am not able to authorized ArcView. I have not ...
1
vote
0answers
61 views

How to create a schematic view of a line feature?

DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far… I have a line feature (polyline with curves) in ArcGIS Desktop, and I want to create a linear representation (straigth line) of the ...
3
votes
1answer
67 views

Accessing Data Sources listed in the ArcMap TOC

I recently identified a bug with a fairly mature application I've developed which is hosted through ArcMap. The bug happens when I've loaded a 'project' into ArcMap, which includes assorted feature ...
1
vote
1answer
152 views

How to add a new data frame to an MXD using C#

Does anyone have code in C# to add a new data frame (map) to an MXD? I have an MXD created in ArcMap 10.1 that has an existing data frame. I need to programmatically add a new data frame and ...
2
votes
0answers
175 views

GDAL: Geotransform - rotated rasters (and ArcGis)

I am working on a GDAL driver for a proprietary grid-format. In some cases, the grids are rotated in order to get smaller file sizes. In my GDAL geotransform array, I do the following (showing a ...
3
votes
1answer
563 views

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

What is the difference between ArcObjects SDK for Java and ArcGIS Runtime SDK for Java and ArcGIS Engine. I have ArcGIS Desktop 10.1 on my laptop. What do I need to create ArcGIS desktop applications ...
1
vote
1answer
103 views

“The Fields collection did not contain an expected geometry field” (ArcGIS 10)

I am writing a fairly simple application to build simple polylines. I got most of the application working for the most part, but this part is just baffling me to no end and there is nothing I can ...
1
vote
1answer
146 views

Getting Coordinates from a feature with VBA

Is there a way to get the longitude and latitude coordinates from a feature class? I have some code which can select the first layer in the Table of Contents. I want to be able to get the lat./long. ...
2
votes
1answer
189 views

How to connect to ArcGIS Server on the other machine?

There is the ArcGis Server on the machine 192.168.**.22 Machine name is MAPSERVER. User name and password for ArcgIS Server are "test" and "testtest" (for example) ArcGis Server options are: ...
1
vote
1answer
64 views

Error when using ServerStyleGalleryClass (Arcobject)?

First, I used: IStyleGallery styleGallery = new StyleGalleryClass(); I can run my program without error (on my computer). But this require using ESRI.ArcGIS.Framework (need install Arcgis Desktop). ...
3
votes
1answer
81 views

How to apply WHERE clause to relationship class using ArcObjects?

I'm trying to query objects related to objects and satisfying some query in ArcObjects. IRelationshipClass interface contains methods for getting all related objects but how can one filter them? I ...
0
votes
0answers
35 views

Can't register StyleGallery.dll (Arcgis) when install my program (using Visual Stdudio,C#)

In my program, I used the IStyleGallery (need using ESRI.ArcGIS.Framework). When I install and run my program. I got the error: "Retrieving the COM class factory....". And, I discovered the reason ...
2
votes
0answers
117 views

Can I update the service on ArcGis Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
0
votes
1answer
113 views

Generate annotation for features in ArcObjects

I need to programmatically generate annotations for features. I don't need the actual annotation feature, just the text placement, size, angle, etc. properties that are generated. Those attributes ...
1
vote
1answer
59 views

ArcGIS 10.1 - Re-writing an add-in application from processing an SDE Geodatabase to processing a file Geodatabase

ArcGIS 10.1- I am planing to re-write an Add-in application targeting SDE Geodatabase(ArcObjects) to an add-in application targeting file Geodatabase. The Add-in application is a Tool that allow the ...