C# is a .NET programming language.

learn more… | top users | synonyms

-2
votes
0answers
14 views

how can i add tiled layer on Sharpmap using postgresql? [on hold]

map = new Map(); try { //VectorLayer v = new VectorLayer("Point", new PostGIS("server=localhost;port=5433;user=postgres;pwd=9839757437;database=OSM3", ...
1
vote
1answer
10 views

Having trouble overwriting raster layers default property sheet

I need to Override the Property Sheet Dialog to display a custom property sheet that has a custom GUI built to analyse raster data based on transformed values. Alternatively, if I can access the ...
0
votes
0answers
12 views

Compare Street File to Annotation [on hold]

I am creating a mapbook using data driven pages. In the mapbook I have a street shapefile with a field for streetnames. I also have an annotation file with the street name labels. I want to make ...
2
votes
0answers
29 views

ArcMap Polyline Renders Incorrectly Unless Project Reloaded

I am trying to get a graphic polyline to render over top of an imported shape file. I'm using C# with ArcMap 10.2.2. The issue I'm having is that the first time the polyline is created, it merely ...
0
votes
1answer
31 views

arcobjects 10.3.1 c#: Loading Addins programmatically

I am writing addins in C#, and am trying to load an addin. I thought i had the solution, but it seems like the full code is not loaded. The button is added to my toolbar, and code seems to run, too ...
2
votes
1answer
19 views

Spatial relationships that do not match

All, I have 2 layers as shown below What I want to do is go through each feature (in pink) and do a spatial filter against the green layer. My current code is inMemFeatCur = ...
1
vote
1answer
27 views

Remove feature class from group layer in C#

I have a large program that pulls in various group layers and feature classes. What I am trying to do is check each feature class within a specific group layer that is empty. The count part is easy ...
0
votes
0answers
26 views

What happened to MapGuide?

I want to use a free or at least a cheap alternative to ArcGIS Server that I can develop for in .NET. MapGuide used to be such. Is it still maintained?
2
votes
1answer
51 views

NHibernate spatial geometry type become NULL - PostGis

I am using postgres/postgis as db and Nhibernate as ORM on a C# project. This is the first time I try to map postgis to a .Net application. My setup uses NHibernate version 4.0.4.4000 and ...
0
votes
0answers
38 views

GeoServer C# error no such workspace

I am trying to create a program which allows the user to upload their own shapefile into geoserver via the rest api using C#. I used the code from okello in here. However there was a missing function ...
2
votes
1answer
43 views

Putting features (IFeature) into ifeatureclass with ArcGIS Engine?

I am trying to get the selected features from axMapControl and put them in a new feature class. I can get the selected features but when i'm trying to put them in a IFeatureClass and then cast it as ...
0
votes
0answers
17 views

Querying/getting EID ( Edge id's of network ) in ArcGIS API for JavaScript?

I did a server-side(c#) network analysis and the output is the EID's(NetEid's) which needs a INETelements to query for features and Object Id's. It takes long time especially when you found many ...
1
vote
0answers
41 views

How to convert csv file into geo database file?

I have a csv file that i want to export to a file geodatabase (*.gdb) in C#. I am currently looking into GDAL ogr2ogr commands. They have a way to convert gdb file into csv file but not the ...
1
vote
0answers
32 views

Single button click to bind three javascript functions

I have created cascading dropdownlist for district taluk and villages when i click search button it must zoomed to all the three layers.but i assigned the filter value for village so that it will zoom ...
-3
votes
0answers
30 views

Npgsqlexception unhandled by user code

When am doing cascadingdropdown using ajax toolkit am getting this exception can anyone help on thisenter link description here
-1
votes
0answers
66 views

How to read .shp field values by GDAL/OGR

I was wondering if somebody could show me how to read the field values from .shp file in C# by using GDAL/ORG. Essentially this is what I need: ogrinfo C# file example by Tamas Szekeres The only ...
3
votes
0answers
37 views

How to create a Polygon around a Linestring as a GeoFence in C# .NET

I'm looking for a .net library that will help to create a polygon that I can use as a Geo-fence around a route on a map. The following image demonstrates the result I'm after. Imagine that this ...
0
votes
1answer
19 views

QGIS write polyline coordinates

I want to use QGIS to write polyline coordinates in a file. I did already successfully created .shp file. But It is hard to code(in C#) to fetch the coordinates. I need to fetch the coordinates in my ...
2
votes
1answer
52 views

Using ArcObjects to stop items from being deleted from Table of Contents?

I am using ArcObjects in a C# addin with ArcGIS 10.3.1 for Desktop. I'm trying to stop a user from removing certain layers from the Table of contents. I have my listeners setup for ...
3
votes
1answer
96 views

Can I create ArcGIS addin without ArcGIS?

If my computer has only MS Visual Studio installed but not ArcGIS, can I test and debug the addin? I know MS Visual Studio 2010 Pro can be used to create ArcGIS addin but it is not free. Can I use ...
1
vote
0answers
32 views

Dotspatial.Projections with custom Proj.4 string

I have lat,long values that I need to convert to x,y in a custom Lambert Conformal Conic projection defined as +units=m +a=6371229 +b=6371229 +x_0=0 +y_0=0 +proj=lcc +lon_0=0 +lat_2=25.0 +lat_1=25.0 ...
2
votes
2answers
60 views

Arcobjects 10.3.1: TOC listeners

I am writting an addin using ArcObjects C#. I have setup the following listeners, but they are not being hit. My code at the top of the addin.Extension class is: ... private static ...
1
vote
0answers
28 views

Line with specific angle

I've created a line by mouse click event when I click on the second point I need two lines at an angle of 28 degrees from the first line how should I do it?. IPoint point1; IPoint point2; ...
1
vote
1answer
32 views

GUID to open Geoprocessing Enviroment Settings Window through C#?

I am trying to let the user click the enviroment button at the bottom of my custom form and have the Enviroment Window Pop Up. I cannot seem to locate the Enviroment Settings Window GUID anywhere? ...
2
votes
1answer
28 views

Accessing array of values(height, intensity) associated with raster from ArcObjects without looping?

I am trying to access the array of point values(mainly height and intensity) from a raster through C# without looping through values. I am looking for a direct pointer to the array of values inside of ...
1
vote
1answer
33 views

Get FeatureDataSet of a invalid FeatureClass

I have a project that repairs broken datasources. One goal of the project is to add the datasource of a featuredataset to repair any broken feature classes. However, so far the only way I've seen to ...
0
votes
1answer
30 views

Shapefile location change repair. HResult E_FAIL

I'm working on a ArcMap plugin using ArcObjects that will change the location of a shapefile that is broken. However, I'm getting HResult Error E_Fail whenever I try opening the feataure class. This ...
0
votes
0answers
21 views

Geometry Location In Respect To Another Geometry

I am trying to figure out where a geometry is residing in respect to another geometry. My Image explains things better, I have Square nodes A, and B. and I have circle Child nodes X, and Y. I have all ...
1
vote
0answers
15 views

How to generate mapguide legend?

I'm trying to generate the legend of my mapguide map from the mapguide API but I've found any samples... Have you an idea of how to use GenerateLegendImage function on a layer and how to convert the ...
0
votes
0answers
30 views

Problem with Viewshed analysis in ArcObjects

I want to execute the Visibility Analysis Tool using ArcObjects 10.3. I tested the tool in ArcMap and it works great with the test data I provided, hence it should work as well in ArcObjects code. The ...
1
vote
1answer
24 views

IfeatureLayer.search() second time return error

I have the following method in my code and have a button that when clicked run this code. In the first click all of code runs without error. but in second run I receive an error on line: ...
1
vote
0answers
41 views

OpenStreetMap coloring the map tiles by state, zip code polygons from C# VS 2013 WPF desktop application

My question is likely to close on stackoverflow. My aim is to create a map from C# VS2013 WPF desktop application (not web application) with OpenStreetMap on win7. This a colored map with US states ...
2
votes
0answers
54 views

Creating Checkout Replica in ArcObjects (from ArcSDE geodatabse to file geodatabase)?

I'm trying to create a checkout replica of some feature classes from an ArcSDE geodatabase to a file geodatabase using ArcObjects. I'm trying to follow this: How to create a replica in a connected ...
-2
votes
1answer
51 views

Can you edit an ESRI addin outside of Visual Studio?

I would like to edit text file within an addin without going into visual studio etc and recompiling the addin. I have tried using 7-Zip and WinZip - editing the file and then saving it back - and ...
1
vote
2answers
63 views

Spatial Query between polyline features and point features within specified Buffer

I'm new to GIS (so I'm lost on this) and looking for a C# code sample to help me do 2 types of spatial queries. I have 2 Layers only. First layer is pipelines, which are polyline shapes so I can ...
0
votes
1answer
41 views

Add Layers to Arcmap 10 Crashes

Would anyone know the reason why this happens? and possibly a way to fix it. I am stumped In the following code. The first addlayer works, but crashes on the second addlayer with a 'vshost32.exe has ...
1
vote
0answers
35 views

How to Get ArcFM Session name

I need some information about session name getting. i am working on ArcMAP VBA with ArcFM database i have create some validation tools on this data. i provide error report with validation name but ...
1
vote
1answer
71 views

C# / .NET library for converting GeoJson to KML

I'm pulling in data from ArcGIS using ArcGIS.PCL which provides the geometries as GeoJson. I'd like to convert this GeoJson to KML. Does anyone know of any .NET libraries that provides this ...
0
votes
1answer
27 views

Capturing an event On Sketch Finish in ArcObjects

I am using IEditEvents_Event and IEditor. I invoked the GarciaUI_CreateNewFeatureTask and used: pID.Value = "esriEditor.SketchTool"; pCommandItem = pCommandBars.Find(pID); if (pCommandItem != null) { ...
1
vote
2answers
60 views

Unable to open IWorkspace using IWorkspaceFactory with operating system authentication

I'm trying to open a workspace from the IWorkspaceFactory interface. Here's what I'm trying at the moment: ESRI.ArcGIS.Carto.IFeatureLayer featureLayer = (ESRI.ArcGIS.Carto.IFeatureLayer)pLayer; ...
3
votes
1answer
57 views

ESRI add-in not installed automatically after build (locked-down environment)

We are using Microsoft Visual Studio 2010 to compile ESRI ArcMap 10.0 add-ins. Generally it works without problems. But we have some PC with very high security policies. For example they have (beside ...
0
votes
0answers
45 views

How to add filter to mapguide layer definition in c#

I want to add a filter to a mapguide layer programmatically in c#.net. I verify if the layersDefinition of my layer contains or not a tag "Filter" and I do the job: //Get mapguide layer definition ...
0
votes
0answers
15 views

ArcGIS AddIn to load qgis symbology

I'm looking to make an add-in for Arc so that I can load symbology created in QGIS. I'm familiar with Arc and the way symbology works in it, but I'm unsure what the best way to tackle QGIS symbology ...
2
votes
0answers
51 views

Is there a Tiny Well-Known Binary (TWKB) implementation in C#?

I am aware of https://github.com/TWKB/twkb.js and I'm looking at evaluating Tiny Well-Known Binary (TWKB) in a c# application. I did some googling but came up empty. Are there any efforts underway ...
1
vote
1answer
49 views

Error Dotspatial featureset

Writing code using C# and the DotSpatial library, with the following code: FeatureSet fs = new FeatureSet(FeatureType.Polygon); fs = FeatureSet.Open(Application.StartupPath + ...
1
vote
2answers
70 views

How to get FeatureClass or FeatureLayer from FeatureClassID?

I did a network analysis with ITraceFlowSolverGEN and the method FindFlowElements(). Then I did a queryId's with INetElements which returns the FeatureClassId and OID. Now I want to get the ...
2
votes
2answers
70 views

GeoJson to Spatial Geography in sql server 2012, fix orientation of polygon

I've download from Mapzen many geoJson files related to countries with their respective administration level. Then I've parsed all the geoJson files and saved them to my sql server 2012 as geography ...
0
votes
1answer
33 views

Get CostDistance IGeoDataset as raster in C# ArcObjects

I have a CostDistanceCode that works correctly. I cannot cast the IGeoDataset result into a raster. The last line returns a null raster. How can I resolve this? // Declare the output ...
3
votes
0answers
47 views

LasDatasetToRaster does nothing to the Raster Layer

I have been trying to figure out how to clip and rasterize a LiDAR map file programmatically (Not through arcpy) I use C# but read many languages. So far I have been able to access and assign the LASD ...
0
votes
0answers
12 views

Converting RGB values from CSV to ArcMap Save As Layer File? [duplicate]

I would like to Convert RGB values from a CSV to a ArcMAP save as a layer file. I have a csv file with 4 columns. First column shows Depth in feet and second, third, Fourth column shows that RGB ...