C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
0answers
9 views

What can I use instead of INgDiagram, INgNode in 10.2

Hi I am trying to upgrade this tool from 9.3 to 10.3 and the libraries that it's using are no longer available in arcobjects 10. The esri.arcgis.schematics Refrenece is no longer available, it used to ...
0
votes
0answers
17 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
9 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
1answer
37 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
41 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
17 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
34 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
27 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
24 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
66 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 ...
0
votes
0answers
5 views

How to add attribute to a graphic in a list arcgis silverlight

I have got a list of graphics: System.Collections.Generic.IList results; The graphics in this list have got 4 attributes: 'name', 'city', 'street', 'contactnumber'. Now I wanted to add an ...
0
votes
0answers
8 views

How to refresh layout view Oleframe with embedded XLSX in 10.2.1 using C#

I have a 9.3.1 mxd with 3 embedded xlsx files in the layout that I programatically refresh using oleframe.open. In 10.2.1, programatically refreshing of the xlsx docs in the ole frames is failing. ...
0
votes
1answer
38 views

How can I convert ESRI personal geodatabase (.mdb) to shapefile using OGR in C#?

I have to create a class in C# in which I would like to insert a function that converts an ESRI personal geodatabase, extracting that features it contains in shp using OGR. I looked at library ...
0
votes
0answers
21 views

Multiple ring buffer (and query) in arcgis Silverlight

How could I build a multiple ring buffer/query analysis in my silverlight project? I have a working evacuation zone analysis in my project where I can query all elements within a specified distance ...
0
votes
1answer
21 views

map file in mapserver

I am working with mapserver and c# can anybody plz explain what does these line mean function AddLayers() { var districtBase = new OpenLayers.Layer.MapServer( "District2", ...
0
votes
0answers
23 views

Displaying Google Map using MapServer, C# and PostgreSQL?

I am displaying Google Map (MapServer) by using C#. And also highlighting the districts on the Google Map using PostgreSQL data. Every thing is working well but when I use any options like zoom in, ...
1
vote
0answers
21 views

Creating baseMap switcher removing / adding ArcGISTiledMapServiceLayer WPF

I'm trying to create a baseMap switcher in WPF with c#. In older versions of ArcObjects, what we did is to load all basemap layers and set the selected basemap opacity to 1 and the others to 0, that ...
0
votes
0answers
26 views

Windows 8.1, surveysegments, system.data problem

I Have a c# project written back in 2009, trying to bring into the windows store universal app (windows 8.1 VS 2013, c#). The old project has references to Microsoft.sql.server.types ...
0
votes
0answers
21 views

Updating attribute data of a layer in MapWindow GIS plugin using C#

I'm creating a plugin to MapWindow GIS (using C#) with a map and a database. I had success in getting information from the map and showing it. But I couldn't update new data using a form coded with ...
0
votes
1answer
31 views

Reading Raster Data with ArcGIS tools in C#

I have a raster data layer as IRasterLayer and I am using C# SDK of ArcGIS. Here is the IRasterLayer. I want to access all the cells I want to edit cell values. After all i need how can i read the ...
2
votes
1answer
26 views

NZTM: Add 10 meters to a coordinate

Say I have the coordinates: N: 5413457.7 E: 1528677.3 If I were to add 10 to the northing value would that make the new coordinates point 10 meters north of the original point?
0
votes
0answers
25 views

Creating WMS Tile images on server Programatically

I am using WMS services on client side applications, OpenLeyers. I am adding Tile service for base map, WMS service for road ways, cities etc. Javascript app is creating a view of services. Can I ...
0
votes
1answer
51 views

SharpMap & BruTile library: Method not found

I'm using SharpMap 1.1 and BruTile 0.12.0 in my project. when I try to add a Tilelayer to the map the program stops with an unhandled exception of type System.MissingMethodException. ...
0
votes
2answers
63 views

ArcMap keeps crashing whilst using simple C# .NET addin

I honestly have no clue what is causing this. I want to have a message appear that tells me which layers are selected or not. Here is my code: using System; using System.Collections.Generic; using ...
0
votes
1answer
51 views

Start Editing Return Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

I'm using IEngineEditor.StartEditing method to start an edit session on SDE Workspace. My workspace is having a right value because I have no problem to get a feature class using it. I'm not sure ...
1
vote
2answers
61 views

Which version of C# should I learn for ArcObjects with .NET?

I'm wanting to pick up ArcObjects and have decided on C# over VB as my language. I know that arcpy uses python version 2.7. If I had started learning python 3.2 to learn arcpy I'm sure I would have ...
0
votes
0answers
117 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 ...
0
votes
0answers
45 views

How to Read GDB from c#

I am trying to read .gdb file using osgeo api i go for following code but cant read. suggest me. string File= @"D:\GDB File\Demo.gdb"; public IConnection OpenFDOSourceConnection(string File) ...
1
vote
0answers
27 views

featureLayer.UpdateCompleted problem?

I am trying to show a particular kind of rendering to my geometry when a user clicks on the record of a feature data grid and zooms to the selection but cant figure out as to what i am doing wrong.. ...
0
votes
0answers
30 views

ArcGIS Runtime .NET resources

Are there any books/blogs/youtube channels/websites, for beginners, that provide training for ArcGIS Runtime for .NET (C#). I know of this resource provided by ESRI (which seems quite good upon ...
0
votes
0answers
32 views

Copying Feature from shapefile to new shapefile in c#?

I am Creating new shapefile from shapefile such as (Parcels.shp to Parc.shp) and i am success to copy one feature at a time but getting error when copying multiple feature suggest me. done:copy one ...
0
votes
2answers
41 views

Adding STAThread to an ESRI Addin

I am a bit stuck at the moment, I have a c# addin, which as part of one the methods, contains SavefileDialog object. The code also contains a Timer. The steps for the user is: Click on the map ...
0
votes
0answers
46 views

Searching for features added in an edit session with QueryFilter only works when using object id or no WhereClause

I'm getting strange behaviour reading added features from a feature class while within an edit session. The feature class is in a personal geodatabase and is open in the map control in an ArcEngine ...
0
votes
1answer
16 views

Deleting an invalid inmemory layer from the Table of Contents

I am writing an ESRI addin (in c#) where in_memory layers are used. When the user opens the map document and activates the tool, the tool checks whether the in_memory layer is valid or not, and if it ...
0
votes
1answer
46 views

ArcObjects WPF Legend Toolkit Control doesn't show layers

I'm starting to develop GIS applications using ArcObjects for c# and WPF. I have to say: what a difficult disorganized and not well documented API, but that's another story. I'm trying to migrate a ...
0
votes
1answer
65 views

Track Map Events in ArcObjects Dockable-Window Addin

I'm building an Addin for ArcGIS 10.2 with c#. It is a dockable Window, that will host some controls for our custom export solution. I want to listen to Map-Move events of the main map ...
0
votes
2answers
116 views

Convert labels to Annotation addin crashes ArcMap

I am trying to write an ArcMap (10.3) Add-In in C# .NET that will convert labels to annotation. I have used a majority of the code from the relevant snippet on the ESRI resources website. When I run ...
0
votes
0answers
20 views

What is the best practice for adding a new point to an existing feature class using C#

I have a web application developed in C# (VS 10). There is no visual GIS functions in my application, however I need to let users add new locations in an existing feature class, which is available on ...
1
vote
0answers
23 views

FDO Geometry to GeoAPI Geometry [closed]

I doing a project on Shape File .I am trying to convert FDO Geometry to GeoAPI Geometry. suggest me.
0
votes
0answers
12 views

using c# arcgis zoom in / out fails after saving mxd

I saved the map to mxd with some zoom level. when i retrived the map it is not retaining the zoom level and also the zoom level is not changing even if we try to change the map boundary
1
vote
0answers
27 views

Optimize Code for Spatialdata intersection

I am working with ArcGis with c# and I Face some major issue and I do not reach why that issue is occurs. I am creating a shape file using ArcGis SDK which is created successfully. I have 500000+ ...
0
votes
0answers
80 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) { ...
-4
votes
2answers
61 views

Create Blank ShapeFile in C#

I just want to create a Blank Shape file using c#. Any one suggest me code for it.
1
vote
2answers
74 views

Casting ILayer to IFeatureLayer in ArcObjects 10.1

I'm trying to use the following code in an ArcMap extension: private IFeatureLayer getLayer(string lname) { IMap map; IFeatureLayer flayer; IEnumLayer ...
1
vote
1answer
30 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 ...
1
vote
0answers
27 views

how Npgsql.EntityFramework support Spatial data

I am using Npgsql.EntityFramework + EntityFramework6.My database is postgresql. I Added to my C# project with this tutorial : ...
4
votes
3answers
160 views

Add and remove tools from ArcMap toolbar via C# Button and ArcObjects?

OK I updated the draft with some of the suggestions but am still having some issues. I am trying to create a custom button in arcmap that when pressed will edit a toolbars content. Doing things like ...
0
votes
0answers
56 views

How to embed ArcMap graph into winforms dialog using .NET/C# and ArcObjects?

I am creating an addin for ArcMap in csharp and want to add a graph to a dialog. The native arcgis graph control doesn't seem to been available from the visual studio toolbox. I can't figure out ...
3
votes
1answer
47 views

Can I get a unique reference to a feature layer in ArcObjects?

I want to build an IDictionary with the feature layers of my TOC in ArcObjects. So I need key value pairs. The value will be an attribute of the feature layer but I am wondering what to use as key. I ...
2
votes
2answers
70 views

Get feature from list

I've done this: while (feature != null) { if ((feature.get_Value(feature.Fields.FindField("NAME")) != null) && ...