We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [.net]

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

Filter by
Sorted by
Tagged with
5
votes
3answers
2k views

How to change the mouse cursor of an ArcMap add-in tool using Arcobjects?

Is it possible to change the mouse cursor of an ArcMap addin-tool using Arcobjects? I have the cursor set in the Config.esriaddinx file, however I would like to change the cursor to reflect the ...
2
votes
0answers
43 views

3D wkt geometries - Parse in .Net suggests alternate form

I am having some issues with a built in .net framework class (System.Data.Spatial.DbGeometry in assembly System.Data.Entity). It turns out that this class cannot parse 3D geometries when they are ...
5
votes
2answers
272 views

Get information from a tool in ArcObjects

I have the following situation in an ArcMap add-in that I'm building: This add-in contains a form where a user needs to click on a button, and then be able to draw a polyline on the map (the form is ...
1
vote
1answer
64 views

Testing Validity of Web Service Referenced in Layer File?

My organization creates a number of layer files for our ArcMap users to access data from web services. Is there any way to use arcpy.Describe to get to the URL of the service referenced by the layer? ...
2
votes
0answers
305 views

Where to Start: .Net(Xamarin) map viewer with cached map and overlay ability [closed]

I am new to the whole GIS topic. Two days ago, I was asked to develop a map viewer. I know that it should be a Xamarin Application it should display a local cached map (a vector map) I should be ...
1
vote
1answer
77 views

ArcGIS Runtime .NET / Setting Viewpoint based on Google Map Co-ords

I am new to GIS tools. The following code runs inside a mouse click handler, and should center the map on the given co-ordinate location. The co-ordinates are taken from Google Maps web view, and my ...
1
vote
0answers
30 views

How should I properly release .NET extensions I create?

This is an extension to the following question: ArcMap.exe processes stay open after closing ArcMap? None of the answers go into how to properly write your extension so that it releases when ArcMap ...
3
votes
1answer
118 views

FieldCount from iTable .NET c#?

I'm trying to get a message box to display some simple counts of layers and fields. Everything works fine until I add in the code to get the field count of composite layers. Below is the code for my ...
1
vote
1answer
188 views

listen to Edit Session in ArcMap

I want listen to Edit Session in ArcMap. But every time when i click on my button in ArcMap, Applicaation crash down. If i debug, it stopped at AddHandler Events.OnStartEditing, AddressOf ...
3
votes
1answer
125 views

How to add the source geometry to Network Dataset in ArcObjects?

I have a problem adding the source geometry for the Network Dataset in ArcObjects. I wish my ND to be very simple, built upon a single ShapeFile which contains lines. Each line has a DriveTime defined ...
1
vote
1answer
506 views

ProjNet Datum Transforms from EPSG:3785 to WGS84 y-error

I'm trying to write a method (in VB.NET) to transform datum from EPSG:3785 to WGS84. I'm currently making use of ProjNet in my solution so I used it to perform this transformation. I thought ...
1
vote
0answers
4k views

QGIS with c# or vb.net

Can I add QGIS as a Plugin in .net application and access it using c# or vb.net? As I can see QGIS plugins are consumed using C++ only.
2
votes
2answers
487 views

Find crossing point of polyline layer

I have a polyline layer. I want to split this polyline layer at CROSSING POINT. With two steps I want to do this. I show the user the CROSSING POINT of polyline layer. With this CROSSING POINT, I ...
-1
votes
1answer
528 views

offline Maps APIs I can use in .NET framework

I am trying to find the suitable API where I can: load maps from a specific map server (google, openstreetmaps, Bing...etc) and use the maps offline. loading my own raster layer on top of the ...
3
votes
1answer
68 views

How to use ArcGIS FeatureToLine with Managed Assembly

I am writing an ArcMap Add-In to combine multiple shapefiles and then run some custom python scripts on the resulting shapefile. However I cannot seem to get the Geoprocessor working to run the ...
0
votes
1answer
78 views

Error while using methods in MapBasic

I am using a .dll file methods in mapbasic declare method openmultiplefilesdlg Class "mbextensions",lib "mbextensiondlgs.dll" (declaration variable) as string but it shows error: Found [...
1
vote
0answers
867 views

GDAL compilation to .NET (C#) use

I want compile GDAL library for use in C# program. I use Microsoft Visual Studio 2013. First, I compiled GDAL C++. As a result I have DLLs and libraries (No problems) . Next, I tried to compile with ...
3
votes
0answers
344 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 ...
2
votes
0answers
1k 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" ...
0
votes
2answers
267 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
89 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 ...
1
vote
1answer
53 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 ...
1
vote
1answer
1k 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: ...
0
votes
1answer
513 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
1answer
333 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 (...
0
votes
1answer
393 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. ...
0
votes
1answer
59 views

TopoToRaster tool execution gives exceptions with ArcObjects?

I am trying to execute TopoToRaster tool (ArcToolbox>3D Aanalyst Tool>Raster Interpolation>Topo To Raster) in ArcGIS Desktop 10.0 with .NET. Topo to Raster Input But get exceptions. My code is here ...
1
vote
1answer
194 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?
3
votes
1answer
540 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 ...
3
votes
1answer
515 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
0answers
1k 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
225 views

Do I need to explicitly release extension licenses?

I'm writing an application using ArcObjects. I initialize the license with code similar to this: var extensionCodes = new[] { esriLicenseExtensionCode.esriLicenseExtensionCodeNetwork, ...
2
votes
0answers
67 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 ? Is there any events that will fired when user change symbol ...
0
votes
0answers
37 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
209 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 ...
2
votes
2answers
866 views

Finding 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 raster....
2
votes
2answers
3k 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
779 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
3answers
451 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 ...
1
vote
0answers
485 views

Web Tier Authentication in ArcGIS for Server?

Can anyone explain me the steps, how to view map service from LDAP ,Web Tier Authenticated ArcGIS Server 10.2.1 in .net Application. I have installed web adapter in Web server with windows ...
1
vote
1answer
296 views

Applying a new colour scheme on GdalRasterLayer using SharpMap

I'm currently developing a surface water modelling system in C# (.NET) and am using the SharpMap control as my mapping component. It's all going well, but there's one thing I'm struggling with. I ...
0
votes
1answer
104 views

ArcSDE to Shapefile Async in .NET

I have a question about exporting an (versioned) featureclass stored in a ArcSDE geodatabase to a shapefile with VB.Net. I've created the code which I think should work fine, but ArcObjects "says no",...
2
votes
1answer
821 views

How do I read the attribute data associated with my SHP?

I'm using DotSpatial to aid in processing some geospatial data. I'm using the code below to determine if a point (lat/lon location) is within a polygon contained in the SHP. If the point is in a ...
2
votes
0answers
80 views

Is there a way to change the selection in the Editor Attributes window, while maintaining current selection?

I was wondering if anyone knew of a way to alter the selection within the Editor Attributes window while maintaining the current selection set. In the image below, I've manually selected an item in ...
1
vote
1answer
757 views

How to change owner of a version in an enterprise geodatabase using ArcObjects?

I have ArcObjects/.NET code used to create few versions for workspace. Versions are created successfuly but their owner is who created them (the user connected to the workspace). I want to change the ...
1
vote
1answer
569 views

OpenLayers load KML 64 string data URI

I am trying to load a KML file to Google Maps using OpenLayers 2, below is the code: var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0",...
4
votes
2answers
385 views

How to remove a domain from a field using ArcObjects

I need to delete a domain in my database. Since the domain is still associated with a field, I first need to delete the association. After reading the documentation for IWorkspaceDomains.DeleteDomain, ...
2
votes
1answer
618 views

Standalone program can see license

I used standart license initialization code in C# standalone program. It was working perfectly on 10.1 and 10.2. But after migrating to 10.3 it says Licenses are not available. Meanwhile ArcMap and ...
1
vote
1answer
494 views

I am using “Hindi and Gujrati” font then I am getting “Black Squre Dots”?

At the time of generating PDF file when I am using “Hindi and Gujrati” font then I am getting “Black Squre Dots”. Below I am using code. Here I am trying to convert in UTF-8 but it’s not converting. ...
2
votes
0answers
230 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 ...