C# is a .NET programming language.

learn more… | top users | synonyms

2
votes
1answer
14 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
24 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
30 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
51 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
31 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
65 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
84 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
17 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
27 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
50 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 ...
1
vote
0answers
41 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 ...
2
votes
1answer
50 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 ...
1
vote
1answer
47 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
41 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
65 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
49 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
24 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
16 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
82 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 ...
0
votes
1answer
26 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
84 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
30 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
32 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
13 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
19 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
36 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
99 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
70 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
36 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
35 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
54 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
33 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 ...
0
votes
0answers
8 views

ArcObjects - IXMLPropertySet2.SaveAsFile XSL Translate Error

I'm stuck on this issue and really unsure what the problem is. I am trying to simply save the (IXMLPropertySet2)IMetadata.Metadata using the IXMLPropertySet2.SaveAsFile() method with the following ...
0
votes
1answer
41 views

After SDE Conversion, cannot open our GP Services to republish them

We have several services that were originally published against a local file-based database (with ArcMap 10.1). We spent the past week converting the data into an SDE database and we are running ...
1
vote
2answers
51 views

Conversion to SDE changes names

I could not find anything on this topic already discussed. We converted our file-based system in ESRI to an SDE instance on Sql Server. We made changes in our code to open using the connection string ...
0
votes
1answer
31 views

Creating a program for batch snapping polylines and polygons

I currently work with large sums of lines data. I am editing them using different GIS software. I've realized that I can detect node problems in arcmap10.1. I would like to know if it's possible to ...
1
vote
2answers
64 views

Add to geoprocessing environments when creating ArcGIS .net Add-in

I would like to add a new environment to the Geoprocessor Environments from an ArcMap.net Add in. I try adding the env to the GPEnvironmentManager with the following code but when ArcMap opens and I ...
0
votes
2answers
88 views

Reading file geodatabases without using ArcObjects or any other licenses

I am interested in writing C# class libraries that can read/modify file geodatabases. The issue I have with the File Geodatabase API from ESRI is that this is for commercial use, and I don't want to ...
0
votes
0answers
47 views

How to get RasterToPolygon working

We have a process that is almost working except for this one call ... This is the one tool function that is requiring a FeatureClass and I found code that I thought would work. Unfortunately all I ...
1
vote
0answers
28 views

Cannot Find GPTS Object - GDAL C#

UPDATED To clarify my previous post. I have written a small application to convert maps saved as PDF's to PNG files then tile the maps to be used in a webservice. After experimenting with the PNG ...
0
votes
0answers
32 views

How to hide features based selection using API for Silverlight?

my challenge is to, when i want to select feature on the map by the mouse the action must be zoom to the feature and all other features hidden in the same layer my application created by API for ...
0
votes
0answers
35 views

landsat with C# or Java

I have imaged data about landsat8 satellite. These are raster data, i want to process to take out the temperature of each region (geometry). I can do this in postgresql, but i don't want to store the ...
0
votes
1answer
33 views

How to resolve a 'Received NULL pointer' ArgumentOutOfRangeException for OSGeo.OGR.Geometry.TransformTo?

I am attempting to project a geometry using the GDAL c# bindings and I'm getting a ArgumentOutOfRangeException ('Received NULL pointer') exception on the Transform methods of Geometry. I'm also ...
1
vote
0answers
28 views

ToDataSet() replacement ArcGISI 10.1

I am currently upgrading 9.3 codes to 10.1. There used to be ToDataSet() function in ESRI.ArcGIS.Utility.Converter class. Class still exists in ESRI.ArcGIS.ADF, but ToDataSet function is gone. Does ...
0
votes
0answers
54 views

Adjacent Parcel in esri silverlight api

I am using the sample identify query task sl api 3.0 - I would like when selecting a parcel to select automatically the adjacent Parcel. with symbol graphic and show their attribute in a data Grid, ...
1
vote
1answer
30 views

ArcGIS 10.1 make Form onTop with C#

I have a windows form which opens with my ICommand, referenses IApplication and does some staff with it( it is not relevent ). The problem is that I want it to be onTop within ArcMap, and minimized if ...
0
votes
2answers
78 views

Reading a raster map cells values in C#?

Suppose I have a raster map file (TIFF, TGA, JNG... etc) loaded with geo-info manifested by the cells values. I need to read the values of the raster map cells "programatically" in a C# program. P.S: ...
3
votes
1answer
222 views

Convert Sql Server Spatial data to GeoJSON & plot on map

I have a sql server table with Geo spatial data. An example of row would be (with Column names): type: streetline code: 231001 geog: 0xE6100000011 ........ Centroid 0xE61000000C....... geom: ...
0
votes
1answer
74 views

Export data from .mxd file to ms sql database

I am using ArcGIS product (v.10.1). I have also tempalte of Maps from ArcGIS. But i need to get data from maps (.mxd files) to store it into MS SQL database. Explanation: I have application that has ...
1
vote
1answer
140 views

How to find nearby objects using Easting and Northing range

I have a bunch of objects which have associated Eastings and Northings in format OSGB36 for example: 265397 869562 547297 179002 If I have a starting Easting and Northing, and wanted to find ...