A framework, developed by Microsoft, that compiles any of several COM-based programming languages into machine-executable language.

learn more… | top users | synonyms

1
vote
2answers
138 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 ...
1
vote
0answers
221 views

Creating own map and using it in offline WPF Application? [closed]

I need to create my parcel's map, I got high resolution photo from the sky and i want to georeference it and add few features like routes and buildings. Then I need to use it in WPF applicion where I ...
2
votes
3answers
161 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
14 views

How to create tiles from c# code

I need to create tiles directly from c# code. The input file is in *.tif format. Is there a way to do this simply? I tried GDAL, but I found it complicated, I don't understand how to cut tiff into ...
1
vote
1answer
287 views

Using M 'Measure' value in SQL Server 2008

MS Sql Server 2008 geometry type supports adding Z and M values to geometry objects, including linestrings. However, I cannot find any way to make use of these values, since methods such as ...
1
vote
0answers
71 views

Transformation from local projection to WGS84

I'd like to reproject point that is in local coordinate system to the WGS84, using gdal. But exception "No PROJ.4 translation for source SRS, coordinate transformation initialization has failed" ...
6
votes
1answer
959 views

Deserializing GP Result JSON?

The value part of a GP Result can be any type of GP object (or literal). Does anyone know of a general way to deserialize this, preferably with either WCF or Json.NET? I'd prefer not to have to ...
3
votes
2answers
427 views

ArcObjects IFeatureConstruction::PlanarizeLinesFromCursor error

I wrote a little tool in ArcObjects/C# for planarizing a line feature class. I am using IFeatureConstruction::PlanarizeLinesFromCursor because I need to apply a query filter. Now, I figured out a bug: ...
0
votes
2answers
30 views

Converting SpatialLite.Core.API.IGeometry to GeoAPI.Geometries.IGeometry

I have an in-house .NET library which processes geometry data in GeoAPI form (https://github.com/NetTopologySuite/GeoAPI). Within this library I have a method which I need to call which is expecting a ...
1
vote
1answer
26 views

Get the fill stipple of a predefined PictureFillSymbol in ArcMap

In ArcMap in symbol-dialog you can choose a predefined symbol for your polygon-features, i.e. agricultural area. This is a 1 bit picture with foreground- and background color. I grab this symbol as ...
0
votes
1answer
428 views

IUniqueValueRenderer with three fields?

I have found some ArcObjects code to get unique values on one field for a IUniqueValueRenderer but I can't conceptually wrap my head around how to do that with 3 fields. Would this be .Net code or is ...
3
votes
1answer
613 views

How to write GML and GeoJSON features while retaining attributes in .NET?

I am developing a .NET project [C#] that needs to export/write features as GML and GeoJSON, including, of course, the attributes; data could queried by a database or manually entered. I checked ...
0
votes
1answer
32 views

Closing out a 'add polygon' operation in the interactive MapWinGIS ShapeEditor

I am creating a small app that uses a MapWinGIS control and allows a polygon layer to be edited. Users can add/delete/edit polygons. All is working fine, but the operation to finish a new polygon ...
1
vote
2answers
641 views

Opening a custom model's geoprocessor window with ArcObjects

I have developed a custom model using ModelBuilder in ArcGIS, and I would like to use a .NET Base Command to open the geoprocessor parameter window for this tool so the user can enter their ...
1
vote
1answer
93 views

Is there a way to use wms like a tiled map service in sharpmap?

In sharpmap , is it possible to load a default wms like a tiled map service? I was able to use a WMS but currently it loads the map as a single image. I desire a behavior like OpenLayers 3. Edit: ...
1
vote
1answer
33 views

Create a mapping between polyline and raster in ArcObjects

In my case I have two sources of data: a vector shapefile with a polyline (expressing the path) and a raster with some integer metadata values available for each cell. What I would like to do is to ...
8
votes
2answers
940 views

What are the implications of using .NET Generics to store ArcObjects?

I'm wondering what are the implications of using Generic types in .NET to store ArcObjects, such as ILayer, IField, etc. The compiler throws me a warning when using these kind of values public class ...
0
votes
1answer
52 views

Is MapGuide still maintained?

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?
7
votes
3answers
2k views

ArcGIS 10 Add-In compile problem - Why are new edits to code igonred by ArcMap?

I've been compiling and debugging my Add-In (a toolbar with a few menus, custom commands, custom selection tool and a context shortcut menu) with no issues until suddenly the edits and changes I do in ...
0
votes
1answer
122 views

JSON String From VB.NET to Javascript over 100,000 characters

I have a string of properly formatted JSON from a VB.NET function that I am trying to pass to JavaScript where I can convert it into an OpenLayers vector layer. The string can be variable length, ...
0
votes
0answers
30 views

How to open shapefile dataset using ArcGIS Pro SDK .NET?

I write AddIn for ArcGIS Pro using ArcGIS Pro sdk. I have a shapefile on my disk(for example "D:\Data\shapefile.shp"). How can I open this featureclass? For gdb geodatabase is very simple using ...
12
votes
7answers
6k views

ESRI ArcMap Add-in with app.settings not recognizing app.config changes

I have an ESRI Add-in developed for ArcMap which requires a configuration file. After spending a while trying to read config values from a single App.Config file (and always getting null) I believe ...
0
votes
0answers
19 views

Intersect tool of ArcGis gives multiple intersecting points

I am using .net in arcGis 10.0 to develop tools.I have two polyline feature classes. I want to get intersected point of this 2 feature classes. for this purpose, I have used INTERSECT tool of arcmap. ...
3
votes
1answer
175 views

Initiating pop-up before accessing .net out-of-the-box web map?

I need to create a pop-up that initiates as soon as a user clicks on a web map, or accesses the link from another location. The map is an ArcGIS Server out-of-the-box .net app. It's for a disclaimer ...
3
votes
2answers
468 views

Custom Query Task

I'm building a web application in ArcGIS Server for .net and I want to create query task for each layer so that each query depends on the previous result query task, how can I do that?
2
votes
1answer
743 views

ArcGIS Visual Studio IDE Integration Framework?

i need to integrate arcgis 9.3 with visual studio c# 2008 express edition. i found the integration framework for 9.1 but no chance for 9.3 and i've seen a lot of questions on web about it. What ...
0
votes
1answer
35 views

TopoToRaster Tool Execute problem in ArcGIS

I am trying to execute TopoToRaster tool (ArcToolbox>3D Aanalyst Tool>Raster Interpolation>Topo To Raster) in arcGis 10.0 with .NET. Topo to Raster Input But get exceptions. My code is here : ...
6
votes
1answer
3k views

Is it possible to use DotNet to show a QGIS map?

Has anybody ever tried to show and interact with a QGIS map from a DotNet language like C#? What i have in mind is, to write a desktop application with C#, and show an embedded map with the QGIS-API ...
4
votes
1answer
531 views

Reading data from file geodatabase using OleDbConnection?

I'm able to connect to a file geodatabase using an OleDbDataAdapter and read the attribute table just fine - from within visual studio. However, when I put the code inside a windows service it ...
0
votes
0answers
29 views

ArcGIS Runtime Toolkit FeatureDataForm with Subtypes

I have a problem with attributes editing using widget (FeatureDataForm ) from Esri.ArcGISRuntime.Toolkit package (https://github.com/Esri/arcgis-toolkit-dotnet). As my data model uses classic domain ...
4
votes
2answers
544 views

Uniquely identify feature classes & compare them for equality using ArcObjects?

I want to implement EqualityComparer<T> for feature classes so that I can stuff them into a Dictionary or HashSet. For motivation, say that I am looping over many IFeature objects which belong ...
2
votes
1answer
139 views

Decoding this GIS blob

I am new to the decoding world (and even to the world of gis), but I am definitely not new to programming and large data. I was tasked with uncovering a column in our db with this information. It's ...
2
votes
1answer
53 views

Getting point from known points to specific distance of polyline using ArcObjects?

I want to know the coordinates of a polyline from specific point and distance. I have attached image to clear the specification. say, I have a points B(2,3). I want to know the coordinates of A and C ...
3
votes
1answer
163 views

IGPutilities in IGPFunctions?

In Esri's area calculation sample of IGPFunction implementation they use IGPUtilities but they don't release the instance. On the singletons page in SDK help they list GPUtilities as a singleton ...
0
votes
0answers
36 views

A bounding rectangle for two lat longs points in .NET

I'm trying to figure out how to build a bounding rectangle around two lat long points using a .NET library. I've tried playing with NTS but I haven't found anything that does what i want it to. I ...
1
vote
1answer
2k views

Calculating driving distance between 2 lat/long points using .NET application? [closed]

I want to build a .NET application that can get an input of 2 lat/long points and return an output that specified the driving distance between the points. What APIs or methods could be used to ...
2
votes
0answers
83 views

ArcGIS .Net GP tools debug

I'm developing a GP Tool with .Net ArcObjects SDK. I would like to debug my GP tool but I haven't figured how. I have tried to enable background processing in Geoprocessing Options and attach ...
3
votes
0answers
83 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 ...
3
votes
1answer
46 views

Do I need to explicitly release extension licenses?

I'm writing an application using ArcObjects. I initial the license with code similar to this: var extensionCodes = new[] { esriLicenseExtensionCode.esriLicenseExtensionCodeNetwork, ...
0
votes
0answers
58 views

Extend line to specific distance or a line

I want to extend my polyline to a given distance. How can I do this. I have attached image to clear my specification. I am using .net in ArcMap . I am also using python in the image, I want to ...
2
votes
0answers
24 views

TOC layer symbol changed EVENTS in ArcMap

I want to do something when user changes one of TOC layer's symbol. I am using .NET in arcMap 10.0 . How can it possible with arcobjects ? Please , help. Specially I want to know, Is there any events ...
0
votes
0answers
23 views

ApplySymbologyFromLayer does not work in my python code

I have a layer file. I make a button in ArcGIS 10 with .NET. I want to change layer symbology with the layer file. For this purpose, I write python code and execute it from C#. If the following code ...
1
vote
0answers
48 views

Call dot net library function from python in QGis

I have created one custom library (.dll) in Dot net. Now, i want to use that dll in my QGis plugin. How i can integrate that? For an example i have one function in library which is used to read excel ...
3
votes
2answers
2k views

ArcMap “Could not open the specified file”

Has anyone ever encountered this message? I am getting this when I try to open certain shapefiles. I am working on a problem that generates shapefiles from spreadsheets using ThinkGeo's .NET tools. ...
5
votes
4answers
2k views

Any .NET library to calculate polygon area?

Is there a .NET library to calculate area enclosed by polygon made up of geo coordinates (lat longs)?
2
votes
1answer
106 views

How to find a point with highest elevation in area using ArcObjects

Is there a way to find a point with highest elevation in specified area by using ArcObjects? Let's say that I have a raster with DEM and I would like to establish some areas of interest in this ...
6
votes
1answer
525 views

Where are wrappers for .NET and ArcGIS 10x?

With prior versions (to ArcGIS 10x) of ArcGIS, the .NET wrappers used to be placed in a dotnet directory. Where are they located with 10x? With prior versions, I used the absence or presence of ...
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 ...
0
votes
3answers
104 views

Pass GeoJSON from .NET to Javascript

My .NET/OpenLayers/GeoServer/PostGres-PostGIS application allows users to create custom queries to get data from my PostGIS tables. The queries are called in .NET (not javascript) using a web method ...
0
votes
2answers
2k views

How to get ArcObjects SDK for .NET? [duplicate]

Forgive my newbness, but how do I get the .NET ArcGIS SDK? I can't access any of the ArcGIS templates when I create a new project in Visual Studio. I'm using Visual Studio 2010, SP1 and ArcGIS 10.1. ...