C# is a .NET programming language.

learn more… | top users | synonyms

0
votes
0answers
2 views

Esri Shape file to Rectangle Overlay/ Intersect Test

I have Esri Shape-file and a repository of images that have corner Lat/Long points. I want to search that images who overlaps/intersects to Esri shape-file. Here is the scenario that I am doing, ...
-3
votes
1answer
33 views

Tutorial for c# and ArcObjects?

I am new to the ArcGIS. Can any one please refer a beginners tutorial for this tool. Referred the help, but couldn't able to get the basics to kick start.
3
votes
2answers
30 views

Selecting features by location based on selected feature using ArcObjects?

I am very new to ArcGIS and ArcObjects. I am writing a code for a button that will detect a selected feature and then select other features based on the feature that I had selected please take a look ...
1
vote
0answers
7 views

How to open an output set that is a list of double values in a geoprocessing service

we are trying to reduce the amount of data we are returning from the server by eliminating returning a polyline and instead returning a collection of values of type GPDouble. When the transaction is ...
1
vote
1answer
31 views

A library to edit geometry in C#

For my windows application, I am looking for a method to edit vertexes and geometry of features that are stored in a SQL Server database. I just want a simple function for dividing polygons into 3 ...
1
vote
0answers
31 views

Converting MDB File With Unicode Characters

I'm using C# wrapper of GDAL and I'm having a problem converting MDB file that contains unicode characters. Lets take for example conversion to KML file, non-English characters are replaced by '?' ...
1
vote
1answer
33 views

How to add an IFeature to the Map and zoom to it ?

I have an ITable i cast it to an IFeatureLayerDefinition after casting it to an ILayer then to an IFeatureLayer, then i used my IFeatureLayerDefinition to get only one IFeature using the ...
0
votes
3answers
36 views

Adding Field To feature class using ArcObjects and C#?

I want to add a new field to my featureclass.My code for that is: public IMxDocument mxDoc; public IMap map; IFieldEdit2 field = new FieldClass() as IFieldEdit2; ...
1
vote
1answer
19 views

Placing a cost raster in Arcmap Table of Contents in 10.2.2

We have a set of routines that have been used for writing rasters to the ArcMap table of contents from our tools. The code that always worked is this: /// <summary> /// Used for ...
0
votes
0answers
16 views

unique value rendering in C# code behind

I have the following code in my xml file where i specify the uniquevalue rendering as shown below: ` <FeatureLayerExtension> <WhereString> (ZONE ='A)' or (ZONE ='V') ...
1
vote
2answers
35 views

Is there any efficient way to create a raster with pixel value representing a unique id calculated based on pixel lat/lon?

I have 10m raster for each state in US. Current pixel value represents something. I want to have 'same' raster but pixel size representing a unique id calculated based on pixel lat and lon. I am ...
1
vote
1answer
25 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 ...
2
votes
1answer
91 views

Accessing File Geodatabase to convert to shapefiles using ArcObjects?

The end result of what I'm trying to do is convert a FGDB into a folder of shapefiles. To do this, I need access to all the data I'd expect to see in a shapefile. Once I get all the information I need ...
0
votes
0answers
40 views

C# geometry hex decoder

When i am storing in the database things like: Point(90 90). I get back 010100000000000000008056400000000000805640 which is a hex encoding of the geometric type. Does anyone know a library for c# ...
3
votes
1answer
21 views

extract vertices from dbgeometry value

Who knows the elegant way to extract coordinates of polygon vertices from well known text representation of DbGeometry value? Here's my polygon for example: {POLYGON ((52.808019 -1.345367, ...
1
vote
0answers
28 views

ZoomTo is not working

I have a graphics layer. When the user selects an address from our software I want the map to ZoomTo that address. This works, but the user has to have an interaction for the map first. I thought this ...
4
votes
2answers
168 views

get map tiles for a polygon

Based on this tutorial, I can easily find out a tile for a point. But is there an algorithm to find all tiles that are covered by a rectangle or lineString or by any other feature? I would greatly ...
2
votes
1answer
66 views

Is there any way to fast read pixel value using gdal in C#

I create with C# a series of lat/lon value pair in the code(using i, j loop) and I want to extract the pixel value based on either lat/lon pair or pixel location (i, j). I know there is one gdal ...
2
votes
1answer
28 views

Access CommandItems programmatically with ArcObjects in ArcGIS Engine application

I'd like to programmatically execute a command in my ArcGIS Engine application with ArcObjects. I know in Desktop I would do it like this: ESRI.ArcGIS.Framework.ICommandBars commandBars = ...
0
votes
0answers
34 views

How connect C# to Postgresql in host j.layershift.co.uk

I have installed postgresql database in http://postgres-project-1241043.j.layershift.co.uk/ host. I want to connect to the database using C#. I use Npgsql with following connection string. ...
2
votes
0answers
72 views

Editing Feature Class using ArcObjects

I have a problem with editing feature class using arc Objects.Indeed I am working on it for a while and cant find any solution into doing it..I asked a question before about how to connect to database ...
2
votes
1answer
90 views

Image classification using google satellite images

Currently our expert user classifies locations by viewing the Google earth satellite image of a location. They consider circular areas of a 5km radius at a set zoom level. They evaluate the image for ...
2
votes
1answer
44 views

How do I use code (preferably c#) to clip all points within a shapefile that are not contained within a polygon?

So the task is simple: I want to take a point shapefile as input and remove all of the points that are not contained within a polygon. I'm using DotSpatial to do this, but the catch is that there are ...
0
votes
0answers
116 views

Converting VB code to C# for coverting Polyline to polygon

It is a while that I am stuck at converting polylines to polygon and I couldent find any solutions into it.I have tried some diffrent methods like using ...
0
votes
2answers
122 views

Convert polyline to polygon Using ArcObjects

I have a polyline and I want to convert it to a single polygon feature,I used this code but I get error while I can convert the same shape file using feature to polygon on ArcGIS Where is my mistake? ...
0
votes
0answers
28 views

Offset WGS84 linestring based on pixel values

I would like to split up some roads based on their driving direction. For this, I need to offset the roads 2 pixels to the right, in the direction of the linestring. I have the coordinates in WGS84 ...
0
votes
0answers
32 views

Georeferencing Tools in ArcGIS Engine 10.1

I'm new with ArcGIS or even GIS it self. My question might be a newbie question but I need help on building a Georeferencing tool set like the one in available ArcMap. I found that it is not available ...
2
votes
1answer
56 views

C# - Access content from ArcGIS Online

I have got an existing .NET C# desktop application which already reads various GIS formats. I would now like to add support to read data from ArcGIS Online. What options have I got to access ...
2
votes
0answers
64 views

Performance issue with SQLite + Spatialite + C#

I am having a performance issue with SQLite database (.db) which extends to SPATIALITE I am trying to update Geometry of 1,00,000 records in database (.db) which taking around 50 minutes. Too much ...
3
votes
1answer
58 views

What are some GIS outlets for my open source MapBasic utility module and library?

I'm actively developing a MapBasic module that provides additional MBX programming functionality by wrapping .NET 4.0 and Win32 API calls in easy to use MapBasic functions and subs. MB_Utils acts as ...
2
votes
1answer
52 views

Is Nearest not Near enough?

So we have factories, bridges, boat launches and stations that are on our map by latitude and longitude data fed to us from Homeland Security. In a good number of these situations an attack can come ...
1
vote
1answer
56 views

How to get a Layer as ILayer (ArcObjects)

I had asked this question previously which I think will work. But as I am new to this, I can't figure out how to get a Layer as an ILayer object to pass to the method that's in my previous questions ...
0
votes
1answer
76 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 ...
0
votes
1answer
87 views

How to update/delete data from a datagridview?

I wanna be able to update/delete data from a datagridview, and when I do that of course the data in my PostgreSQL database should be edited too. So I've thought about giving the user the ability to ...
0
votes
0answers
40 views

Zoom to selected feature reducing MapFramesize using ArcGIS Engine and C#?

I am trying use the the following code for zooming to a selected feature using ArcEngine 10.2.1 and c#. It is performing, but it is reducing the Mapframe to the feature size. Which was not happening ...
0
votes
0answers
28 views

How to tell “Publish Service Definition”-Task to publish into a folder?

I'm currently working on publishing a SD-File using C#. Through another Question (Is it possible to publish a map service from an SD File purely over REST (no arcpy)?) I had a look on the source code ...
0
votes
2answers
119 views

How to Create shapefile using Geometry field

I am working on ArcObject. I want to create shape file using arcObject. I am very close to it. but need some better alternative as i feel my solution may fall short in time when there are lakhs of ...
-1
votes
1answer
35 views

Trying to use Near to relocate points to the waterways

We are trying to relocate elements that are near the water but not quite on the water and relocation them to the nearest point. I'm trying to build the parameters to use the Near tool ...
1
vote
2answers
96 views

Ring to Polygon

I want to get an exterior ring from a polygon. I need to itopologicaloperator.intersect a line with the polygon (exterior ring) to read attributes from the line. I have the original Polygon I can get ...
0
votes
1answer
36 views

Query WMS GetFeatureInfo with known latitude and longitude

My issue is that normally, when you want to query a WMS layer, you need to pass width & height of a map, and x,y (in pixels) which describe a point on the map where user clicked. I want to do ...
0
votes
0answers
41 views

Convert from gps coordinates to EPSG:32640

I need to convert latitude and longitude witch i get from gps to EPSG:32640 (in C#). What is best and fastest method for that? Thanx
0
votes
1answer
17 views

How can one get the value of the point where the AxMapControl is centered at?

I am using the AxMapControl to display a map and I want to record a point where I am and want to be able to return to the same point later on using the CenterAt() method.
0
votes
0answers
21 views

Its possible to use a c# webmethod with a openLayers.Protocol.HTTP?

Hi Im trying to use c# as a backend of a layer: var layerVehicles = new OpenLayers.Layer.Vector("Dispositivos", { strategies: [new OpenLayers.Strategy.Fixed(), new ...
0
votes
1answer
42 views

ITableWindow2 does not show all records

I have to develop an extension in C# for ArcMap 10.2 and I need to show information from a datatable in an a table window. I can show the table without problems, but I have a problem I can´t resolve. ...
1
vote
2answers
177 views

Shapefile to GeoJson conversion using C#

I have some shapefile which I want to convert to GeoJSON and store in MongoDB for querying. Is it possible to take a shapefile and convert it to GeoJSON format in C#? I have been able to convert ...
0
votes
1answer
98 views

Get points along a polyline at defined distance c#

I need to store into my array the points along the polyline at each defined distance. Example: The Polyline length is 50m, I set the interval to 5m. I have to store in the array all the points along ...
0
votes
0answers
44 views

Generating XML to create a file geodatabase table from an existing shapefile DBF

I am writing a C# .NET application to convert a folder of shapefiles into a file geodatabase. Basic Info Windows 7 64 bit VS 2010 - Application is being run as 64 bit. Version 1.3 of the File ...
2
votes
1answer
43 views

What is the correct way to pass a polygon to a geoprocessing service successfully

We have a geoprocessing service that has been in limbo for 6 months. Finally after a great decision to eliminate one element of the service, we got it working this week. I am now at the point where ...
1
vote
0answers
60 views

Can a custom add-in execute code upon install of the .esriaddin [closed]

I have made a custom add-in using C#.NET(a toolbar that contains buttons) and I was wondering if it is possible to have some code execute upon the install of the .esriaddin file. Basically I want to ...
0
votes
0answers
39 views

“General function failure.” creating Table with ESRI File Geodatabase API

What I'm trying to do: I am creating a C# .NET application for my organization to convert a folder full of shapefiles into a file geodatabase system. What do I have?: My application reads the folder ...