A framework, developed by Microsoft, that compiles any of several COM-based programming languages into machine-executable language.

learn more… | top users | synonyms

3
votes
2answers
367 views

uniquely identify feature classes & compare them for equality

I want to implement EqualityComparer<T> for feature classes so that I can stuff them into a Dictionary or HashSet. For motivation, say that I am looping over many IFeature objects which belong ...
0
votes
1answer
293 views

IUniqueValueRenderer with three fields

I have found some ArcObjects code to get unique values on one field for a IUniqueValueRenderer but I can't conceptually wrap my head around how to do that with 3 fields. Would this be .Net code or is ...
2
votes
3answers
341 views

List layers in directory .Net ArcObjects or plain .Net — C# preferably

Any code samples to list arcgis layer files from a directory so they can be looped over?
0
votes
2answers
5k views

How to convert lat long to meters using Mercator projection in C#

I have set of lat long values and I want their equivalent in meters using Mercator projection in C#. Can you please post some sample code or api example of some library that does exactly this?
3
votes
1answer
265 views

ArcObjects .NET: Get more info out of COM Exceptions - how to get description info from ErrorCode?

Ok, I can trap the COM exception and convert the ErrorCode to the proper enum, (e.g. esriGeometryError.E_GEOMETRY_WRONGTYPE). But is there a way to get the error description from the enum? For ...
4
votes
3answers
1k views

Any .NET library to calculate polygon area?

Is there a .NET library to calculate area enclosed by polygon made up of geo coordinates (lat longs)?
2
votes
1answer
2k views

How to determine if a mouse click falls within a polygon

I have a polygon drawn on top of a layer using the graphicsContainer of the current activeView, then I want to be able to show a custom context menu if the user right clicks INSIDE the polygon. So I ...
6
votes
1answer
893 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
330 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: ...
5
votes
3answers
1k views

How to unproject WKT to WKT in .NET?

I have WKT in this format: GEOMETRYCOLLECTION(POLYGON((491990.250718 6212873.59755,491492.160493 6212904.94117,491265.64715 6212790.54445,491319.517251 6212550.36334,491579.624164 ...
5
votes
3answers
610 views

Looking for a .NET Dijkstra component using Shapefile

I'm totally new to stackexchange and i'm in this beautiful informative place for one problem. I'm a .net programmer and i need to write a program that reads a shapefile and performs routing operation. ...
6
votes
2answers
822 views

How to read data from PostGIS in DotNet (VB.Net/C#)

I have stored my data in PostGIS (PostgrSQL). Now I want to read the data in DotNet ArcEngine Application using VB.NET/C#. Anyone know how to read the data from PostGIS in .Net? Regards
4
votes
0answers
581 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 ...
10
votes
4answers
476 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 ...
10
votes
2answers
843 views

ArcGIS 10 add-in: Top-level exception handling

The ArcGIS 10 add-in I'm working on is pretty simple -- just a tool control and a dockable window. I'm handling the specific exceptions I anticipate occuring at the source and throwing everything ...
2
votes
1answer
542 views

Read .DEM (USGS) FIles with C#

I have a huge number of .DEMs and have been investigating how to process them into something useful. Does anyone know how, or even if it is possible to read coordinates and elevation data from ...
4
votes
3answers
901 views

Get part of polyline based on 2 points in Arc Engine

Currently I have a layer with polylines; in another layer, I allowed the user to create 2 points on the polyline. I want to know if there is a function for the polyline feature that I can use to get ...
3
votes
1answer
239 views

Reference to ArcObjects IUknown interface

Does anyone know what the ArcObjects reference library is for the IUnknown interface? I migrated the code below into Visual Studio and there is an error on the "Dim pSelItem As IUnknown" line. ERROR ...
6
votes
1answer
1k views

ArcMap Addin - add interoperability connection programatically

I'm currently building an add-in for ArcMap - ArcView using the .Net framework. The user of ArcMap and the Add-in should access data published from WFS services. I am aware that it is possible to ...
1
vote
1answer
281 views

Integrate ArcGIS 10 extension INTO ArcEngine 10

I was wondering if there is a way at all to use some of ArcGIS 10's extension into arc engine. A good example would be if we could put Arc Hydro extension into ArcEngine. Thanks and Regards, Kev
5
votes
1answer
480 views

.NET And ArcGIS 10x - Where have all the wrappers gone?

With prior versions (to ArcGIS 10x) of ArcGIS, the .NET wrappers used to be placed in a dotnet directory. Where are they located with 10x? With prior versions, I used the absence or presence of this ...
3
votes
1answer
433 views

Choice approaches for passing a selected feature to a method in ArcObjects? (C#)

It pains me to ask such a basic question, but after several hours (not exaggerating) of trying to figure this out and failing, I come to GIS.se What I am trying to do is pass a selected feature ...
2
votes
2answers
763 views

Reference for IDockableWindow?

Kind of a newbie with ArcObjects .NET. Trying to open a dockable window with the following code: public class CAD_Test_01_button : ESRI.ArcGIS.Desktop.AddIns.Button { public CAD_Test_01_button() ...
1
vote
2answers
173 views

Associating data in a form with an SDE Layer

I was wondering if there was a way to associate/persist some data about an SDE featureclass when viewing via ArcCatalog. I know you can have metadata - but I don't want to use that, and I'm pretty ...
2
votes
1answer
2k views

Programmatically adding custom GP tool to a toolbox

I'm having issues add a custom GP tool to my toolbox programmatically using c#. The tool gets added to my toolbox OK but then when I try to open it it fails adding a red cross to the tool and ...
3
votes
1answer
246 views

ArcGIS10: Publishing GPtools etc. in AddIns

I'm creating an ArcGIS 10 add-in in .NET C# which contains some tool commands and an extension class. This extension is being launched on application start-up. If I create any custom GP Tools, ...
2
votes
1answer
223 views

Save spatial reference to application settings?

Having created a tool as a macro for several geoprocessing tasks, I'm saving user input to application settings so the user doesn't have to enter all required data on each use. I'm stuck on saving ...
1
vote
2answers
504 views

Opening a custom model's geoprocessor window with ArcObjects

I have developed a custom model using ModelBuilder in ArcGIS, and I would like to use a .NET Base Command to open the geoprocessor parameter window for this tool so the user can enter their ...
3
votes
1answer
591 views

How can I programmatically project the Z value of a z-aware feature point, using ArcObjects in .NET/C#?

I discovered the following code leaves the Z coordinate of featurePt untouched: // if not WGS84 project it if (!SpatialRefsEqual(featureSpatialRef, srWgs84)) { // featurePt here is a Z-Aware ...
11
votes
6answers
4k views

ESRI ArcMap Add-in with app.settings not recognizing app.config changes

I have an ESRI Add-in developed for ArcMap which requires a configuration file. After spending a while trying to read config values from a single App.Config file (and always getting null) I believe ...
8
votes
3answers
2k views

Trying to find a .NET GeoJSON library

I'm trying to find a .NET GeoJSON library which I can use to export my SqlServer2008 spatial boundaries (in binary format -> eg. STAsBinary()) from my .NET code to my HTML frontend to display on a ...
3
votes
1answer
665 views

Can ArcGIS Desktop 10 Add-in Use IronPython?

Coming from the same background as the original poster in this thread, I wonder if anyone has had any success creating an Arc10 Add-In using IronPython. I have been able to access ArcObjects via ...
1
vote
1answer
261 views

Capturing Feature Dragging and Dropping, ArcEngine 10 .net 4

I am currently trying to implement something that captures the feature that i clicked on and dragging. Basically i want to be able to "OnMouseUp" figure out the item I was dragging, so I can do some ...
6
votes
1answer
1k views

ArcObjects C#: Create Random Points fails with ERROR 999999: Error executing function

I am having trouble running some ArcObjects C# code that calls create random points. I would not be doing this in ArcObjects, but I am suffering with the same issue using Arcpy as seen here: ...
1
vote
0answers
319 views

Argument is not a com object : null

With ArcEngine 9.3.1 in java (but I suppose, it's the same in .NET), I'm developping an application which loads a mxd file. This file contains about 20 layers with shapefile, JPG's, TIFF's files. This ...
2
votes
1answer
358 views

Using IDocumentEvents_Event from a .NET 4 assembly within ArcMap

Are there a known issues when working with events from .NET 4 COM assemblies within ArcMap? For example, when using IDocumentEvents_Event from a .NET 4 assembly in ArcObjects, the event appears to ...
7
votes
4answers
3k views

Reading GeoTiff using .NET

Is there a managed library for reading the coordinates from a geotiff file in .NET ? I know it can be done thru GDAL, but I am looking for a managed alternative.
3
votes
1answer
459 views

Null values in plugin data source

How do you appropriately setup a plugin data source to allow for null values (in .NET - C# preferred)? I'm currently setting up a field using: field.Type_2 = esriFieldType.esriFieldTypeSingle; ...
3
votes
0answers
232 views

Alternative to IMapServer2.ExportScaleBar

Does anyone know a good alternative to the IMapServer2.ExportScaleBar function? I want to do essentialy the same task, but outside the ArcGIS Server environment. For a given map scale, predefined ...
3
votes
1answer
652 views

ArcGIS Visual Studio IDE Integration Framework

i need to integrate arcgis 9.3 with visual studio c# 2008 express edition. i found the integration framework for 9.1 but no chance for 9.3 and i've seen a lot of questions on web about it. What ...
5
votes
1answer
158 views

File Browsing Dialog for Tables in Spatial Databases

I am looking for a file browsing object that allows a user to navigate into the different types of geodatabases. For example, the ability to navigate into a Spatialite/PostGIS/ESRI File ...
3
votes
1answer
665 views

Wifi Positioning System (WPS) setup

I need to develop a shopping mall GIS. I have no idea to develop it. The shopping mall GIS should function like GPS (guides user to desire shops). Do I need to set up some GIS device at each corner of ...
2
votes
0answers
309 views

How to Create Custom ZoomIn Button that is Windows Tools Button with Custom Cursor?

I want to create large zoomin Button without toolbarbutton. I created a 'Zoomin Script' on axMapContorol. It worked is fine but I can't set cursor. My code is as follows: IMapControl3 mapControl = ...
3
votes
2answers
417 views

Custom Query Task

I'm building a web application in ArcGIS Server for .net and I want to create query task for each layer so that each query depends on the previous result query task, how can I do that... please help ...
3
votes
1answer
227 views

clicking button in QueryAttributesTask by code

I need help, I have a website developed using Argis Server 9.3 and Visual Studio 2008. The map is inside the website via an iframe and it receives the input to be used in a custom query via ...
3
votes
3answers
860 views

Java or .net for gis application

I currently use python for GIS scripting in arcgis and image processing using GDAL library. Now, I want to improve my programming skills for GIS application development both for desktop as well as ...
2
votes
3answers
1k views

how to configure an arcgis server service to enable multiple editing

I'm using ArcGIS Server 9.3.1, ArcSDE, VS.NET 2008 and I'm trying to enable a service to be edited multiple times, the service its going to be public and it will be used to report emergencies and ...
2
votes
1answer
294 views

How to specify which component of a file is imported when using a PluginDataSource?

In my application a plug-in datasource has been implemented to read specifically formatted files containing a mix of data types, including geometry in the form of polygons, lines, and points. Using ...
2
votes
2answers
343 views

Is it possible to rearrange layers on the fly?

I'm involved in a project where one of the main features is that the users will have the ability to select wich layers will be available for him to view on the map, the layers then should be loaded ...
3
votes
1answer
164 views

Initiate a pop-up before accessing a .net out-of-the-box web map

I need to create a pop-up that initiates as soon as a user clicks on a web map, or accesses the link from another location. The map is an ArcGIS Server out-of-the-box .net app. It's for a disclaimer ...