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
-1
votes
0answers
14 views

Getting features from a feature server using C# in unity [closed]

I'm making a game using unity game engine. I'm trying to get some features published on a feature server using C#. I've installed the .NET runtime SDK for .NET and installed the NugetPackage related ...
2
votes
0answers
19 views

Activate Map on the click of a button ArcGIS Pro SDK

In this case, when an ArcGIS Pro project is opened, non map panes are active. I would like the map pane to be activated on the click of the button as proceeding code requires the MapView.Active to not ...
1
vote
1answer
22 views

GDAL failing to recognize OSM pbf file

I'm using the GDAL .Net library to open a PBF file I've downloaded from the GeoFabrik website. The file opens fine in QGIS. However when I call the Gdal.Open method on the file, it throws an ...
0
votes
1answer
195 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 ...
3
votes
3answers
2k views

Choosing Java or .net for GIS application [closed]

I currently use python for GIS scripting in arcgis and image processing using GDAL library. Now, I want to improve my programming skills for GIS application development both for desktop as well as ...
1
vote
3answers
286 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() =...
3
votes
2answers
1k views

Partial Map Pixel Projections [duplicate]

I have the following: A PNG or JPG of a random width and height, in pixels, that represents a partial map of the world (i.e. a rectangle of the United States). The four corners of this image are ...
0
votes
0answers
15 views

WSDL & XSD files for WFS and WMS services

I am working on creating a proxy for OGC WFS and WMS services using C#.NET WCF service. For that purpose, I need to create a reference to a WFS service so that I can get its classes and data types (Or ...
1
vote
0answers
11 views

GeoJSON: Truncate geometry based on circle

I have a database with a lot of GeoJSON, mostly representing roads and buildings. This GeoJSON is displayed on a map based on a chosen location, i.e. you choose a point on the map and the roads and ...
1
vote
1answer
21 views

RowChangedEvent doesn't catch every change

I'm using C# to create ArcGIS Pro add-ins. Until now I've been able to catch changes made directly on the attribute table. This is modify, create or remove a row. But, when I use a geoprocessing tool ...
2
votes
1answer
67 views

OpenLayers vector tile rendering problem on .NET Core 2.2

I working on OpenLayers vector tile. I am using PostGIS ST_AsMvt function for render my geom data. I sending query like this to PostgreSQL in my .NET Core server SELECT ST_AsMVT(mvt, 'geom', 4096, '...
0
votes
1answer
278 views

Reading Esri File Geodatabase (.gdb) from .NET?

I have been reading various threads on reading (not writing) an ESRI file geodatabase (.gdb). What I need to do is process a feature class in a geodb and extract the vertices of each feature. I do not ...
0
votes
1answer
178 views

Reading Esri file geodatabase (*.gdb) using DotSpatial?

I am a big user of DotSpatial and have even contributed some source code. However, I am having some roadblocks in trying to figure out if DotSpatial can read a file geodatabase. I have posted on the ...
1
vote
3answers
2k views

Using GDAL to get vertices of a multipolygon

I am successfully using GDAL to get the vertices of a polygon from a ShapeFile using .NET code. This link showed me how to do that: http://geoinformaticstutorial.blogspot.com/2012/10/accessing-...
0
votes
1answer
33 views

Duplicating feature layer with ArcObjects?

After opening a MxD document and getting the main map then a feature layer, I want to duplicate the layer with ArcObjects in order to inherit its properties (symbology, layer def and labelling). Then, ...
0
votes
0answers
41 views

Expose GeoServer Services to openlayers using .NET application

I have came across ways to consume GeoServer wms services and Bing maps at client side using openlayers , But openlayers is Javascript based framework and using this the Bing Map keys/ WMS urls and ...
0
votes
0answers
41 views

Importing geographical data into SQL Server Spatial

I'm uploading a shapefile containing all the world geometries of each country into SQL Server. The issue I'm facing is that for some of them I'm getting a SQL Exception during insert: A .NET ...
1
vote
0answers
40 views

Problem reprojecting coordinates using DotSpatial

I'm trying to reproject some coordinates from EPSG:27700 to WGS84. I can do this fine in JS using the proj4 port, but I'm getting different results using DotSpatial. Here is my .NET code: var wgs84 =...
10
votes
2answers
1k views

Using .NET Generics to store ArcObjects?

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 Foo { ...
0
votes
1answer
37 views

Query Data in ArcOnline REST API. Set-up error

I am attempting to query data that has been loaded into ArcGIS in the form of layers. I am attempting to query out basic data (Any data at this point) from a imported Layer. I think the error is ...
4
votes
1answer
1k views

How to set focus on ArcMap map window using arcobjects and c#.net

I have developed a custom dockable window with textboxes, comboboxes and a button for use in ArcMap. After the user clicks on the button in the dockable window a function is invoked. After the ...
1
vote
2answers
22 views

ArcPy error handling within a C# wrapper

I'm running arcPy commands from a C# script i.e. RunPythonScript("arcpy.Delete_management(\"C:\\\\Temp\\\\NW\\\\land.gdb\", \"Table\")"); private static void RunPythonScript(string script) { ...
11
votes
3answers
4k views

What are pros and cons of Python add-ins vs .NET add-ins to ArcGIS for Desktop?

I found in ESRI .NET help: Python All ArcGIS Desktop applications include an embedded scripting language called Python. Many areas of ArcGIS—particularly geoprocessing—are accessible through ...
0
votes
3answers
337 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 ...
0
votes
2answers
165 views

Using Open GIS’s KML Schema Definition (ogckml22.xsd), Microsoft.Net XML Schema Definition Tool Fails

In brief, on one hand, I expect Open GIS’s KML Schema Definition, i.e. ogckml22.xsd, to be rock solid; fully debugged. Likewise, Microsoft.Net’s XSD XML Schema Definition tool (https://docs....
1
vote
1answer
92 views

Getting Field by name from feature using GDAL?

I have recently started using GDAL in C#, I want to get a value from a field of a feature using the name of that field. In the docs here it says that the operator [char*] is supported, however it's ...
1
vote
0answers
85 views

Viewing Tables in the AxTOControl using ArcObjects

I was wondering if anyone out there has written a Table filter for the AxTOCControl in the ArcObjects Library. I've rolled my own Table view for now in C#, but would like to try and keep things ...
2
votes
1answer
52 views

Getting line segment object from points

I am fairly new to Arc Programming and am currently using .net to build my tool. There is not much back ground information as I am starting from a Blank Map. The goal of my tool is just to create a ...
1
vote
1answer
1k views

Using intersect method of ItopologicalOperator gives error 0x80040239? [duplicate]

I would like to intersect a polygon and a polyline to know if the polyline is in the polygon. The code works but when i do it on more than 100 000 times in a for, there is this error : System....
0
votes
0answers
236 views

Seeking library that reads/writes shapefiles to use with .net core 2.2?

Previously I used to use Easy Gis .net. Now we have a .netcore 2.2 project and I need to read/write Shapefiles. I have googled for 2 hours and I didn't find anything. I also tried to use dotspatial ...
5
votes
0answers
219 views

Customizing ArcGIS Pro using addins vs python tools? [closed]

With the upcoming release of ArcGIS Pro and the eventual retirement of Desktop and ArcObjects does it make more sense to start new customizations in python or continue to use ArcObjects/addins for the ...
10
votes
2answers
619 views

File Geodatabase API .NET Wrapper: How to determine if Table/Feature Class Is Locked?

I have been using the file gdb API .NET wrapper, and it has suited my needs quite nicely (vs. using ArcObjects). One of the things I have yet to figure out is if there is a proper way to determine if ...
1
vote
1answer
126 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 ...
3
votes
2answers
182 views

Populating fields in a Matrix format

I am trying to develop an accuracy assessment tool using ArcObjects. As an output I would like to show a matrix with the fields such as road ,land,water etc. I just want to know how can I fetch ...
0
votes
0answers
205 views

Reprojecting shapefile using DotSpatial gives unexpected lat/long coordinates?

I need to take an uploaded polygon shapefile and extract some information from it, including the lat/long positions of the centroids of the features. Using DotSpatial I attempt to Reproject the ...
2
votes
1answer
473 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 ...
4
votes
1answer
2k 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 ...
7
votes
1answer
77 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 ...
1
vote
0answers
215 views

Forcing ArcMap Add-in ComboBox to refresh using ArcObjects? [closed]

I am having problems with an add-in combobox that doesn't refresh. When the currently selected item is removed from items collection, the name remains visible in the text area. It should show the ...
2
votes
1answer
56 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
48 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 ...
1
vote
1answer
70 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, ...
2
votes
1answer
77 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
99 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 ...
2
votes
1answer
1k 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 ...
3
votes
3answers
771 views

Map widget in .NET application

I would like to have map widget in .NET application. I need basic functions (zoom, move map) and possibility to display WMS. Thats all. Is there any library that you recommend for that? I am ...
2
votes
3answers
3k views

C# library for bounds based geometry search

I am searching for C# library which has code that builds spatial index in memory based on geometry bounds and enables fast searching for all geometry inside given bounds. I prefer free library.
0
votes
1answer
153 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
1k 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 ...
1
vote
1answer
405 views

Changing data source of table using ArcObjects?

Cross post from: https://geonet.esri.com/thread/125010 Does anyone know how to change the data source of a table using arcobjects? I know it can be done with arcpy, but I'm using C#. I've managed to ...