C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
0answers
12 views

How to create points on for Stations?

I have a set of coordinates for 6 stations. I will need to place a image on the specific coordinate and change the image based on my own data in real time. How can I create a layer to geoexplorer ...
1
vote
2answers
55 views

How do I generate an image of each polygon in a shape file? [on hold]

I have shapefiles containing areas (states, counties, bodies of water, etc.) and need to generate an image (png / jpg) of each area. How can I do this? In my mind, the manual workflow would be: ...
2
votes
1answer
33 views

Standalone program can see license

I used standart license initialization code in C# standalone program. It was working perfectly on 10.1 and 10.2. But after migrating to 10.3 it says Licenses are not available. Meanwhile ArcMap and ...
1
vote
0answers
14 views

Writing and reading arcs using File Geodatabase API .NET library?

It looks like the File Geodatabase API has supported arcs since 1.2. But no samples have been included for the C or .NET library. Does anyone have any code that shows how to do this using the .NET ...
0
votes
1answer
8 views

C# ogrinfo with virtual vector source doesn't work GDAL 1.10

I am trying to use GDAL 1.10 with a vector virtual source which is nothing more than the example union of two shapefile layers. from the commandline, ogrinfo works fine on the source. But the C# ...
0
votes
0answers
46 views

Buffering a polyline

I'm attemping to buffer a polyline that the user has drawn on a map (Google maps and OSM map). The user specifies a distance in metres and a polygon should be drawn around the polyline representing ...
0
votes
0answers
14 views

Upload Map to ArcGIS Online and convert to KML

Looking to upload any number of map types from a web application and then have ArcGIS online convert them to KML and then send them back the application. If the map can't be converted, give the user ...
0
votes
1answer
23 views

Using AddDataDialog in standalone ArcObjects/C# application?

I need some help with showing an "AddDataDialog" in a C# standalone application to select some feature classes from inside a file-geodatabase. Whatever I try, it ends up with an Exception which makes ...
1
vote
1answer
33 views

Map matching a stream of GPS points to possible bus routes & C# map matcher

I have streams of GPS points that are transmitted from a device aboard a bus in real time. I would like to use these points to infer which route the bus is following. I have routes stored as GPS point ...
-3
votes
0answers
26 views

Implementing C# identify tool in toolbar using ArcGIS Engine?

Has anybody implemented "Identify Tool" in Toolbar control using C# (visual studio 2013) and ArcGIS Engine 10.1?
0
votes
1answer
19 views

ArcGIS Runtime SDK for .NET (Windows Phone) - ArcGISLocalTiledLayer Issue

I'm developing Windows Phone 8.1 client for our company ArcGIS maps. Online layers works fine, but I need to deliver offline maps (Map Tile Package - .tpk file) to users with bad connectivity. My ...
3
votes
0answers
49 views

Setting Field in ArcMap Symbology Properties using ArcObjects?

I am programmatically rendering a feature layer in ArcMap but I can't set the Field property in the Symbology properties form. This results in the layer having the correct render/breaks/legend ...
0
votes
0answers
22 views

How to select object on the map in pan mode?

The user moves on the map (pan mode). The he clicks right mouse button. I want to select the element and then display context menu. What is the way to select element on the map in pan mode? I use ...
2
votes
1answer
70 views

Executing async method inside relaycommand using ArcGIS Pro SDK and MVVM?

I'm developing a "search tool" dockpane in the ArcGIS Pro SDK using MVVM. I have a button on my dockpane hooked up to a relaycommand in my viewmodel, which trys to call an async method in my model to ...
0
votes
0answers
22 views

Unable to get property 'parse' of undefined or null reference error in building Windows Forum Application in C# by Visual Studio 2010

I am trying to build a Windows Forum Application that will uses to download and display some layer in the Geoserver. But every time that I run the app I will see an error(image). Can anybody help me ...
0
votes
1answer
44 views

Failed to run Local Geoprocessing tool in ESRI runtime sdk

I have created a gpk using the below python script in ArcGIS 10.3.When trying to consume as Local geoprocessing service in 10.2.5,I get below errors. The application is running using developer ...
0
votes
0answers
36 views

Mouse Double Click Events

I would like to display a Message Box Dialog when the user activates the -esri selection tool- and double clicks anywhere on the map. or when they doubleclick any feature on the map please note that ...
0
votes
0answers
22 views

Find line where the beginning or end of line touches a polygon with minimal radius

I need to check, If a point from a beginning or an end of a line is nearby a polygon. The target is to check, whether the line is nearly connected to a polygon. The data are coming from a shapefile. ...
2
votes
1answer
57 views

DotSpatial problems with reprojecting shape files

I have a shape file with this projection: ...
0
votes
0answers
21 views

Running ModelBuilder through .NET does not always created expected geodatabase?

This code is the run a ModelBuilder through C# .NET this ModelBuilder works to convert a (.dwg) autocad file to a geodatabase but the problem is sometimes it works perfect but other times it doesn't ...
0
votes
0answers
47 views

Referencing ESRI feature class in C#

I would like to reference an existing feature in C# web app. I have a web app written in C# that front-ends a SQL Server database. The app uses non-spatial data in general but some of the objects ...
2
votes
1answer
46 views

convert ordnance survey easting and northing data to WGS84 latitude longitude values

The C# code published here is not very accurate as also mentioned by tanoshimi. I think this has to do with the lack of 'approximate Helmurt transformation'. Just curious is anyone aware of some ...
2
votes
0answers
67 views

Loading Raster with SharpMap (GDAL) doesnt work

i have problems loading rasterfiles (.tiff) with SharpMap I tried initializing a SharpMap GDAL Layer but nothing happens. It doesnt even throw and error when debugging after i set a path for the file ...
0
votes
0answers
8 views

Mouse events on ArcGisRuntime 10.2.5

I am upgrading my application from 10.2.3 to 10.2.5 In 10.2.3 you could add mouse events of MouseLeftButtonDown, MouseMove, MouseLeftButtonUp and MouseRightButtonUp on ...
7
votes
1answer
119 views

Adding new map to current project using ArcGIS Pro .NET SDK?

The new ArcGIS Pro SDK for .NET is currently in beta for ArcGIS Pro 1.1, and I'm having trouble with map/project objects. I can add layers to an existing map, but I can't seem to figure out how to ...
0
votes
0answers
12 views

C# library for navigation computations

I am interested in a library for C# that provides computations common in the area of SAT navigation, such as coordinate system conversion (e.g. ECEF to NED), Line-of-sight computations of power ...
4
votes
1answer
68 views

Get the value/description from a domain or subtype for a given field's value?

I need to get a value from an IObject.Fields.Field using ArcObjects 10.x using the criteria listed below: If the field has a subtype associated with it, I need to get the subtype name/description ...
-1
votes
1answer
52 views

Trying to execute ModelBuilder through C#?

I have a problem when trying to execute a model builder through C# the application throws: an error has occurred error hresult e_fail has been returned from a call to a COM component Note : ...
2
votes
2answers
63 views

Changing the transparency of a raster layer with ArcObjects

I'm trying to do some simple things with the .net framework and ArcObjects, but have little experience with this type of development. I would like to iterate through the layers in a map document and ...
0
votes
0answers
44 views

how to find the polyline direction in SOE

I create routing route between A -> B -> c using SOE(Using C#). From here A - Origin, C - Destination and B - Intermediate terminal It's digitized route direction is A -> B and C -> B. When i ...
0
votes
0answers
13 views

How do I get a return value when calling GPSBabel from C#

I have some C# code that calls a GPSBabel command line to convert a NMEA file to a GPX file. The code works and the conversion happens. The problem is, how do I get a return value indicating success ...
3
votes
0answers
102 views

C# implementation of concave hull / alpha shapes

I'm looking for a C# implementation of the Concave hull (alpha shapes) algorithm. I already found several Java, Python and C++ implementation but no C# version. The other implementation are quite ...
0
votes
1answer
43 views

How to change field length with ArcObject?

I want to change some string field in sdegeodatabse with bellow code. The code are running without any problem. but after running, filed length return to default length. What am i missing? static ...
3
votes
1answer
51 views

What is the C# Arcobject I must use in order to set programatically the SQL Query of an LYR file?

I would like to change programatically the SQL Query of a LYR file. I'm developping in C# using ArcObject. Actually I'm able to get an instance of IWorkspaceFactory from an opened layer with this ...
0
votes
0answers
15 views

LayerToKml no clamped to ground

How do I change the kmz new file to be clamped to ground? I have this code in the picture: That works just fine but when I "fetch" it to the Google plug-in it's not "clamped to ground". I need ...
2
votes
2answers
60 views

How to get current application culture using ArcObjects? [closed]

Without looking at the registry, is there a way to get the current application culture in C#? I have a Add-in and want to get the language from the ArcMap hook using ArcObjects 10. (I'm using C# to ...
0
votes
0answers
23 views

feature class cannot be displayed on a map

I'm running ArcGIS server 10 on windows 7 machine. I'm trying to develop a web application using Silverlight and c# in Visual Studio, but when I execute the application in the browser, there is only a ...
2
votes
1answer
73 views

Delaying load of ArcMap Addin extension?

For configuration reasons, I want to delay the load of my addin extension until ArcMap 10.2 has finished. If there a property, flag, listener etc I can get a hook to do a check if arcmap is done?
1
vote
1answer
28 views

ArcObjects ExcelWorkspaceFactory Won't Release Excel File

I'm working with ArcObjects to set up a batch import from xls and csv files into a geodatabase. That part works fine, but after the import, I want to delete the file. This, however, doesn't work, ...
1
vote
0answers
25 views

Telerik ajax RadMap

I am using telerik RadMap with client side binding in the OnInitialize client event. Copied from the examples: function OnInitialize(sender, args) { var originalOptions = args.get_options(); ...
0
votes
0answers
28 views

the text box to wrap using a rectangle format

I'm looking for a way I could format the text box to wrap using a rectangle format. Could I call it in the getFormattedstring? // Format the legend text if it is not a heading. If it is, we're ...
1
vote
1answer
57 views

Encoding SLD files

I am creating a SLD file and uploading it though the REST API using C#. This SLD file contains some danish characters, but the end result turns out bad. For a test I save the xml file to disk before ...
-1
votes
1answer
75 views

Executing ModelBuilder using C# classes?

How can I execute ModelBuilder in ArcMap 10.1 using .NET 2013 C# classes?
0
votes
0answers
33 views

draw coloured LINESTRING over map [.NET (C#) if possible]

I need to render linestring on the map (possibly OSM map) where each pixel (or at least segment) has assigned custom color. In my linestring, each point defining the line has also color definition. ...
1
vote
1answer
45 views

arcgis C#: restrict addin to mxd file only

I have an addin toolbar (arcmap 10.3 in C#) for a certain type of analysis for our clients. We want to restrict the availability of the addin to a mxd file. We do not want other COM or Addins to be ...
2
votes
1answer
53 views

Arcgis SDK C#: Addin running code on arcmap startup

I know that the addins are 'lazy loading', but I want to initialize some variables on startup of arcmap. This would be loading user preference data for the workflow we have in place, updating the FC ...
1
vote
0answers
29 views

C# Custom Dockable window: grouping them together

I'm adding in some custom windows for our clients. I want to group my dock windows together on load. The end result would look like they are tabbed (from the bottom). I have the following code to my ...
0
votes
0answers
34 views

How to select by location c# Select cities of a country

I have two layers a countries layer and a points layer. I want to make two combo boxes. In the first one i want to load all the names of the countries and when i select the country i want the second ...
0
votes
0answers
40 views

EpaNet2.dll gives 305 error code from arcmap addin application

I have an input file(.inp) of EpaNet project. I want to use this .inp file to run the project with the help of epanet2.dll from my arcmap addin button. In EPANET project , there is a portion that is ...
0
votes
0answers
36 views

EPANet dll integration in ArcMap Addin not working?

I am unable to get EPANet dll function running from my ArcMap Addin (C#.NetAPI). The same source for dll's function calling is working in an independent console application but when I do the same ...