C# is a .NET programming language.

learn more… | top users | synonyms

-1
votes
1answer
62 views

Populating a combobox with names of fields in a feature class

I have to dynamically populate a ComboBox in an add-in tool for ArcObjects using C# with the names of the fields containing text data in the feature class. I know I have to obtain the names from the ...
-1
votes
1answer
35 views

How to create a relationship class between a feature layer and a standalone table

I need to create a join between a shapefile and a table that have been added to the map, the issue seems to be with the memRelFact.Open("Table-Layer", (IObjectClass)fromTable, ...
0
votes
0answers
8 views

Learning MapServer Tutorial for C# mapscript (ASP.NET)?

I am learning the MapServer Tutorial for C# mapscript (ASP.NET). Could you tell me how to let the map show on the webpage? I mean how to trough transforming the value between the mapstream.aspx to ...
1
vote
1answer
43 views

Deleting a standalone table from the TOC— C# ArcObjects

I'm looking to delete a standalone table that has been added to the arcmap document from an access database. I only want to delete it from the TOC, not from the file and I can't seem to get it to ...
0
votes
3answers
68 views

How to remove a feature class or table from the TOC? C#

This seems like a really simple process or snippet of code but the only thing I can find is the ClearLayers() method to clear all of the layers from the TOC. Basically what I want to achieve is to ...
1
vote
1answer
29 views

How to display radius while adding element in ArcObject?

I want to display the radius of drawing circle when user adds this figure on the map. User clicks on the icon. Then user begins drawing circle (I process the MouseDown event) IGeometry geom = ...
2
votes
1answer
75 views

How to convert an XY Event Layer to a Shapefile?

The question is as follows: Using C# code, convert the XYEvent layer to a shapefile. Add the created shapefile to the map. I can NOT find out how to do this for the life of me. Any help/links would be ...
0
votes
1answer
13 views

'Find your nearest' type function with a large dataset

In a previous employment, I needed to display a "Distance to stockist" on our website. It would get your current co-ordinates (from a postcode or HTML5 geolocate) and then display a list of nearby ...
1
vote
1answer
44 views

GDAL GetGeoTransform returning lat/lng instead of affine co-ordinates

I'm using the GDAL libraries via the c# wrapper and have hit a problem when using geotiff's where the co-ordinates are from a state plane zone. Previously I was having trouble getting the correct ...
0
votes
1answer
26 views

Use C# to display PostGIS data in ArcGIS Developer kit with arcgis-ogr plugin

I am trying to display data in ArcGIS Runtime Engine Developer kit 10.2.2 using OGRPlugin/OGRPlugin/ develop by Ragi Yaser Burhum on https://github.com/RBURHUM/arcgis-ogr . I am using this format but ...
0
votes
0answers
21 views

C# GIS Bing Maps

I'm developing an application in C# and I want to show my data on map like Bing maps, so what is the best the best way to do that. I have seen SharpMap but I could not load Bing map to it. please ...
0
votes
1answer
47 views

Getting map using C# code in ArcMap?

I have been programming in C# a small code for:1) create a polyline Featureclass in a GDB, 2)put that in the map view (ArcMap 10.2) and finally 3) edit that feature using a button or tool... Well I ...
1
vote
1answer
9 views

Trouble compiling ArcObjects Server Object Extension project into .SOE file

I'm writing a Server Object Extension(SOE) in Visual Studio 2012 using C# in Windows 7. I'm using the REST Template that comes packaged with ArcObjects 10.2. I'm able to build the program without ...
0
votes
0answers
11 views

highlight polygons

iam trying to highlight the villages based on query but only one polygon is highlighting the query is based on the area of the villages, when user enters area <=********** ,it is displaying 13 ...
1
vote
1answer
47 views

Getting incorrect coordinates for ortho photo using GDAL libraries

I am very new to gis, and while most of the stuff I have is working well, this thing has me stumped. I'm using GDAL libraries and the c# wrapper to access various gis functions. I'm processing ortho ...
0
votes
0answers
13 views

ProjToCell and CellToProj method of DotSpatial in ArcGIS C# SDK

In DotSpatial there are two methods which are vary helpful to me. 1. Coordinate IRaster.CellToProj(row, column); //here Coordinate is left-top corner of the cell 2. RcIndex IRaster.ProjToCell(x,y); ...
-1
votes
0answers
4 views

SDF spatial index error. how to resolve this error

I am trying to update Parcels.sdf such as adding new Date column. it done partially after that getting error "SDF spatial index error. "
1
vote
0answers
24 views

Need a free\open source library to calculate LOS & Viewshed using C# \ VB

I'm working in a Radio Propagation Analysis project that required to draw the Line-Of-Sight (LOS) between two radio antennas and calculating the View-shed for one radio antenna. So i need a Free\Open ...
2
votes
0answers
38 views

How do I install the GDAL bindings for C#/.NET 4.5.1?

I'm trying to use the C# gdal bindings but I get an error in my C# code which says "Unable to load DLL 'gdal_wrap': The specified module could not be found. (Exception from HRESULT: 0x8007007E)". ...
1
vote
1answer
65 views

Open Layers 3 Dynamically Add Layer from folder contents

I am new to Open Layers and have searched far and wide trying to figure out how to programmatically add layers with a default set of parameters from a selected source path, but Google has not produced ...
-1
votes
0answers
50 views

Choosing Open Source GIS solution to embed into bespoke windows application?

What is a good opensource GIS solution to embed into a bespoke windows application created using .NET (C#)? I have considered MapWindow and SharpMap. Are there any other free opensource solutions ...
0
votes
0answers
25 views

What replaces SQLserver SqlGeometryBuilder, for Windows store apps?

Porting Visual Studio 2008 C# application to Visual Studio 2013, Windows 8.1 store\phone app (need to include DB with the application). What DB to use (coding in c#), to replace this code, not sure ...
0
votes
0answers
37 views

NGO library Removal

NGO library is not available anymore, thats where my question comes in, those objects at bottom in code section, mean nothing because there is no reference for them in arcobjects v10.. this is what ...
0
votes
0answers
18 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
17 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
73 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
0answers
97 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 ...
1
vote
0answers
27 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 ...
2
votes
1answer
42 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 ...
0
votes
0answers
92 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
31 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 ...
2
votes
2answers
69 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
13 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 ...
0
votes
0answers
10 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
1answer
58 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 ...
1
vote
0answers
34 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
1answer
23 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
0answers
37 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, ...
1
vote
0answers
28 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
31 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 ...
0
votes
1answer
39 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 ...
2
votes
1answer
36 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?
0
votes
0answers
33 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 ...
0
votes
1answer
72 views

SharpMap & BruTile library: Method not found

I'm using SharpMap 1.1 and BruTile 0.12.0 in my project. when I try to add a Tilelayer to the map the program stops with an unhandled exception of type System.MissingMethodException. ...
0
votes
2answers
69 views

ArcMap keeps crashing whilst using simple C# .NET addin

I honestly have no clue what is causing this. I want to have a message appear that tells me which layers are selected or not. Here is my code: using System; using System.Collections.Generic; using ...
0
votes
1answer
94 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 ...
1
vote
2answers
64 views

Which version of C# should I learn for ArcObjects with .NET?

I'm wanting to pick up ArcObjects and have decided on C# over VB as my language. I know that arcpy uses python version 2.7. If I had started learning python 3.2 to learn arcpy I'm sure I would have ...
0
votes
0answers
194 views

Offline Maps API for C# Desktop Application?

I have a C# WPF application which has browser control to display a Google Map. Google Maps API v3 is being used in the application. I use data received from a service to plot users current location ...
0
votes
0answers
57 views

How to Read GDB from c#

I am trying to read .gdb file using osgeo api i go for following code but cant read. suggest me. string File= @"D:\GDB File\Demo.gdb"; public IConnection OpenFDOSourceConnection(string File) ...
1
vote
0answers
33 views

featureLayer.UpdateCompleted problem?

I am trying to show a particular kind of rendering to my geometry when a user clicks on the record of a feature data grid and zooms to the selection but cant figure out as to what i am doing wrong.. ...