C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
0answers
7 views

Marker not loading correct Image

I am trying to use symboldictionary to display images as may markers on the map. But no symbol appears on the map. Any Idea? ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint = ...
0
votes
0answers
11 views

Get token expiration time From ArcGIS Online

I am using following method to sign in to ArcGIS portal and get the token public static IArcGISSingleSignon SingleSignon { get { if (_singleSignon == ...
1
vote
2answers
23 views

how to export perimeter of a drawline tool to textbox arcobjects?

I had a custom drawing tool which is available in samples of arcGIS 10.1 Sdk for .Net. When we draw a line or any perimeter on the map, and right click on the line and go to properties, it display a ...
0
votes
0answers
19 views

ESRI map is not showing my markerSymbol

I have written simple code on mouseevent and its not working. Basically no symbol is created on the map System.Windows.Point screenPoint = e.GetPosition(mainDisplay1); ...
1
vote
0answers
16 views

Is there a “SnapToLevels” property in ArcGIS Runtime SDK for .NET?

In ArcGIS Runtime SDK for WPF, I can set SnapToLevels as True, so when I zoom the map, it will snap to scale levels if the map contains cached layers. However, I can't find anything like SnapToLevels ...
0
votes
1answer
20 views

MapView in xaml

I want to create Mapview control in xaml as below but I get an error "The name Mapview does not exist in namespace http://schemas.esri.com/arcgis/client/2009" <esri:MapView x:Name="MyMapView"> ...
0
votes
0answers
18 views

Questions on raster math using ArcObjects

BACKGROUND INFORMATION: I'm using the 10.2 .NET API and what we are doing is this: I have a boat moving on the water at a cruising speed of 30 nm/hr. (and we don't care about currents affecting the ...
0
votes
0answers
15 views

read tiff to bmp in c# got only white image

i want to convert a tif image to bmp i was following tutorial in https://trac.osgeo.org/gdal/wiki/GdalOgrCsharpRaster but i dont get an image i want to see the code is : // Creating a Bitmap to ...
0
votes
1answer
36 views

Creating point using ST_GeomFromText with SQL parameters?

I'm trying to insert points using C# into a PostGIS / PostgreSQL database. I'm using the Npgsql driver. I suspect this is less a driver issue and more a syntax issue due to me being unfamiliar with ...
0
votes
0answers
56 views

Which Open Source .NET SDK to use to make Desktop application?

I have earlier asked about Using .NET Runtime SDK or .NET ArcObjects? to develop a desktop Application using C# and VS 2012. There somebody mention open-source SDK. My Desktop Application ...
1
vote
2answers
65 views

Using .NET Runtime SDK or .NET ArcObjects?

I want to build a desktop GIS application with following features in it: It can be able to read all the attributes of any digitized map It can be able to draw polygon or line With the help of that ...
0
votes
2answers
39 views

How do I programmatically access a feature's symbol property in a schematic layer?

I am building a simple app that changes the size of the symbol of the selected feature. Is this possible? Here is a simple case for a selected feature: public void onClick(){ IFeature spliceClosure ...
0
votes
0answers
17 views

Map Control Didn't Show Editing Result

I have created an application with data from SDE Geodatabase (Oracle). I've registered it as version without tick on the option to move edits to base. Anyway, in my application there is a part where ...
0
votes
0answers
29 views

SDE + arcgis engine 10.3 start editing error

i built simple application using ArcGIS engine 10.3 to edit sde layers in oracle database. but when i do click start edit button, error occured : "Unspecified error (Exception from HRESULT: 0x80004005 ...
0
votes
0answers
14 views

Converting CAD to map tiles

My team is working on an application that has a map feature, and we want to extend this feature greatly. Among other things, we want the user to be able to load a CAD drawing, and place it on the map. ...
0
votes
0answers
31 views

working with switch cases C#

I have two polygon layers in ArcMap which are on top of each other. The user selects a record in the first layer (either by using the Select tool or through the attribute table) and I show the ALPS_ID ...
-1
votes
1answer
84 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
59 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
36 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
64 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
82 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
30 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
86 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
21 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
56 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
35 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
26 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
65 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
18 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
12 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
54 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
17 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
vote
0answers
30 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
51 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
87 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 ...
0
votes
0answers
28 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
39 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
20 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
22 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
2answers
89 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
122 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
30 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
46 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
116 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
32 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
82 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
20 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
14 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
68 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
51 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 ...