C# is a .NET programming language.

learn more… | top users | synonyms

7
votes
2answers
3k views

Deploying Application With C# GDAL/OGR Bindings

I developed a relatively simple web app that uses the C# OGR bindings to do a couple of simple geometric functions; buffer, clip...etc. I developed this application on my local machine, which has ...
8
votes
3answers
2k views

Creating floating-only (non-dockable) window in ArcMap using ArcObjects?

I'm looking for a way to create a floating window in ArcMap. To give an example just look at the window of the Identify tool. Floating means that it stays in front of the map document at all times ...
4
votes
2answers
792 views

Maturity of Mapserver mapscript C# bindings?

I've been thinking about possibly porting an internal custom GIS application built on top of Python / PyQt / Mapscript / GDAL-OGR / PostGis to C#. I was wondering about the maturity of the C# ...
2
votes
1answer
2k views

With Geographic Coordinate systems, why does my spatial query select all features from a feature layer?

Background: Add-In for ArcGIS 10 Desktop via ArcObjects for .NET The below code returns ALL features for the layer when the map is specified with any Geographic Coordinate System. However, the below ...
4
votes
3answers
555 views

Image of police car -> dynamically draw police car number

Let's say I have 10 police cars using the same image, and I want each one to be numbered 1 - 10, but the number 1 is dynamically drawn on top of the police car image. What is the class / interface I ...
3
votes
1answer
614 views

Is it possible to figure out which “Path”(PointCollection) is clicked on within a PolyLine?

I am using ArcGIS WPF's Polyline to plot several lines (PointCollections). Adding a Path(PointCollection) looks something like this. PointCollection collection = new PointCollection(); PolyLine ...
0
votes
2answers
2k views

Accessing raster dataset's attribute table? [closed]

I need to loop through the rows in the raster attribute table and add a date for each row.
1
vote
3answers
2k views

Developing ArcPad 10 forms with Visual Studio?

I have been trying to develop solutions with ArcPad 10 Studio for a while now and finding it restrictive. I would like to use the Visual Studio environment to develop ArcPad 10 solutions (form ...
8
votes
2answers
1k views

Can custom map tiles be consumed via ArcObjects within my ArcGIS 10 Desktop AddIn?

Can I programmatically consume and render custom map tiles in ArcMap via our ArcGIS 10 Desktop AddIn? The AddIn is built using the ArcObjects SDK for C#/.NET and ArcGIS 10. Pulling and rendering map ...
12
votes
12answers
8k views

Learning .NET for ArcGIS (mainly Desktop) use?

I have basic programming skills (I program simple vba python and lisp scripts and had gone through a java course a long time ago), but it seems to me (judging by ESRI publications) that there is no ...
2
votes
1answer
919 views

IElement added to IGraphicsContainer ignores zOrder

I display a balloon callout after casting a axMapControl.Map to a IActiveView and doing this: pGraphicsContainer = activeView as IGraphicsContainer; pGraphicsContainer.AddElement(pElement, zOrder); ...
1
vote
1answer
621 views

Custom Layer not drawing using ArcObjects?

I have a Customer layer which inherits BaseCustomLayer. I add it to my MapControl via addLayer but the function public override void Draw(esriDrawPhase drawPhase, IDisplay Display, ITrackCancel ...
0
votes
1answer
1k views

Use lat / long to create polyline that can be passed into DrawPolyline

public void DrawPolyline(ESRI.ArcGIS.Carto.IActiveView activeView) { if(activeView == null) return; ESRI.ArcGIS.Display.IScreenDisplay screenDisplay = activeView.ScreenDisplay; ...
5
votes
5answers
9k views

How to convert coordinates from Gauss-Krueger to Longitude/Latitude?

I'm a newbie in the GIS world so please advise me :) In my .NET/C# project I need to show some shapes/points on the Bing Map. The problem is I have the Gauss-Krueger coordinates and need to convert ...
1
vote
1answer
1k views

Convert from ITM ref to GPS ref?

How can I convert from ITM ref (Israel new map) to GPS ref and from GPS ref to ITM ref? I need any C# sample code or formula for this. For example: 32.086156,34.769239 = 178364,665948 Or : ...
5
votes
1answer
238 views

When a class in an ArcGIS extension should be an ArcGIS class

Visual Studio templates provided by the ArcGIS SDK offer a "ArcGIS Class" which is a simple C# class that has the attributes Guid, ClassInterface, and ProgId before the class declaration. While adding ...
4
votes
1answer
195 views

Is the ServerAction Method Required in a ImapServerCommandAction?

I am using an ESRI toolbar control buddied with a map control. I am using a command. Below is a simple example. My question is to clarify - having the ServerAction method is a requirement when you ...
6
votes
3answers
944 views

Server Object Extension doesn't work

I built a server object extension in C# and Visual Studio 2010, using the ESRI sample for the Spatial Query SOE as a starting point. (see the page on resources.esri.com) The SOE never displays a ...
1
vote
5answers
1k views

Store Geometry in a database with the ESRI Silverlight API

Is it possible to store geometry objects in a database using the ESRI Silverlight API? For this particular case, the client may have SQL Server 2005 installed instead of 2008 and therefore I can not ...
10
votes
1answer
979 views

Implement ArcGIS Custom Features with C#?

Is it possible to implement custom features in .NET? If so, how? I suspect the issue is being able to do COM aggregation with .NET, but I can't find anything on that ... Does anyone know if it is ...
-1
votes
1answer
2k views

ASP.NET: store class properties in session and use of session handler — is it good design? [closed]

I have a class called EditMapUtilities. Here are some class properties that I want to persist: public class EditMapUtlities { public static Boolean isInitialEditMapPageLoad { get { ...
21
votes
9answers
7k views

How can I implement ESRI REST API?

ESRI announced that they are releasing the ArcGIS REST API as open technology. I've got an ISP running Sql Server 2008 with IIS7. Does anyone know of a good walk through showing how I can write C# ...
2
votes
3answers
679 views

Verifying that ArcInfo Workstation is Installed?

What is the best way to verify that a machine has ArcInfo Workstation installed? A code sample in VBA, VB or C# would be great!
3
votes
1answer
476 views

ITopologicalOperator and Z Values

I have 2 polygon featureclasses with Polygon ZM features. I am trying to do a ITopologicalOperator.Difference() on these feature classes but it errors saying that: Geometry cannot have Z values ...
4
votes
2answers
1k views

Unable to cast COM object (IMapServer --> IMapServerObjects)

I have just deployed an AGS-based application to our web server. This app worked great in development, but after deployment to the server I got the following error: Unable to cast COM object of type ...
6
votes
2answers
1k views

MapScale not being persisted properly in mxd when programmatically changed outside of ArcMap environment

I am trying to change the scale of a map in an mxd OUTSIDE of ArcMap in a standalone Windows application. The problem is the scale is never persisted - the best code I have come up with is the ...
6
votes
4answers
18k views

Converting latitude and longitude into northing and easting?

I have the following UK postcode dy8 3xt and know that the latitude and longitude is:- 54.452772 -2.156082 I also know that the Easting, Northing for the postcode is:- 389490 283880 However ...