C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
1answer
18 views

Executing ModelBuilder using C# classes?

How can I execute ModelBuilder in ArcMap 10.1 using .NET 2013 C# classes?
0
votes
0answers
6 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
25 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
28 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
20 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
6 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
16 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
12 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
30 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
0answers
61 views

Is there any algorithm or library can generate alternative path?

I want to generate alternative path for the plane to avoid colliding with the polygons (red area) using C or PHP or Nodejs etc in Linux. Currently, I have developed a Web page to display the flight ...
0
votes
1answer
29 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
43 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
17 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
20 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
82 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
23 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
32 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
14 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
20 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
37 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
87 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
25 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
20 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
18 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
43 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
30 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
1answer
37 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
32 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
23 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
37 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
47 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 ...
2
votes
2answers
97 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
42 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
21 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
57 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
1answer
40 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
39 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
102 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
79 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
68 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
92 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
102 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
39 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
100 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
37 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
82 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
44 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
1answer
42 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
95 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
31 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 ...