C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
0answers
104 views

Scrollbars not visible in InfoWindow

I am having problems getting the scrollbars to show in my InfoWindow. Code is below. Any help would be appreciated. XAML: <DataTemplate x:Key="MyFeatureLayerInfoWindowTemplate"> ...
2
votes
1answer
204 views

Using more than one graphics layer with a FeatureDataGrid

I am wanting to use the FeatureDataGrid to display data. The problem is I have more than one layer that contains data that needs to be displayed. This is how you use the DataGrid for one layer: ...
3
votes
1answer
102 views

How to get any changes happened in the current SDE version?

How to get any change done on the map in the current version of sde. using arcObjects e.g. if i had a line on the map. and in the current sde version i changed the length of that line. how to get this ...
1
vote
1answer
226 views

Getting SRID from prj file? [duplicate]

I've seen varying questions relating to this question. Except mine revolves around C#. I'm trying to validate that the projection I'm expecting matches what is in all the .shp files I'm reading. ...
5
votes
2answers
322 views

Near analysis with mixed feature types in ArcObjects

I am trying to emulate the Near (analysis) ArcGIS tool in ArcObjects. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000001q000000 I want to use Mixed Feature Types. I have a ...
0
votes
0answers
83 views

How to get The character spacing from a ITextElement arcgis engine 9.3 C#

i have a problem.I can set character spacing to a IElement as ITexElement like : TextSymbolClass pTextSymbol = new TextSymbolClass(); pTextSymbol.CharacterSpacing = 10 ; //etc ...
0
votes
2answers
543 views

ArcObjects - accessing layer data table from C#

I've spent all day yesterday trying to trace all my the errors but I'm just completely stuck now. Google isn't helpful either. I'm trying to create a small C# tool which opens my MXD file in ...
2
votes
1answer
102 views

Slope tool error when running from arcObject add-in tool

My problem is related with Global DEM to Slope calculation. The slope tool works when raster is projected or the map is projected where the raster is added. And also, if the raster and map both are ...
1
vote
2answers
234 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
162 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
101 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
312 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
135 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
422 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
437 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
1k 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
100 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
261 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
537 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
169 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
221 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
151 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
365 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
178 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
351 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
88 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
123 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
335 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
170 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
237 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
514 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
488 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
268 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
160 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
556 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
230 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
181 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
167 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
80 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
86 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
234 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 ...
3
votes
2answers
233 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 ...