C# is a .NET programming language.

learn more… | top users | synonyms

1
vote
2answers
225 views

How to load layers from postgis to dotspatial or sharemap viewer

I want to develop a PostGIS viewer for PostgreSQL (with SQL query editor) to visualize PostGIS layers. Which spatial library (.net C# supported) do I have to use?
0
votes
0answers
159 views

Export From PGDB to ArcSde Using C#

I need help exporting a personal geodatabase Feature Class to an ArcSDE geodatabase using C# ArcObjects with ArcGIS 9.3. I just want to replicate the tool Feature Class to Feature Class ...
0
votes
1answer
99 views

How can i generate parcel extracts on demand through a webservice

Ok, i need to generate parcel extract documents on demand. The backend is Arcgis 9.3.1 on SQL server 2008. I would like to build a webservice (C# .Net) on the server that generates these extracts. My ...
1
vote
0answers
306 views

Source code for interpolation using a known set of random points in an area of land

In a fixed area of land random points with their values are generated. I need to get a heat map for this area of land showing the variations using those known point values. I have found that mostly ...
1
vote
0answers
45 views

Problem in VersionEdit4.Reconcile4 method

I had an standalone application in which i am getting all the available versions in the database. Based on user filter he selects multiple versions and reconcile it. if ...
0
votes
0answers
49 views

How to check a polyline is self intersecting [duplicate]

How to check weather a single polyline is self intersecting to itself. using arcobject C#
0
votes
0answers
134 views

MapInfo 11.5 - Zoom in Legends

Good afternoon ! With MapInfo v 11.5, we can use the zoom feature in a thematic map legend, so that it plays along with the map zoom (Release Notes: "The zoom feature uses a paper-based scale, so ...
0
votes
1answer
415 views

How to learn ArcObjects (.NET, C#) for desktop applications but having only Arcmap desktop license?

How can I learn .NET and C# for desktop applications having only a desktop license? I want to upgrade myself in the development side so I'm trying to learn this stuff and I'm searching all the ...
4
votes
2answers
413 views

What is needed to develop an ArcGIS application? (C#?)

I am trying to fully understand the genius that is ArcGIS. I want to develop a piece of software that uses the engine. This application needs to import user data (GeoTIFF, etc) and allow users to put ...
2
votes
2answers
978 views

get valules for all fields from selected features

The following code works for retrieving values within a particular field(Name1), but I want to retrieve mulitple fields. Am I to create multiple variables for each field? IMxDocument pMxDocument = ...
2
votes
1answer
96 views

arcgis graph vs .net graph

I am trying to show some elevation/cross section data in a graph. I am trying to do this in arcgis graphs. But because of my previous graph work was in .net, I found arcobjects.net API for graphing is ...
2
votes
2answers
247 views

Creating an ArcMap Extension

As ArcGIS 10 doesn't really support the full COM, I am looking at creating an extension. I am looking for samples to look through, to familiarise myself with them, but cannot find any. Any ...
2
votes
1answer
521 views

Why does copy convert my Tiff raster value range?

Recently I have worked with some raster dataset. And I found there are different kind of raster dataset. Till now I have worked with grid type raster dataset and my add-in works fine with this type. ...
0
votes
1answer
161 views

How to add an existing feature class to a new feature dataset

I have a feature class. IFeatureClass AOIfc = AOIfws.OpenFeatureClass("BrigadeAOI"); I need to be able to put this feature class into a feature dataset that is newly created. The following line of ...
3
votes
0answers
211 views

How to add individual layer of WMS group layer to ArcMap?

I am attempting to add a single WMS layer that is part of a WMS service group layer. I am writing code to do this using ArcObjects in C# .Net. So far I have been unsuccessful. I can either only add ...
2
votes
1answer
143 views

Is there any way to reset feature cursor?

When we search within a feature class, it returns a feature cursor. To get features from a feature cursor, I use following code snippet: private List<IFeature> GetFeatureList(IFeatureCursor ...
1
vote
1answer
351 views

Loading an extension-related mxd in ArcMap by double clicking it

I am currently working in a company offering GIS solutions, and using ArcGIS tools on a daily basis. One of their main products is an ArcMap extension, which I am assigned on to correct some remaining ...
1
vote
0answers
173 views

Can't order/sort String columns in ArcMap attribute table

I am new to this site as a registered user and new to GIS in general, and it has proven quite useful to me. I have a very annoying problem with the attribute table being filled by an ArcMap ...
3
votes
2answers
334 views

How to run a custom Geoprocessing tool using no parameters?

I created a custom geoprocessing tool called "CreateCoverLayer". It has no input or output parameters. I have the following snippet of code, but get an error message due to the fact that the Execute ...
0
votes
1answer
86 views

Comparing ShapeFile Data in C# [closed]

I have made a List containing all the original data (.shp files), and I have another List containing the modified data. I basically want to check all the modified file data against the original... So ...
3
votes
1answer
87 views

How can I hide a tool from command window under category

I have created a tool, a button and a dockable window under one project. To open/close the dockable window, button is used. For some specific work, by clicking some specific button from dockable ...
1
vote
3answers
1k views

Searching for c# code to convert from UTM to WGS1984 (and back)

I'm looking for code in c# that converts coordinates from UTM to WGS1984 (and preferably backwards as well). I need to convert coordinates from only one zone (36N). I've found this and this, but they ...
3
votes
0answers
95 views

drawing line from points [duplicate]

I have a series of XY coordinates. I want to use these points to draw a line in ARCMAP using arcobject10.1 using c#. I have saved this in a table inside geodatabase.Am i supposed to create a feature ...
1
vote
1answer
112 views

Getting started with development for ArcGIS Server

I'm currently working on upgrading a C# web service I wrote a couple of years ago built against ArcGIS Server to ArcGIS Server 10. The application in question does some basic spatial queries and ...
0
votes
1answer
121 views

Is snapping working when changing from NAD83(decimal degree) to NAD83 Zone UTM 11N(meters)?

I've used the following ESRI snippet to Convert the display extents in Pixels (at the current map scale) and then return out the map units. public System.Double ...
2
votes
0answers
328 views

How to start developing with Jeppesen C-MAP?

I've just downloaded all the contents from the FTP of Jeppesen for their product called C-MAP CM93. I've been reading the documentation contained in the SDK folders, but I can't figure out how to ...
0
votes
1answer
164 views

How to specify field name in raster to feature conversion tool or intersect tool?

What I want to do : input: raster file, polygon feature layer process: Convert raster to polygon using IConversionOp.RasterDataToPolygonFeatureData Method Intersect resultant polygon feature class ...
0
votes
1answer
223 views

How do I initialize the ArcGIS proxy via server side .NET code (C#)?

I know how to do this via JavaScript code: esri.config.defaults.io.proxyUrl = "../proxy.ashx"; But, how do I do this in .NET? I am very new to the GIS space.
1
vote
1answer
497 views

How to get polyline out of multipart feature using ArcObjects C#

I've got a polyline feature class and I've identified the first feature that is a multipart feature. I now want to find out which of the paths of this multipart feature intersects with a point. Up ...
2
votes
1answer
65 views

xy tolerance from c#.net

For some graph work, I need the value of X,y tolerance. I found ISpatialReferenceTolerance.XYTolerance Property. But I couldn't find any option that how can I get ISpatialReferenceTolerance interface ...
0
votes
1answer
475 views

How do I exclude raster layers from legend? (Silverlight, ArcGIS Server)

I'm trying to adjust my Print Widget so that raster layers do not show up in the legend. My thinking was that I could test for a layer type and not add the item to the legend if it is a raster. ...
1
vote
1answer
257 views

ArcObjects IDataset.Copy causes program to crash

My implementation of IDataset.Copy continues to crash and I cannot figure out why. The program attempts to copy a shapefile from a temporary folder in one directory to a final folder in another ...
3
votes
1answer
45 views

Does IDistanceOP.EucDistanceFull require a projected coordinate system?

I have designed an implementation of ArcObjects' IDistanceOP.EucDistanceFull. It takes its input as a feature class and converts it to a GeoDataset with which EucDistanceFull can work with. It works ...
0
votes
0answers
158 views

A procedure imported by 'Esri.FileGDBAPI.DLL' could not be loaded

I'm having issues getting my Esri.FileGDBAPI.DLL to work. I have the other two files, FileGDBAPI.dll, FileGDBAPID.dll in my bin folder. I can only add the Esri dll to my references, the other two I ...
2
votes
2answers
543 views

How to Zoom and Pan using scroll wheel in ArcObjects?

is there any way to zoom using scroll wheel ? i have tried AutoMouseWheel of map control, it works well for the first used custom tool, but once i change the tool, it stops working , i would like to ...
3
votes
1answer
223 views

Getting “Failed to open tool” message when trying to run geoprocessing tool from C# code

I've been experimenting with the Military Aspects of Terrain Template, which has a toolbox associated with it. I've been using the following WPF Runtime code, which should open a tool in the ...
0
votes
1answer
176 views

What should I start with WebGis Mapserver?

I'm not native English Speaker and I'm a graduated student who want to have a master degree in software engineering. I have a thesis relative with "Build a WebGis for air pollution in Vietnam's ...
1
vote
0answers
159 views

How to get hold of the Activated Event for the ArcMap window?

I am using ArcObjects 9.3 .NET. In my ArcMap dockable window, I have a single element host hosting a WPF user control (That's the only means of using WPF for ArcMap extensions as far as I know). ...
2
votes
1answer
78 views

How to extend a custom NASolver in ArcGIS Server 10.1?

The past year we developed a custom NASolver with C# , it works fine and that job has finished. Now we are planning to use it from ArcGIS Server. The problem is that we have no information for that. ...
1
vote
0answers
83 views

What are the standards to implement scale bar?

I am working on .osm data files, and now i want to implement scale bar for available data. logically i have created the scale pixel is to geo location. I want to know whether there is any standard to ...
1
vote
1answer
230 views

FeatureDataGrid and FeatureDataForm will not commit to database or input data

This is the second time that I have posted about this. In my previous question they told me I needed to enable the Feature Access capability. I did this and then it said I needed to have a Data Store ...
2
votes
2answers
225 views

How to use shortcuts in dockable windows?

I have developed a custom dockable window with textboxes, comboboxes and buttons for use in ArcMap. After the user clicks on a button in the dockable window a function is invoked. How can I invoke the ...
2
votes
1answer
144 views

Arcgis 10.0 desktop: how to clear All transformations from map

I have a custom extension which adds some custom transformations to the map. When turned off, the extension is supposed to remove all the added transformations. However, when calling ...
1
vote
1answer
137 views

What is the preferable value for setting tolerance for selecting a feature

I know it's really a basic question. But I am really confused about this. For selecting a point feature by mouse click, we need to set a tolerance value to create the envelope. And here is the problem ...
3
votes
1answer
286 views

Set unique values to different groups programmatically

I have a polyline feature layer. After doing some computation, I update a field of that layer and want to set unique color for different value of that field. We can do this from symbology using unique ...
1
vote
1answer
301 views

How to create dynamic sub-menu in ArcMap?

I created a static menu contains 3 static items like in this link create menus, I want to add a sub-menu and get the menu's items from database like in this image: I already did the left part with ...
6
votes
2answers
625 views

ESRI ArcMap Add-in Config.esriaddinx

I'm in the process of converting an older ArcMap extension to an Add-In in C# and I am trying to best take advantage of the XML based configuration. Config.esriaddinx works great for the basic set up ...
2
votes
0answers
200 views

Geodesic distance between two polygons in ArcGIS

Does the IGeometryServer2 interface work in desktop applications? My solution is an Add-in for ArcGIS 10. I'm currently passing it two valid polygon features that are in a projected coordinate system. ...
1
vote
1answer
233 views

Problem in splitting and removing Polyline

I am stuck at a problem for weeks, Please Help!!! I am making program in C# Here is what I need to do --- I have two polylines that are intersecting with each other at some points. I want to delete ...
2
votes
1answer
123 views

How to write table blob field to file using ArcObjects?

I have a table with blob field and some others as well. I am trying to read blob field and save it to file using IBlobStream, and the thing compiles. The problem comes up in run-time, when calling ...