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

ArcObjects: esriSRGeoTransformation enum for WGS_1984_Major_Auxiliary_Sphere_To_WGS_1984

There is geoTransformation named: WGS_1984_Major_Auxiliary_Sphere_To_WGS_1984 I know it exists because I can access it with Projection Tool in ArcToolbox. But for the life of me I cannot find it ...
3
votes
3answers
4k views

Creating StreetView/Bing Bird's Eye Add-In?

I'm trying to create an Add-In for this tool: Link to Google Maps and Bing from MXD (Streetview and Bird's Eye supported) I'm not receiving an error however my browser is not opening after I select ...
3
votes
1answer
728 views

Migrating from Visual Studio 2008 (ArcGIS 10) to Visual Studio 2010

I've migrated my add-in project from VS 2008 to VS 2010 recently, and am now receiving the following error: Unable to cast COM object of type 'System.__ComObject' to interface type ...
1
vote
2answers
566 views

intersection between a geometry and a layer in Arcobjects VBA

i have to make an intersection between a polygon and a layer of parcels, the polygon used in the clip is not belonging to any layer and the result of this intersection should be all the parcels inside ...
2
votes
1answer
97 views

Pull out multiple elevation points from an ISurface

I have an ISurface object and wish to pull out several elevations with one call; instead of using the GetElevation(IPoint) method. The ISurface is representing a dem with 30m cell size. Is there an ...
2
votes
2answers
142 views

Shrinking a line to fit within a raster surface?

I have a single polyline feature that extends beyond my raster surface. I would like to shrink this line so that the end-points are within the last pixel at the edges of the raster. I have tried ...
3
votes
1answer
322 views

How to listen for ESRI drawing events using ESRI drawing tools in ArcObjects?

I am trying to make use of the built-in ArcObjects drawing tools (ie ControlsNewCircleTool) - but I need to listen for the events so I can add the drawing graphics to the database in our application. ...
1
vote
2answers
155 views

How do I use the OverviewClass in ArcObjects?

I want to display an Overview map - I know how to do it using a separate PageLayout or MapControl - but I noticed ESRI has an OverviewClass - how do I make use of this with the AxMapControl?
6
votes
1answer
1k views

ArcGIS 10: AddIn Extension loading toolbox issue

I have an extension class in an ArcMap addin project of which loads a custom toolbox into ArcToolbox when the user opens ArcMap or opens a previously created map. My toolbox gets added to ArcToolbox ...
3
votes
2answers
363 views

ArcObjects IFeatureConstruction::PlanarizeLinesFromCursor error

I wrote a little tool in ArcObjects/C# for planarizing a line feature class. I am using IFeatureConstruction::PlanarizeLinesFromCursor because I need to apply a query filter. Now, I figured out a bug: ...
0
votes
2answers
498 views

Why would programmatically setting the extent of a map on Page_PreRender be really slow?

We are using the ArcGIS 10 web adf with C# in a web application. We just recently upgraded everything from 9.3 to 10 and moved all the hosted stuff over to a new (more powerful) server. Still on the ...
4
votes
1answer
720 views

Obtaining a contour as a single polygon in ArcGIS?

I have a DEM that I want to retrieve a single contour polygon from at a given elevation. I can use the Contour tool to obtain a series of polylines at a given elevation by setting the contour interval ...
1
vote
0answers
392 views

Intersecting with Geodatabase.ISpatialFilter - no results

I'm trying to intersect two layers and get resulting features with the following code I've written: ESRI.ArcGIS.Geodatabase.ISpatialFilter spatialFilter = new ...
3
votes
2answers
750 views

ArcObjects: IMapEvents.FeatureClassChanged doesn't fire if the layer's previous data source was invalid

Is there any other event besides IMapEvents.FeatureClassChanged that will be fired when a layer's data source changes? FeatureClassChanged doesn't seem to fire if the layer's previous data source was ...
2
votes
1answer
538 views

Arcobjects: Is my spatial reference Geographic or Projected?

I have the user select a coordinate system with the Spatial Reference Dialog. Is there a simple way to determine if the resulting spatial reference is a Projected or Geographic CS? I would of ...
7
votes
2answers
277 views

.Net Solution Structure for ArcObjects and Geodatabase programming

OK - I understand that this is a bit subjective - but you're the best community forum I've got! So, we are talking about starting a fresh customisation for ArcGIS or a Windows app using Engine. I ...
1
vote
1answer
232 views

Get the names of currently visible rasters from a catalog

I have a simple win form app with a map control on it. The map has a layer (MADtedLayer) that was initialized from a catalog in a personal database (Access). The files displayed are DTED. I need to ...
5
votes
3answers
3k views

How to use ArcObjects to choose GeoTransformation?

I’m currently building a Desktop add-in tool with ArcObjects that: Asks a user to select a feature class Reprojects the feature class to Web Mercator Executes some geoprocessing The initial ...
2
votes
1answer
1k views

Adding fields to raster attribute table

I have a raster attribute table associated with an IMAGINE .img raster that I build and open with: IGPUtilities utils = new GPUtilities(); IRasterDatasetEdit2 raster = (IRasterDatasetEdit2) ...
2
votes
2answers
194 views

How to store large amounts of text in an SDE table

I need to store a lot of text in a field in an SDE registered business table (an ITable, not a featureclass) - let's say 10,000 words roughly. I am using Oracle 10g and ArcSDE 9.1. I am programming ...
5
votes
1answer
973 views

Drag a Feature in ESRI, ArcObjects Engine (AxMapControl)

I'm trying to implement moving a point feature in a custom C# ArcGIS Engine application on an AxMapControl. I've already created a custom tool to do some other things. And I can track when the user is ...
5
votes
3answers
1k views

How to let the user select a spatial reference using ArcObjects?

I need to build a tool where the user selects a coordinate system for a given CAD file. What is the easiest way to do this with ArcObjects? Obviously, I could populate a list with the hundreds of ...
5
votes
1answer
680 views

How to turn an IField from Not Editable to Editable?

so i have turned my ITable into an editable DataGridview from this post link. Now i want to set some of the columns to be non editable. So what I can do is initially set my IFieldEdit.Editable_2 to ...
9
votes
2answers
402 views

How to use IRelationalOperator2 and GeometryBag

I want to use the IsNear method of IRelationalOperator2. The documentation says that GeometryBag supports the IRelationalOperator2 interface. But this just doesn't work and results in an exception ...
2
votes
1answer
448 views

How to cast SDE table to IFeatureClassLoad

How do you cast an SDE table to IFeatureClassLoad using ArcObjects? I'm getting an error with this attempt below which is not the correct method: Dim pSDEFeatWksp As IFeatureWorkspace = ...
1
vote
0answers
143 views

How to get SplineWithBarriers to work in C#

I have been having fits trying to get SplineWithBarriers to work but to no avail. My environment: Windows 7 64 bit Visual Studio 2010 Team Edition ArcMap Release Version 10.0 Product Version: ...
2
votes
2answers
121 views

Reusing Layer Selection on Toolbar

I'm working on a custom toolbar for an extension which will have operations that work upon a specific, user-selectable layer. Is it possible to directly use the layer selector used by ESRI's toolbars ...
4
votes
2answers
927 views

Replicating ArcMap's Point Sketch Geometry Editing (Feature Templates) in ArcObjects

I'm looking for a way to place, select, move, delete features inside a custom C# ArcObjects application (using AxMapControl). I found the exact behavior in ArcMap, but I want to save the user some ...
2
votes
1answer
188 views

How to display IGeometry?

I've done an intersection with the ITopologicalOperator6 interface, and I now have an IGeometry with the result. How to draw this in a graphics layer on the map? I want to see what was intersected ...
4
votes
1answer
2k views

Filtering a raster by pixel cluster size in ArcGIS?

I have a raster image representing islands in a river (see image) created using the following process: 1) Clip a water surface DEM and watershed DEM by a bounding polygon (waters' edge). 2) Subtract ...
2
votes
0answers
400 views

Rendering raster layer from DTED based on height color map

I have a raster layer that was create from DTED file (dt1 specifically), created by the following code: var rasterLayer = new RasterLayer(); rasterLayer.CreateFromFilePath(dtedFilePath); The dted ...
7
votes
1answer
840 views

How to create a 9.3 file geodatabase with ArcObjects SDK for ArcGIS 10?

In ArcGIS 10 I could use the Create File GDB geoprocessing tool to create a 9.3 file geodatabase or the Create Personal GDB geoprocessing tool to create a 9.3 personal geodatabase. But I cant't find a ...
3
votes
0answers
167 views

Should the IRelationalOperator.Equals return true regardless of vertex orientation?

I don't recall every having an issue with this method, but I am now. As I understand IRelationalOperator.Equals, vertex orientation shouldn't affect equality and if I take a polyline and reverse ...
2
votes
0answers
564 views

Intersect two layers and get resulting features

I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features. I'm trying to get this code working // get first feature (index 0) ...
1
vote
0answers
1k views

Edit SDE table with ArcObjects - continued [closed]

Update So, I believe I'm getting closer to being able to edit my sde table, however now I'm getting stuck on this line: Dim updateCursor As ICursor = table2.Update(Nothing, True) With this ...
2
votes
1answer
155 views

Arcobjects - Make new folder

Does anybody know how to create a new folder with arcobjects? This is what I want to do: insert a text in a TextBox and, when I run the aplication, it will create a folder with the name wroten in the ...
4
votes
0answers
666 views

How to find layer ID and name from Identify query using ArcGIS Web ADF?

I need to retrieve the layer ID of every layer returned by the IQueryFunctionality.Identify function (I am using ADF with .NET) Identify function spits out a DataTable array for layers which have ...
1
vote
1answer
1k views

Finding TOC Layers Type (layer,grouplayer,..) and layerindex of a layer

How can i find the type of the layers in TOC ? these types are very important to me : 1.layer (that has a valid datasource) 2.layer (that lose its datasource because of changing the address of its ...
1
vote
1answer
110 views

Problem with editing representation

How we can edit the representation of a layer programmatically in DotNet ? ''Representations allow you to customize the appearance of features by storing symbol information with the feature geometry ...
8
votes
2answers
422 views

Is it possible to use a Multipatch to implement IFeatureRenderer.Draw in a custom renderer

I have a custom renderer which need to render modified geometry. The input features are all coming in via the IFeatureCursor as polygon elements. (This is similar to this example, though I'm not ...
10
votes
4answers
527 views

Does SHAPE_Length take into account elevation values?

Does the Shape_Length attribute take into account the elevation? For instance, if I have 3 points: A, B, and C A.X = 10 A.Y = 10 A.Z = 10 B.X = 10 B.Y = 10 B.Z = 50 C.X = 0 C.Y = 0 C.Z = 10 Then I ...
5
votes
3answers
984 views

ArcGIS10 Debugging

First ever post to this forum, I have a C# extension (legacy from another developer) which I am trying to debug in the ArcGIS 10 Environ (64bit machine/Windows7). I have built the ext in "Debug" ...
0
votes
1answer
408 views

arcgis server 10, vb.net, IMathOp problem

i am using arcgis server 10 and visual studio with vb.net to build web mapping application. inside my code i have the following line: Dim RasterCal As ESRI.ArcGIS.SpatialAnalyst.IMathOp = _ New ...
4
votes
1answer
212 views

Create a esri layer file through web map

Is there some way to create a layer file through web mapping application. If I expose data through a map service is there a way to create a .lyr file?
6
votes
1answer
285 views

Use existing property pages with new IFeatureRenderer

I am trying to override the drawing of a feature within a custom plugin data source. I believe this entails making a custom IFeatureRenderer. However, the "renderer" I'd like to design would be 99% ...
4
votes
1answer
823 views

Editing ArcSDE table with ArcObjects?

The link below provides a code snippet for editing an ArcSDE table with ArcObjects. Are there any other or newer code examples out there of how to edit an ArcSDE table by using ArcObjects? Edit ...
0
votes
2answers
131 views

ArcGIS 10 and IGeometryServer2

Has anyone already use IGeometryServer2 or IGeometryServer within C# code ? I'm looking for a sample since I have not succeeded in using it. I have already selected: One Polyline (IPolyline) : for ...
5
votes
1answer
2k views

Selecting the MAX value from a feature using ArcObjects?

I have a feature (point) with a field called 'Sequence'. The values in this column range from 1 to n. I can use IQueryFilter to get the first value, 1. Dim pQry As IQueryFilter = ...
5
votes
1answer
2k views

How to save a layer file with a relative path

In VBA, how do you save a layer file (.lyr) with a relative path? I have some code that loads a shapefile into ArcMap but I am unsure of how I go about using this shapefile to then save a layer file ...
2
votes
5answers
3k views

Programmatically calculating the length of all polyline features in a featureclass

I've come across this issue a few times and have not yet found an agreed upon solution on any forum. Simply put, I have a featureclass containing many polyline features. I would like to calculate the ...