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

Copying features using ArcObjects [closed]

I need help copying some features using a base point to another point(coordinate) using ArcObjects. I have a geometry collection containing polygon features and I want to replicate the same feature ...
0
votes
0answers
13 views

Is there a .NET ArcGIS Server REST Wrapper library that supports 10.6 or later?

I am looking for a .NET wrapper for the ArcGIS Server REST API. I have found several on nuget and github but they haven't been updated in several years. I didn't see a a REST wrapper on https://...
0
votes
2answers
23 views

How to seralize ArcGIS JSON to .Net core object?

I want to get ArcGIS JSON response (like here) from server and save it to my database. I am using .Net core and entity framework net topologysuite for CRUD operations database. But I coud not convert ...
1
vote
1answer
35 views

Arc 1960 / UTM zone 36S to Lat Long for Google Maps

I have this coordinate (778597.3125000001, 9148353). I am told this coordinate is Arc 1960 / UTM zone 36S. When I go here: https://epsg.io/21036 and click "Get Position on Map" and enter in ...
1
vote
0answers
43 views

How do you access PostGIS geometry data from .NET

I have a PostgreSQL / PostGIS database with both geometry and non spatial columns I created a new Console App .Net framework project and added these nuget packages EntityFramework pgsql ...
0
votes
0answers
3 views

Getting HRESULT E_FAIL error when trying to open database connection via connection file [duplicate]

I developed an Addin in AGP 2.5 where I am using connection files to open database connections at runtime. So far that worked perfect. The connection files are stored on a network drive, referenced in ...
0
votes
1answer
36 views

Getting HRESULT E_FAIL error when trying to open database connection via connection file

I developed an Addin in AGP 2.5 where I am using connection files to open database connections at runtime. So far that worked perfect. The connection files are stored on a network drive, referenced in ...
1
vote
1answer
38 views

ArcObjects access to ArcMap's Geoprocessing Results

Is it possible to get ArcObjects access to the geoprocessing results that show up in the geoprocessing Results window in ArcMap? I'm looking to remove results from geoprocessing operations that are ...
1
vote
0answers
48 views

Create Esri File GDB from DataTable .Net Core?

I have data stored in a database in PostgreSQL created and handled via EF with dbContext in .Net Core. I need to export some tables into FileGDB using opensource libraries (I don't want to restrict ...
2
votes
1answer
61 views

Adding GeoPackage to ArcGIS Desktop using ArcObjects

How do I add a GeoPackage layer to ArcGIS Desktop using ArcObjects code (preferably c#)? From the ESRI documentation: The WorkspaceFactoryProgID identifies the ProgID of the WorkspaceFactory object ...
0
votes
1answer
42 views

Setting DockableWindow Initial Size ArcObjects .NET SDK

In an ArcMap custom tool I used DockableWindow for user interaction. I want to set a size for the window while initial opening. I changed the height and width of InitialPlacement. After changing it ...
0
votes
1answer
37 views

Converting lat/long to northing/easting given data from a .prj file [duplicate]

I have been given the a file containing a bunch of lat long coordinates along with this information that came from a ".prj" file alongside a ".shp" file: GEOGCS["GCS_GDA_1994&...
0
votes
1answer
25 views

ArcGIS .Net SDK publish shapefile to ArcGIS Online

I am quite new with ArcGIS Online and their .Net SDK. I am trying to load shapefile into my ArcGIS online account using .Net SDK. On the ESRI tutorial portal, there is 0 information about it, all is ...
0
votes
0answers
15 views

SQL Server update statement using .NET made function does not run

In SQL Server I have a table called Track containing metadata of each track and a spatial representation of it: the field Geo, which is a LineString of the geography type. In Visual Studio I developed ...
1
vote
1answer
76 views

Creating new Geodatabase, FeatureClass, Table and adding Fields using ArcGIS Pro .NET SDK

I need to create a new Geodatabase and creating FeatureClass, Table in the Geodatabase. After that adding fields in FeatureClass and Table are also needed. I have created a new Geodatabase using this ...
1
vote
1answer
38 views

Running MosaicToNewRaster tool fails. C#

I am currently trying to run the MosaicToNewRaster tool via C#, on a set of TIFF files. I am inputting all the required parameters but am still receiving: ERROR 000582: error occurred during ...
1
vote
0answers
46 views

Lost ArcMap Add-in Toolbar Built with ArcObjects SDK in .NET and Problem with AssemblyCache folder and ArcGIS Cache Manager

Our organization manages an ArcMap 10.6.1 add-in written using the ArcObjects SDK for .NET Framework 4.7.2. We publish the add-in file to a server folder. We edited the registry to make ArcMap look ...
0
votes
0answers
12 views

CORS policy issues in .Net Core

So I have a .net core app which currently throws an error in console saying: Access to XMLHttpRequest at 'https://app.test.mk/arcgis/rest/services/karpos/Karpos_Vector_Izvodi/MapServer?f=json&dpi=...
0
votes
0answers
43 views

Import a shapefile into PostgreSQL using npgsql (.NET)

I want to import a shapefile (.shp) into a PostgreSQL database through a .NET application. I plan to use npgsql but I am unable to figure out how to import a shapefile using this library. PostgreSQL ...
1
vote
1answer
19 views

Geoprocessor cannot find input data, but only for some users

I am developing a stand alone application that at some point needs to run Dissolve on a subset of data in a feature class. This code works for me without issue, regardless of workstation. When another ...
2
votes
0answers
64 views

How to read the Microstation element attribute values from .Net C#?

I am using following code for read the element attribute from index.But it shown the error like Unable to cast object of type 'System.Object[]' to type 'MicroStationDGN.DataBlock[]'.Is there any ...
1
vote
1answer
306 views

Is there a proj4 string for GDA2020 (epsg:7844) that we use to transform from 3857 or 4326 to gda2020 using dot spatial .net library

We are using dot spatial library for transformation from one projection to other. We are planning to include the new release GDA 2020 projections. Is it as simple as just adding the proj string for ...
2
votes
1answer
205 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 ...
2
votes
1answer
76 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 exception ...
1
vote
0answers
13 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
32 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
304 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
52 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, ...
1
vote
0answers
53 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 =...
0
votes
1answer
50 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 ...
1
vote
2answers
27 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) { ...
0
votes
2answers
289 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
173 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 ...
2
votes
1answer
60 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
2answers
791 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 ...
0
votes
1answer
579 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
336 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 ...
0
votes
0answers
315 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 ...
1
vote
1answer
185 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 ...
4
votes
1answer
988 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
vote
4answers
939 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 ...
4
votes
1answer
4k 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
65 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
59 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
140 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
118 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 ...
1
vote
1answer
142 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
1answer
2k 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
0answers
70 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
163 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 ...

1
2 3 4 5
8