C# is a .NET programming language.

learn more… | top users | synonyms

2
votes
1answer
22 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 ...
-5
votes
0answers
13 views

How Can i read text from Console which is running from other source (Language C#) [on hold]

i have a command prompt which displaying text from other source not running from my code, i and want to read the text from the running command prompt. can anyone have any idea please help me out.
0
votes
0answers
22 views

Drawing line between two selected points in ArcMap using C#? [on hold]

I'm a beginner developer, and I'm trying to draw line between two selected points in ArcMap using c# code. How can I do this?
0
votes
0answers
11 views

User login is not required for vb front end applications? [on hold]

In My Application used VB Front-end C# is the back end language and they are saying like" user login is not required" Why user log-in is not required? how they will monitor user activities or Vb ...
0
votes
0answers
6 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 ...
4
votes
1answer
68 views
+50

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
24 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
32 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
29 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
10 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
34 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 ...
-2
votes
0answers
36 views

How to convert shape files to .dwg format using ArcObjects and C#? [duplicate]

How to convert shapefiles to .dwg format using ArcObjects and C#?
0
votes
1answer
32 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
40 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 ...
-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.
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
2answers
51 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
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 ...
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?
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
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(); ...
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 ...
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 ...
-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
0answers
21 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
35 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
39 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
25 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
24 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
33 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
25 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 ...
1
vote
1answer
42 views

Prerequisites for running Visual Studio 2012 ArcGIS desktop application exe on any machine don't have ArcGIS installed

Scenario: i created an exe application using Visual studio 2012 ArcGIS Map Control Application. When running this application on any other machine which don't have ArcGIS installed on it. Its ...
0
votes
1answer
69 views

Drawing a line and getting the length of the line C#?

I am trying to get the length of a drawn line to a textbox but its throwing an NullReferenceException at var length = f.ToShape().ToGeometry().Length;. what else should i use in the code to finish ...
2
votes
2answers
48 views

Repointing Datasource of layers using ArcObjects

I'm currently working on a ArcObjects C# project that will repoint datasources for layers of various types. Basically a database is maintained that holds the old datasource connections and the new ...
0
votes
0answers
53 views

How to draw a selectable line feature in Dot-Spatial and export its length to textbox?

I would like to draw a line in dot-spatial using mouse-move event at runtime and user can select and manupulate it. further i want to extracts its length to textbox or spatialStatusStrip. p.s i have ...
2
votes
1answer
26 views

ArcObjects 10.1 IPixelFilter (IClipFilter) not filtering for IMosaicDataset

I am attempting to extract an irregular polygon from a Mosaic Dataset using ArcObjects in C#. This sample shows how to open a mosaic dataset in ArcObjects. Referencing existing (VB) code, this snippet ...
2
votes
2answers
114 views

Run C# form when ArcMap mxd is opened

I have created a form in C# which collects data such as name, date, workspace and several other fields from the user and stores this data in a temporary .txt file to be used later by other functions. ...
0
votes
0answers
26 views

Uploading raster to ArcGIS Server dynamically

I am building an new web tool related to agriculture research, this tool is linked to another backend GIS process done in c# and ArcObjects. I want to find a way to visualize this backend output ...
0
votes
0answers
46 views

GDAL/OGR - Ogr_wrap.dll entry point not found

I am using the latest stable compiled binaries of GDAL 1.11 from gisinternals.com with a C# project in Visual Studio 2013 and im having some problems with the ...
0
votes
0answers
21 views

Label Expression From C# code silverlight

By using LabelClassCollection, LabelClass in Silverlight I m able to Show labels but when I want to get something like (Value1,value2,value3) at label it doesn't render the expression I tried ...
0
votes
0answers
21 views

What is the cheapest way to make all objects from GraphicsContainer transparent?

I am changing arcobjects 10.1 project with a lot of legacy code. I need to make all objects transparent on the map. This objects (points, different sectors, polygons, etc) are persisted in ...
1
vote
0answers
45 views

C# geoprocessing tool output file

I'm trying to use file output parameter in arcobjects geoprocessing tool which will be used as rest service on ArcGis server 10.1 IGPParameterEdit3 outParam = new GPParameterClass(); ...
0
votes
1answer
88 views

Referencing a method from a different class within an Else statement and using 2 variables with the method

I am transferring a code from a VBA module to a C# arcmap add-in. I am using ArcMap 10.2 and Visual Studio 2010. I cannot figure out how to translate what appears to be a method from a different ...
3
votes
1answer
40 views

How do I call ogr2ogr from a C# application?

I have an ogr2ogr (GDAL) command that I run to export points from a database to an XML file. ogr2ogr-f GPX c:\temp\points.gpx PG:"host=localhost port=5432 dbname=SpatialPlayground schemas=public ...
0
votes
0answers
24 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
21 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
59 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
35 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); ...