C# is a .NET programming language.

learn more… | top users | synonyms

1
vote
3answers
563 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!
0
votes
0answers
12 views

NGO library Removal

I have read on esri's website that the NGO library was removed in the 10.x upgrade.. currently I am updgrading a project that's using the NGO library and I am trying to upgrade it to 10.3.. the NGO ...
4
votes
1answer
353 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 ...
5
votes
1answer
416 views

GDAL.RasterizeLayer not ported to the C# bindings?

I am trying to use the OSGeo.GDAL.Gdal.RasterizeLayer(…) from GDAL 1.9.2 and it requires some SWIGTYPE parameters: OSGeo.GDAL.Gdal.RasterizeLayer( OSGeo.GDAL.Dataset dataset, int bands, ...
0
votes
0answers
10 views

What can I use instead of INgDiagram, INgNode in 10.2

Hi I am trying to upgrade this tool from 9.3 to 10.3 and the libraries that it's using are no longer available in arcobjects 10. The esri.arcgis.schematics Refrenece is no longer available, it used to ...
5
votes
2answers
517 views

Is it possible to modify the ArcObjects IProgressDialog2?

It turns out that the best way to run long tasks in ArcMap is to use the IProgressDialog2. The BackgroundWorker in combination with ArcObjects (STA Threads) is a mess. However, it seems that the only ...
6
votes
1answer
526 views

How to read Geotiff tags and pixel per pixel values using GDAL C#

I'm new here and I'm new at programing with GDAL C#. My question is how I can get the value of SRTM GEOTIFF pixel to compare with it's neighbors, and how can I get the values of Geotiff tags.
0
votes
0answers
17 views

ESRI internal process fails using data created by ESRI — suggestions?

We have a complex process where we compute the distance a boat will travel. We then take our waterway rasters, apply any blockages and delays to them, and create the FullCostArray to get the time it ...
0
votes
0answers
10 views

display thematic map using openlayers

iam displaying map from mapfile(mapserver) in c# using openlayers mapfile is connected to postgres it is working well but now i want to diaplay thematic map using the postgrs database using ...
1
vote
1answer
37 views

Creating Panning Buttons in C#

I am new to this and still trying to learn. I have a bunch of VBA code that I am trying to convert to C# and even the most basic things are hanging me up. Currently I am trying to build a button ...
1
vote
1answer
87 views

How to serialize IStyleGallery Object? [duplicate]

Possible Duplicate: Can I store an ArcObject inside a BLOB or XML field? I am saving shape file in database and now i want the symbology selected for the feature layer also get stored in ...
1
vote
0answers
42 views

Measuring Angle of two Points from North in ArcGIS 10.3 C# SDK

What is the most reliable method to calculate angle of a line from north, defined by it’s from and to points? I used to use IMeasurementTool interface found in defense solutions namespace found in ...
2
votes
1answer
34 views

Segment matching on a polyline

I have about 1000+ running routes which I can load into memory as polylines using latitude and longitude data captured from a running watch. From these polylines I would like to be able to identify ...
1
vote
1answer
125 views

C#/.Net Library that can draw a line across the date line

I want to be have an embedded map in my application that can handle drawing lines across the date line. I have tried out dotspatial and sharpmap and neither have been able to handle this. Edit: Here ...
0
votes
0answers
30 views

ArcGIS Runtime .NET resources

Are there any books/blogs/youtube channels/websites, for beginners, that provide training for ArcGIS Runtime for .NET (C#). I know of this resource provided by ESRI (which seems quite good upon ...
1
vote
0answers
17 views

netCDF GDAL C# - time:unit?

I'm trying discover how to read the time:unit variable information information from a netCDF file and have run out of ideas. Without this info i cannot auto-magically process the files by date (which ...
0
votes
1answer
149 views

Create FeatureClass in Personal Geodatabase and store data

I have to create a new featureClass in my existing personal GeoDatabase. And save some polylines into this featureClass. How can i do it? I need c# code to do this. Edit: I have a problem during ...
0
votes
2answers
300 views

Get points along a polyline at defined distance c#

I need to store into my array the points along the polyline at each defined distance. Example: The Polyline length is 50m, I set the interval to 5m. I have to store in the array all the points along ...
2
votes
1answer
157 views

How to calculate which zip code is closer to which in USA using C#?

I'm not living in USA, and I'm doing a small project for a company based in USA. The point is that, there are businesses and each of them have their address and zip code. Then, I have a form where ...
2
votes
2answers
66 views

ArcObjects: ExportOperationClass causing error and not exporting

I'm trying to export each row in a shapefile, but I get an error I haven't seen before (see below). I feel like it might be the labyrinth of interfaces that I have to cast between that may be causing ...
0
votes
1answer
344 views

How to update/delete data from a datagridview?

I wanna be able to update/delete data from a datagridview, and when I do that of course the data in my PostgreSQL database should be edited too. So I've thought about giving the user the ability to ...
2
votes
1answer
166 views

Read DGN file in java or c#

I'm looking solution to read DGN file in java or c# without any success. Gdal makes many problem and doesn't support all element eg. complex element. Does anyone know of a library that supports the ...
0
votes
0answers
27 views

C#, SQL Server Spatial Functions: Convert Polygon's Lat Long ESRI Polygon Values?

I have a C# program which parses a .kml file and reads polygonal Shape field's data and then does sql inserts to a SQL Server database. The value of the final_coords variable in code below is: ...
0
votes
0answers
24 views

Want to Update shape file

I want to update shape file Such As 1.Column Date having Null value change it to 01/01/1901 as a default value 2.Column Address having blank records change it to Null I am trying following code ...
0
votes
2answers
337 views

ArcGIS 10 IGPFunction2 and IGPFunctionFactory Implementation

I'm creating a custom ArcToolbox tool in C# .NET in ArcGIS 10 SP2. Though I seem to be having two issues which maybe related: Firstly, my tool is run as a background task i.e. the GP dialog does not ...
2
votes
1answer
140 views

How do I use code (preferably c#) to clip all points within a shapefile that are not contained within a polygon?

So the task is simple: I want to take a point shapefile as input and remove all of the points that are not contained within a polygon. I'm using DotSpatial to do this, but the catch is that there are ...
0
votes
1answer
586 views

Geoserver with Openlayer map showing problem

I have a Geoserver runnning at 8888 port and url is http://localhost:8888/geoserver. I can browse any layer created by my custom data. ...
0
votes
0answers
38 views

How to convert points shapefile with a designed attribute containing Z values to a 3D shapefile

I need to write C# program which would convert points shapefile with a designed attribute containing Z values to a 3D shapefile. Any suggestions how to do it?
11
votes
12answers
7k 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
2answers
289 views

BaseCommand never show up in “Customize Toolbar Items”

I am developing in c# using ArcGIS Engine 10. I created a BaseCommand class ZoomCommandTest using BaseCommand template in Visual Studio 2010 using .Net Framework 3.5 Following is the ZoomCommandTest ...
1
vote
0answers
21 views

Creating baseMap switcher removing / adding ArcGISTiledMapServiceLayer WPF

I'm trying to create a baseMap switcher in WPF with c#. In older versions of ArcObjects, what we did is to load all basemap layers and set the selected basemap opacity to 1 and the others to 0, that ...
0
votes
0answers
5 views

How to add attribute to a graphic in a list arcgis silverlight

I have got a list of graphics: System.Collections.Generic.IList results; The graphics in this list have got 4 attributes: 'name', 'city', 'street', 'contactnumber'. Now I wanted to add an ...
4
votes
3answers
160 views

Add and remove tools from ArcMap toolbar via C# Button and ArcObjects?

OK I updated the draft with some of the suggestions but am still having some issues. I am trying to create a custom button in arcmap that when pressed will edit a toolbars content. Doing things like ...
13
votes
8answers
4k views

ArcObjects Resources

What are the best books/web sites for C# development with ArcObjects? The ArcGIS Resource Center is very helpful, but I am trying to find sources with more examples. Thanks
0
votes
1answer
21 views

map file in mapserver

I am working with mapserver and c# can anybody plz explain what does these line mean function AddLayers() { var districtBase = new OpenLayers.Layer.MapServer( "District2", ...
0
votes
1answer
38 views

How can I convert ESRI personal geodatabase (.mdb) to shapefile using OGR in C#?

I have to create a class in C# in which I would like to insert a function that converts an ESRI personal geodatabase, extracting that features it contains in shp using OGR. I looked at library ...
0
votes
0answers
8 views

How to refresh layout view Oleframe with embedded XLSX in 10.2.1 using C#

I have a 9.3.1 mxd with 3 embedded xlsx files in the layout that I programatically refresh using oleframe.open. In 10.2.1, programatically refreshing of the xlsx docs in the ole frames is failing. ...
0
votes
0answers
21 views

Multiple ring buffer (and query) in arcgis Silverlight

How could I build a multiple ring buffer/query analysis in my silverlight project? I have a working evacuation zone analysis in my project where I can query all elements within a specified distance ...
0
votes
0answers
23 views

Displaying Google Map using MapServer, C# and PostgreSQL?

I am displaying Google Map (MapServer) by using C#. And also highlighting the districts on the Google Map using PostgreSQL data. Every thing is working well but when I use any options like zoom in, ...
4
votes
3answers
516 views

ArcObjects: How to measure the draw time of a layer in ArcMap?

I'd like to quantitatively measure the display performance of mosaic datasets, image service layers, raster layers, feature layers, etc. in ArcMap 10. How can I measure the draw time of a particular ...
3
votes
1answer
489 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; ...
0
votes
2answers
1k views

How to use Sharpmap to display spatial data from MS SQL Server 2008

Can anyone show me a step by step example on how to use Sharpmap to display MS SQL server spatial data using C# as the programming language? Please note I have exploit some of the example online but ...
2
votes
1answer
205 views

Can I update the service on ArcGis Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
0
votes
0answers
26 views

Windows 8.1, surveysegments, system.data problem

I Have a c# project written back in 2009, trying to bring into the windows store universal app (windows 8.1 VS 2013, c#). The old project has references to Microsoft.sql.server.types ...
0
votes
1answer
31 views

Reading Raster Data with ArcGIS tools in C#

I have a raster data layer as IRasterLayer and I am using C# SDK of ArcGIS. Here is the IRasterLayer. I want to access all the cells I want to edit cell values. After all i need how can i read the ...
0
votes
0answers
21 views

Updating attribute data of a layer in MapWindow GIS plugin using C#

I'm creating a plugin to MapWindow GIS (using C#) with a map and a database. I had success in getting information from the map and showing it. But I couldn't update new data using a form coded with ...
2
votes
1answer
27 views

NZTM: Add 10 meters to a coordinate

Say I have the coordinates: N: 5413457.7 E: 1528677.3 If I were to add 10 to the northing value would that make the new coordinates point 10 meters north of the original point?
4
votes
1answer
203 views

Call ArcGIS Server Buffer command without using SOM

All, I wanted to see what the best way was of calling the geometry service to carry out a Buffer operation on ArcGIS Server 10, without using the SOM. Ideally I want to consume the REST API, using a ...
0
votes
1answer
51 views

Start Editing Return Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

I'm using IEngineEditor.StartEditing method to start an edit session on SDE Workspace. My workspace is having a right value because I have no problem to get a feature class using it. I'm not sure ...
0
votes
0answers
25 views

Creating WMS Tile images on server Programatically

I am using WMS services on client side applications, OpenLeyers. I am adding Tile service for base map, WMS service for road ways, cities etc. Javascript app is creating a view of services. Can I ...