Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [.net]

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

0
votes
1answer
24 views

Using ArcGIS Engine with Background Geoprocessing (64 bit)

Could someone suggest how to use ArcGIS Engine Background Geoprocessing (64 bit) in ArcGIS Engine 10.4 ArcObjects console application? I am using C#, .Net 4.5.2 framework, ArcObjects SDK 10.4 to ...
2
votes
1answer
26 views

Seeking geospatial library for .NET Core?

I am trying hard to find any geospatial library that supports .NET Core, however with no success so far. Do you have tips for any? My requirements are: work with different coordinate systems ...
-1
votes
2answers
43 views

Using WinForms with ArcGIS Pro SDK?

I want to port a tool developed in ArcObjects for ArcMaps into ArcGIS Pro using the ArcGIS Pro SDK. The tool's UI was created using WinForms but to recreate the UI in ArcGIS Pro is looks like I would ...
2
votes
1answer
79 views

Integrating Leaflet with ASP .NET MVC?

I am trying to use Leaflet (https://leafletjs.com/) javascript library in a project built on ASP .NET MVC5. For the sake of simplicity, let's just say I am trying to run the following code (provided ...
2
votes
1answer
33 views

Combine multiple adjacent polygons into 1 polygon

I have a third party tool that is creating a color filled area by placing many polygons side by side. I need to combine these polygons into 1 polygon. Unfortunately changing the 3rd party tool is not ...
3
votes
1answer
33 views

Is there a built in way to reduce the amount of points in an IElement

I have a polyline element and I want to reduce the number of points (vertices?) that make up the line. I know it will make the curved sections jagged and that is fine. I just want to control (perhaps ...
2
votes
1answer
38 views

Convert an IFeature to an IElement to display on the graphics layer

I have read some posts and looked at a few different examples but I am still having a problem. My problem seems to lay with the location of the IFeature's shape, they are coming back as x= 590241....
4
votes
1answer
67 views

Reshape ILineElement with ISelectionTracker in graphics container

End goal: Allow user to move points on a ILineElement using the selection handles from ISelectionTracker. Issue: Using my code below I am able to get the handles to appear on the line element, but it ...
0
votes
1answer
18 views

quickwatch on COM-objects does not show any information

While debugging my ArcObjects-code using VS2015 and .NET 4.5 I often try to inspect the data from my geodatabase. So for example see this code: public static bool PointsAreCollinear(IPoint from, ...
0
votes
0answers
21 views

System.TypeLoadException: Types extending from COM objects should override all methods of an interface implemented by the base COM class.?

I am maintain a custom .net arcmap extension that is currently running on ArcMap 10.5 and I get the this error when I try and open a form within ArcMap 10.5 System.TypeLoadException: Types extending ...
0
votes
1answer
677 views

GMAP.net markers are not shown in the correct position

I have to show on a gmap control in c # more markers to make use of the code below. The strange thing is that if I display only one marker is displayed correctly, while if I have more than one marker ...
0
votes
0answers
32 views

Annotation And Labelling

I was trying to explore the Annotations and Labelling for features. I wanted a transmedia feature class would show the name of it when added in the map. Here is what I did in the code. ...
1
vote
0answers
40 views

Convert OSM data to PostGIS polygons in .net?

I'm trying to obtain data from OSM and store it to a PostgreSQL + PostGIS database, with certain modifications to adapt to our tables. Is there any built way to convert OSM relations/ways/nodes into ...
0
votes
1answer
57 views

Facing Issue on Creating MVVM Pattern From An ESRI Runtime 100.2 Existing App

Following This Sample I am hoping to be able a real MVVM pattern from the tutorial but based on my understanding the application is missing the Model and View classes! I have the MapViewModel.cs like ...
0
votes
0answers
28 views

Does Google Earth COM API have access to Street View?

I'm trying to update an old Arcobjects addin that uses the EARTHlib COM library to control Google Earth. Unfortunately, the API, along with its documentation, was deprecated. More unfortunate, our ...
2
votes
1answer
95 views

How to get Feature Attachments using ArcObjects .NET (using AttachToMemory)?

I am trying to retreive the Attachment of a Feature using ArcObjects in C#. The data is correct, I am able to dump the attachments to the disk using SaveToFile. I want to work in memory and not dump ...
1
vote
0answers
102 views

'object' does not contain a definition for 'AddValue'

I have been able to get past this error, but I don't know why it was happening. I'm attempting to set symbology on a layer using IUniqueValueRenderer in ArcMap 10.4. When I try and use the AddValue ...
0
votes
0answers
82 views

Using GDAL to create a simple image from scratch

I am using GDAL to try and create a simple image from scratch. This is the code that I am using: public Form1() { InitializeComponent(); // Set environment variables to ...
0
votes
1answer
96 views

Network Based Geofence - .NET

Is it possible to create a Network Based Geofence using the .NET platform? For example, is there a way where users can "opt in" to a service on their phone without installing anything, that would ...
0
votes
0answers
95 views

QGIS WPF Development [duplicate]

I am new working with GIS as a developer. I have been looking for developer documentation and forums and I have been having a hard time looking for a good community of developers building GIS software....
2
votes
1answer
87 views

Setting up IGeoProcessor2 object in .NET (C#)?

I'm wondering if I'm instantiating a new class with the IGeoProcessor2 object correctly. It's working the way I have it now, but I feel like there's something else I should be doing so I don't have to ...
0
votes
0answers
47 views

Free or Open Library to calculate LOS and Viewshed

I'm looking for a library, preferably for .NET, that will take SRTM, 3DEP, or similar topographic data and allow me to generate a viewshed / determine areas that are in line of sight. I hope to use it ...
0
votes
0answers
99 views

Odd beahviour of d3.js voronoi calculation

I am trying to plot a voronoj diagram over a map (with the aid of OpenLayers) and I actually succeded in my intent. I am however experiencing an odd (at least for my little knowledge) behavior when ...
0
votes
1answer
73 views

Merging pdf pages with vector layers in the backend

I've setup an openlayers instance on a webpage which can load static images. These images are actually the pages of a PDF you can upload. There is a pagination option on it so users can navigate ...
0
votes
1answer
69 views

No maps visible when downloading something with CartoPackageManager

I am facing such problem: while some package is downloading with Carto PackageManager, I can’t see neither other downloaded offline maps nor online maps of any other place. In other words, if there ...
5
votes
0answers
249 views

ESRI ArcObjects and Unit Testing the Geoprocessor dll

I have an issue with using ArcObjects and the Geoprocessor .dll library in a UnitTest environment (MSTest) in Visual Studio. When I test a program that creates an ESRI.ArcGIS.Geoprocessor object and I ...
4
votes
1answer
125 views

Get messages from erroneous python script run in C# .NET with ArcObjects

I'm trying to implement some error handling into my C# code for my .NET application. I feel like I'm missing something really obvious because I know there has to be a way to do this, but I just can't ...
1
vote
1answer
65 views

How to enable Latin names for places in some places instead of local ones in Carto Services?

Some places on the map is labeled with Cyrillic names, but I need only English/Latin names of places on the map, however sometimes there are only local names. In general I need transliteration to ...
2
votes
1answer
54 views

Can you do simple geoprocessing in .NET framework? (not mapping applications, not desktop add-ins)

So I will be creating a web application in .NET. It's a data entry application where someone will be inputting a bunch of a stuff from a datasheet and we'll suck it into some database tables that are ...
0
votes
1answer
101 views

Publish rasters in PostGIS into ArcGIS Server [closed]

Background I have a lot of, I mean a lot of rasters (GeoTiffs, around 10000) stored in a PostgreGIS database. I have developed a website and I want to allow users to extract a raster based on its ...
5
votes
1answer
481 views

How can I call a .NET / C# tool (i.e. a .DLL file) from a model workflow or a Python script?

I've developed Add-in tools (with Windows dialog GUIs) for ArcMap which work fine, but I would also like to be able to call these directly (passing in parameters so I won't need to display the dialog) ...
4
votes
1answer
241 views

ArcGIS and .Net compatibility (Extending ArcObjects)

Backstory Historically, when compiling a custom dll that extends ArcObjects you would compile on a PC with the lowest compatible version of ArcMap installed, for example 10.1. Then that custom ...
3
votes
1answer
278 views

ArcObjects c# .Net Merge with Geoprocessing?

I'm trying to run the Merge tool using ArcObjects c# .Net. I'm fairly new to the skill but I have been able to run other tools such as Buffer and Points to Line. However, I have met my match with ...
2
votes
1answer
53 views

Hiding particular field in parameter combo box using ArcObjects and C#?

I am currently fetching the all fields/attributes of feature class and display in Combo box parameter using below code: paramEdit = new GPParameterClass(); paramEdit.DataType = new DEFeatureClassType(...
0
votes
2answers
165 views

Why does DotSpatial return NaN for point reprojection?

From the master branch and examples @ https://github.com/DotSpatial/DotSpatial the following fills the xy array with NaN but we expect 1755668,5922511 Dim x As Double() = {2666109} Dim y As Double() =...
7
votes
1answer
63 views

What events are fired when a feature is copy and pasted?

I am trying to detect when a feature has been copied and pasted. The OnCreateFeature event fires, but I cannot tell if the feature object was copy/pasted. Is there an event or other method to ...
2
votes
2answers
69 views

Dialog Box Run-time error in ArcObjects

I am trying to open a dialog box which shows up only raster datasets so that I can select one and create Hill shade based on it. But I am facing a run time error for Dialog box when I click on the ...
2
votes
1answer
619 views

GeoJSON.Net Serializing to valid GeoJson file

Using the GeoJson.Net lib, how do I serialize a GeoJson.Net.Geometry.MultiPoint to a VALID MultiPoint GeoJSON file? All I can find is how to serialize a random Geometry object to a JSON file that ...
2
votes
0answers
119 views

ESRI Workspace Domains sometimes not implementing ICodedValueDomain2

I am attempting to use the .SortByName() and .SortByValue() methods of the interface ICodedValueDomain2. I use the same extension methods from an IWorkspace, however if I open the IWorkspace from an ....
1
vote
0answers
29 views

arcmap ExportFrame on FocusMap inconsistency

I have an issue where the ExportFrame would use the extent instead of the full extent after right clicking on arcmap and selected "Full extent". Sometime it will use the ExportFrame of the full ...
1
vote
1answer
55 views

SQL Server ArcSDE ST_Raster Installation and Configuration Error “.dll”

I have successfully installed ST_Raster Library in SQL Server machine following this tutorial http://desktop.arcgis.com/en/arcmap/10.4/manage-data/using-sql-with-gdbs/install-st-raster-oracle.htm I ...
5
votes
3answers
1k 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
33 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
189 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
56 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
239 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
64 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
92 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
132 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 ...