C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
3answers
162 views

Arcmap Refresh Button

I am working with ArcMap and C#. In the bottom left hand corner, there is a menu where you can toggle between Data view and Layout View, a Pause button, and a refresh button. I have created an Add-in ...
0
votes
0answers
8 views

How to check if lat long overlaps geometry in STRTree

I am using NTS in C#. I have loaded the created STRTree and loaded the Geometry data in in.Now i am trying to search if a given lat, long is contained in which matching geometry and return its id. ...
1
vote
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 ...
0
votes
1answer
25 views

Proper way to check if a Factory Code is Projected or Geographic

I would like to create a SpatialReference with ArcObjects, but I won't know whether it is Projected or Geographic, I'll only have the SRID. Is it fine practice to use ...
2
votes
3answers
168 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
1answer
20 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 ...
0
votes
0answers
14 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 ...
0
votes
1answer
9 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
1answer
552 views

Offline Maps API for C# Desktop Application?

I have a C# WPF application which has browser control to display a Google Map. Google Maps API v3 is being used in the application. I use data received from a service to plot users current location ...
6
votes
1answer
748 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
vote
2answers
56 views

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

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
34 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 ...
4
votes
1answer
238 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 ...
-1
votes
1answer
177 views

Which Map format for performant ArcGIS Visual C# application?

I am developing small ArcGIS Visual C# applications. I can display maps on the interface. Which map format (.jpg , .tif , .png / ArcGIS supported other map formats ) provides the best performance? ...
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
174 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 ...
2
votes
1answer
300 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
1answer
819 views

Do I need an Add-in or a Stand-Alone Application for a custom form?

The type of application I want to build for ArcMap is to be run from inside of ArcMap and on a click of a button a custom form appears in front of User in which User enters certain parameters and then ...
1
vote
2answers
971 views

Get the distance from a point on a polyline to polyline's from point

I have a polyline and a point on the polyline. I need to find the distance from the from point of the polyline to that point. ICurve.QueryPoint method does the opposite thing. It gives a point ...
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 ...
3
votes
2answers
2k views

Finding intersection points of two polyline features using ArcObjects?

I'm currently working with street intersections trying to find point(or points) where 2 given streets intersect(!disjoin). Streets are all Polyline features, and I have to work with 2 features at ...
2
votes
3answers
751 views

How to change Map Scale programmaticaly in C# WinForm Project

I have created form with axMapControl and comboBox with values of possible scales (e.g. 1:1 000 000, 1: 500 000, etc). How can I change current map scale programmaticaly by using value from ...
2
votes
1answer
207 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 ...
6
votes
2answers
2k views

Detect Table of Contents Changes in ArcMap using ArcObjects?

What is the preferred and/or most efficient method for detecting a change in the table of contents in ArcMap using ArcObjects? My current implementation relies on a dictionary with the names and ...
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
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 ...
2
votes
1answer
338 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 ...
1
vote
1answer
651 views

Custom C# tool populate field combobox parameter from layer parameter

I'm creating a custom tool for arcmap toolbox where user select FeatureLayer in one combobox, and in next combobox user can select a field from selected FeatureLayer. FeatureLayer combobox fills ...
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 ...
6
votes
1answer
490 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
2answers
414 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) { ...
2
votes
1answer
531 views

Can I use an Update cursor with a versioned feature class which has attachments in ArcObjects .NET

I have a problem with my code (C# ArcObjects 10.1). We are trying to update and insert 10 - 15 rows at a time into a feature class hosted in ArcSDE 10.1 on SQL Server 2008 R2. We have a feature class ...
2
votes
1answer
279 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 ...
1
vote
1answer
643 views

Implementing Custom Selection Tool (Adding to current selection) with ArcObjects?

I am trying to implement a custom selection tool in ArcMap 9.3.1 that is functionally similar to the default ArcMap selection tool with "Adding to current selection" enabled. ie. the user can click to ...
1
vote
1answer
341 views

Programmatically creating ArcGIS Image Service and adding it to map using C# / .NET?

How can I programmatically create ArcGIS Image Service and add that service to my MXD file programmatically? I am using C# .Net.
1
vote
1answer
34 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 ...
2
votes
4answers
7k views

Insert Geography data into SQL Server 2008

Can someone guide me to or give me an example on how would one go about insert/query Geography data in Sql Server 2008 ( Polygon with 4 points and Point in specific) using C# EF or Linq2Sql. I've ...
-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
205 views

Null reference exception was unhandled by user code error from ArcObjects and c#?

I'm new in programming . i'd like to write a simple code that can create offset from a polyline . i wrote the below code but when run the code i encounter to the error " Null reference exception was ...
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 ...
1
vote
1answer
203 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 ...
1
vote
1answer
699 views

Converting FeatureLayer to graphics using ArcObjects?

I want to convert a Map or FeatureLayer to graphics on Arcobjects 10.1, Any help or code examples Problem Solved this is the working code: private void Convert_to_graphics( IMapDocument doc) ...
0
votes
2answers
1k views

Unselecting Individual Selected Features using ArcObjects?

In my Add-In built using .NET ArcObjects/C# with Arc 10.0 I would like to be able to programmatically unselect a subset of all selected features gathered through a reference to ...
2
votes
1answer
232 views

Error in Symbol Selector Sample for ArcGIS Engine?

I am stuck at running this ArcGIS Engine Sample code, when I get: COM EXCEPTION WAS UNHANDLED BY THE USER I'm looking for any working example of Symbol Selector. I'm working on XP SP3, ArcGIS ...
3
votes
1answer
203 views

Getting Annotation selection using ArcObjects?

I have annotations stored in mxd document, when I select some annotation, I tried to get the selection through graphics selection, so I always get the rectangle of the dataframe (because I'm working ...
2
votes
1answer
78 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 ...
2
votes
1answer
147 views

How to output ActiveView to JPEG image using ArcObjects?

I have an ArcGIS Desktop extension and I need to extract images from the map. How can I programmatically output the active view to a jpeg image?
0
votes
0answers
67 views

hDC of DynamicDisplay is always zero

When I try to access the hDC of my dynamic layer the result is always 0. Is there a way to get a non zero hDC from a layer that inherits BaseDynamicLayer? public class BalloonCalloutLayer : ...