C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
1answer
264 views

Coordinate transformation/reprojection using DotSpatial

need some help. The following piece og code worked with an older version of DotSpatial. public static Geometry Project_EPSG25832_To_EPSG3857(byte[] wkb, int SRID) { ...
5
votes
0answers
186 views

Is it possible to add a command to the ArcMap Find dialog context menu?

I think I already know the answer to this... which is "no", but I wrote this up so I'll ask anyways. Is it possible using ArcObjects to extend/customize the ArcMap Find tool/dialog by adding a ...
0
votes
0answers
4 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 ...
3
votes
1answer
1k views

Feature Layer is not showing the points on the map

I have a simple feature layer. The points will show up if I put the URL in a DynamicMapServiceLayer, but I need to use maptips, so that will not work. Below is my relevant XAML. <esri:Map ...
2
votes
1answer
286 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
1answer
249 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 ...
2
votes
0answers
14 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
7 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 ...
3
votes
1answer
23 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
36 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
30 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 ...
1
vote
2answers
72 views

Releasing features from a recycling feature cursor

I have a recycling feature cursor that is used to fetch a single row. Is it my responsibility to release that returned feature, or will it be cleaned up by the cursor as it would be if I consumed the ...
0
votes
0answers
27 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
8 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 ...
1
vote
4answers
2k views

Zoom to selected features with ArcObjects

I am trying to figure out what is the best way to set the active view extent to be able to view all the selected features on the Arc Map. 1.The Map has only one layer. 2.The features are filtered ...
-2
votes
0answers
36 views
0
votes
2answers
2k 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 ...
3
votes
0answers
31 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 ...
-1
votes
1answer
20 views

ReadRaster() C# [closed]

I am new with GDAL in c#. Can some body help me to uderstand the method band.ReadRaster(). I need to know wich one is the return in C# and as well some documentation about what it means each ...
1
vote
1answer
174 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 ...
2
votes
1answer
63 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?
8
votes
0answers
239 views

ArcObjects running in Addin slower?

I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
4
votes
1answer
231 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
31 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 ...
-1
votes
0answers
28 views

How to execute a ModelBuilder through C# (ArcObjects) [duplicate]

How to execute ModelBuilder(By parameters) (Arcgis 10.1) through C# (VS2010) Could you please help me in details I'm still beginner in doing this kind of liaisons.
3
votes
1answer
39 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 a opened layer with this code ...
0
votes
1answer
165 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 ...
1
vote
2answers
2k views

Merging separate features into single feature in shapefile programmatically?

I have a shapefile in which some features shares same values for all the attributes. I can merge them manually by going into edit session and, selecting features to be merged, and then using merge ...
2
votes
1answer
70 views

Using thread lock when implementing Enabled void in ArcGIS Command?

I've noticed that that ArcGis Commands are activated asynchronously. So I supposed that there is a chance to corrupt memory without using thread locks when overriding Enabled void of custom ArcGIS ...
0
votes
0answers
14 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
1answer
280 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 ...
2
votes
2answers
51 views

How to get current application culture using ArcObjects? [on hold]

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 ...
1
vote
1answer
23 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
1answer
40 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 ...
0
votes
0answers
19 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 ...
4
votes
4answers
2k views

Convert Sql Server Spatial data to GeoJSON & plot on map

I have a sql server table with Geo spatial data. An example of row would be (with Column names): type: streetline code: 231001 geog: 0xE6100000011 ........ Centroid 0xE61000000C....... geom: ...
5
votes
4answers
13k views

Convert latitude and longitude into northings and eastings

Hi I have the following UK postcode dy8 3xt and know that the latitude and longitude is:- 54.452772 -2.156082 I also know that the Eastings, Northings for the postcode is:- 389490 283880 ...
1
vote
1answer
181 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 ...
1
vote
0answers
16 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(); ...
4
votes
1answer
454 views

Programmatically export to geotiff in different scales from ArcGIS Desktop?

I would like to programatically export geotiff files in different scales (e.g. 1:25000, 1:50000 etc) using arcgis10. As input I have some shape files and a DEM file as well as a corresponding style. ...
0
votes
1answer
775 views

How to make points with label info in ArcGIS API for Silverlight?

I'm a new user of the Arcgis for Silverlight SDK. Using c#, I would like to add points with labels showing the id for point. How can I do this?
6
votes
1answer
462 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
20 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 ...
2
votes
1answer
213 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 ...
6
votes
1answer
687 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.
-1
votes
1answer
58 views

Executing ModelBuilder using C# classes?

How can I execute ModelBuilder in ArcMap 10.1 using .NET 2013 C# classes?
0
votes
1answer
48 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 ...
1
vote
1answer
45 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 ...
5
votes
1answer
825 views

Select By Location in ArcGIS using C#?

I am creating a tool which the user will select point or line features from the map and it will display their names in a list then after clicking on any of these features from the list, it will show ...
0
votes
0answers
20 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. ...