C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
0answers
3 views

ArcObjects-set custom property page as default property page of line?

i am drawing a graphic line using RubberBandClass. When i double click on the line, the default property page opens. Can i replace default property page to my custom property page.? so that whenever ...
2
votes
0answers
32 views

open custom property page on double click on the drawn line ArcObjects?

I am able to open a custom property page with the mouseup event of graphic line. but when I again double click the line, it obviously opens the default property page. which i dont want. I am using ...
3
votes
1answer
15 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
44 views

Draw a rectangle with the constant depth arcobjects C#?

I want to DRAW a rectangle on a map in which length of rectangle can vary but depth of the rectangle should be equal to 900 meters. EDITED: User will just draw the length, and it should automatically ...
0
votes
0answers
8 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
12 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
25 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
20 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
0answers
18 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
20 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
18 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
16 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
37 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 ...
0
votes
0answers
58 views

Which Open Source .NET SDK to use to make Desktop application?

I have earlier asked about Using .NET Runtime SDK or .NET ArcObjects? to develop a desktop Application using C# and VS 2012. There somebody mention open-source SDK. My Desktop Application ...
1
vote
2answers
70 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
39 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
18 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
34 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
0answers
15 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
32 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
88 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
62 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
37 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
66 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
83 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
31 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
86 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
22 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
59 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
36 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
0answers
29 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
67 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
18 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 ...
0
votes
0answers
12 views

highlight polygons

iam trying to highlight the villages based on query but only one polygon is highlighting the query is based on the area of the villages, when user enters area <=********** ,it is displaying 13 ...
1
vote
1answer
56 views

Getting incorrect coordinates for ortho photo using GDAL libraries

I am very new to gis, and while most of the stuff I have is working well, this thing has me stumped. I'm using GDAL libraries and the c# wrapper to access various gis functions. I'm processing ortho ...
0
votes
0answers
17 views

ProjToCell and CellToProj method of DotSpatial in ArcGIS C# SDK

In DotSpatial there are two methods which are vary helpful to me. 1. Coordinate IRaster.CellToProj(row, column); //here Coordinate is left-top corner of the cell 2. RcIndex IRaster.ProjToCell(x,y); ...
1
vote
0answers
32 views

Need a free\open source library to calculate LOS & Viewshed using C# \ VB

I'm working in a Radio Propagation Analysis project that required to draw the Line-Of-Sight (LOS) between two radio antennas and calculating the View-shed for one radio antenna. So i need a Free\Open ...
2
votes
0answers
52 views

How do I install the GDAL bindings for C#/.NET 4.5.1?

I'm trying to use the C# gdal bindings but I get an error in my C# code which says "Unable to load DLL 'gdal_wrap': The specified module could not be found. (Exception from HRESULT: 0x8007007E)". ...
1
vote
1answer
94 views

Open Layers 3 Dynamically Add Layer from folder contents

I am new to Open Layers and have searched far and wide trying to figure out how to programmatically add layers with a default set of parameters from a selected source path, but Google has not produced ...
0
votes
0answers
28 views

What replaces SQLserver SqlGeometryBuilder, for Windows store apps?

Porting Visual Studio 2008 C# application to Visual Studio 2013, Windows 8.1 store\phone app (need to include DB with the application). What DB to use (coding in c#), to replace this code, not sure ...
0
votes
0answers
39 views

NGO library Removal

NGO library is not available anymore, thats where my question comes in, those objects at bottom in code section, mean nothing because there is no reference for them in arcobjects v10.. this is what ...
0
votes
0answers
20 views

ESRI internal process fails using data created by ESRI — suggestions?

We have a complex process where we compute the distance a boat will travel. We then take our waterway rasters, apply any blockages and delays to them, and create the FullCostArray to get the time it ...
0
votes
0answers
24 views

display thematic map using openlayers

iam displaying map from mapfile(mapserver) in c# using openlayers mapfile is connected to postgres it is working well but now i want to diaplay thematic map using the postgrs database using ...
1
vote
2answers
89 views

Creating Panning Buttons in C#

I am new to this and still trying to learn. I have a bunch of VBA code that I am trying to convert to C# and even the most basic things are hanging me up. Currently I am trying to build a button ...
1
vote
0answers
132 views

Measuring Angle of two Points from North in ArcGIS 10.3 C# SDK

What is the most reliable method to calculate angle of a line from north, defined by it’s from and to points? I used to use IMeasurementTool interface found in defense solutions namespace found in ...
1
vote
0answers
34 views

netCDF GDAL C# - time:unit?

I'm trying discover how to read the time:unit variable information information from a netCDF file and have run out of ideas. Without this info i cannot auto-magically process the files by date (which ...
2
votes
1answer
48 views

Segment matching on a polyline

I have about 1000+ running routes which I can load into memory as polylines using latitude and longitude data captured from a running watch. From these polylines I would like to be able to identify ...
0
votes
0answers
123 views

C#, SQL Server Spatial Functions: Convert Polygon's Lat Long ESRI Polygon Values?

I have a C# program which parses a .kml file and reads polygonal Shape field's data and then does sql inserts to a SQL Server database. The value of the final_coords variable in code below is: ...
0
votes
0answers
32 views

Want to Update shape file

I want to update shape file Such As 1.Column Date having Null value change it to 01/01/1901 as a default value 2.Column Address having blank records change it to Null I am trying following code ...
2
votes
2answers
82 views

ArcObjects: ExportOperationClass causing error and not exporting

I'm trying to export each row in a shapefile, but I get an error I haven't seen before (see below). I feel like it might be the labyrinth of interfaces that I have to cast between that may be causing ...