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
0 answers
23 views

Trouble with a line intersection algorithm

So to put this in perspective, I have a DXF file, I parsed the lines from the DXF file and I have to create polygons from those lines. I decided to save the created polygons from those lines to SVGs ...
badotnetdev's user avatar
0 votes
1 answer
59 views

Open a vector .TAB (MapInfo Pro) file using C# (Net6.0) and GDAL

I'm trying to open a vector file using GDAL's C# bindings. However, running the below code keeps returning null instead of a Dataset for some reason for the dataset variable. I've installed GDAL (v 3....
Richard O's user avatar
0 votes
0 answers
14 views

Hitting REST Feature services via console app (C#)

I have a console app that currently leverages arcObjects through a desktop license. We are going to need it to transport data to and from a traditional versioned gdb to and from feature services along ...
Michael Rut's user avatar
1 vote
0 answers
33 views

Getting colour of raster for specific value based on its symbology using ArcObjects

For the software I'm working on I'm trying to get the colour that a raster would be using to display any given value based on the symbology set up for it. I've been more or less able to work this out ...
Allan Mills's user avatar
0 votes
0 answers
16 views

ESRI ArcGIS: FDO_E_VERSION_REDEFINED - .NET Application

I have an application for ArcGIS 10.6 which it's built as follows: A class called Geodatabase, which implements the interface IDisposable Inside the class, there are some methods, like: ...
Volturno Luca's user avatar
0 votes
0 answers
45 views

How the toolbox works after triggering in arcgis pro

I wrote an add-in in ArcGIS Pro, when a button is clicked into a button, I go and trigger the toolbox, that is, a .pyt file is triggered and the toolbox comes directly, there is no problem until here, ...
Cnrgrsc's user avatar
2 votes
0 answers
382 views

NetTopologySuite distance between polygon and point in meters

I want to get distance between polygon and point in meters. When I'm using Distance() method I get it in cartesian units. How can I get in meters? I tried looking for solution but I can get only how ...
Bogdan's user avatar
  • 21
1 vote
0 answers
51 views

More than one ArcEngine GeoProcessor run at a time (concurrent)

I'm trying to run more than one AddRastersToMosaicDataset geoprocessor at the same from a test .NET 4.8 C# console application. So far I tried the below approach running in threads but it seems as if ...
Andy Arismendi's user avatar
0 votes
0 answers
31 views

In MAPGUIDE using .NET (aspx file) from OSGEO examples for MAPGUIDE, Cyrillic does not work

I did the following: I loaded in CODE WRITER the file - ..\Web\www\dotnetviewersample\findaddress\findaddressmain.aspx I changed:  Find Address Search for an Address Address: ...
Todor Rangelov's user avatar
0 votes
1 answer
107 views

Incorrect coordinate translation using GDAL.NET compared to gdaltransform and epsg.io

I am working on a project to convert between one coordinate system, provided by an EPSG code, and EPSG:4326 or EPSG:4979 (WGS84 CS to include heights above ellipsoid). Testing the following ...
TJames's user avatar
  • 29
0 votes
0 answers
34 views

Basemap in ArcGIS Runtime API for .NET WPF

I have a problem displaying the basemap. I can see my map via API but basemap is not coming. What is the problem? Here is the function: Basemap Basemap = new Basemap(BasemapStyle.ArcGISDarkGrayLabels);...
Irem's user avatar
  • 65
2 votes
1 answer
55 views

Can geodatabase edits be canceled/modified with ArcObjects?

I am working on some tools to automate some field data collection. I would like to restrict the user's ability to delete features (such as when the DELETE key is pressed, or if the MERGE editor tool ...
Barbarossa's user avatar
  • 5,787
0 votes
0 answers
144 views

GDAL Inverse Coordinate Translation

I have data in WGS84 and when I translate it to ED50 it doesn't appear in the correct place using GDAL and C#. I use CoordinateTransformationOptions.SetOperation using c# to set the specific ...
OoopseyDoodle's user avatar
2 votes
1 answer
1k views

C# transform coordinates using specific transform code using GDAL

I have an application that can import / export geospatial data to / from an ESRI SDE Database (SQLServer). The data is transformed to WGS84 before it is inserted into the DB and again from WGS84 to ...
OoopseyDoodle's user avatar
1 vote
1 answer
316 views

Getting raster layer path in ArcGIS Pro using C#

I am creating an ArcGIS Pro Extension. I need to know the layer's path. To get the layer path, code developed so far: var pointLayer = MapView.Active.Map.Layers.OfType<FeatureLayer>()....
osman's user avatar
  • 163
1 vote
1 answer
215 views

Disable panning after loading a layer in ArcGIS Runtime

I have a MapView, I am loading a base map, and then I am loading a layer. Then I am setting the View Point to be that of the extent of the layer. The map loads and is zoomed to the extent of the Layer....
ZZZ's user avatar
  • 614
0 votes
0 answers
52 views

ExecutionEngineException due to getting SpatialReference parameters

We developed an ArcGIS .NET extension. The input datasets are one polygon and one raster layer. At first, we checked the SpatialReference of the layers. If the SpatialReferences are different, we show ...
osman's user avatar
  • 163
0 votes
1 answer
252 views

Storing MultiSurface and PolygonPatches in SQL database - conversion to basic OGC geometry types

I am new to GIS. I am working on a requirement of storing in the database administrative units (states, counties, communities, cities, etc.) as geometries (borders / areas) in order to be able to make ...
Sebastian Widz's user avatar
1 vote
0 answers
598 views

Convert MultiLineString geometry object in GeoJSON to WKT in SQL

I am trying to import a geographical object into SQL server from a GeoJSON file. So far i've managed to import all types of object into my database except for MultiLineString objects. I can't seem to ...
jor398's user avatar
  • 11
0 votes
1 answer
220 views

Draw line perpendicular to other line in ArcGIS Pro core host application

I am trying to draw a line perpendicular to a line segment in an ArcGIS Pro core host application. There used to be a construct point in the ArcMap SDK but it is not there any more. This is being ...
jettmann's user avatar
0 votes
0 answers
151 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://...
Jay Cummins's user avatar
  • 14.6k
0 votes
2 answers
557 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 ...
barteloma's user avatar
  • 1,674
1 vote
1 answer
641 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 ...
Kellie's user avatar
  • 21
1 vote
0 answers
553 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 ...
Tony Sansom's user avatar
0 votes
1 answer
707 views

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

I developed an Addin in ArcGIS Pro 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, ...
Thomas Becker's user avatar
1 vote
1 answer
43 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 ...
Dan Jurgella's user avatar
  • 2,368
2 votes
0 answers
481 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 ...
Losbaltica's user avatar
  • 1,469
2 votes
1 answer
174 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 ...
narmaps's user avatar
  • 665
0 votes
1 answer
121 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 ...
osman's user avatar
  • 163
0 votes
1 answer
222 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&...
Hamish's user avatar
  • 101
0 votes
1 answer
67 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 ...
Losbaltica's user avatar
  • 1,469
3 votes
1 answer
931 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 ...
osman's user avatar
  • 163
1 vote
1 answer
82 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 ...
theMoreYouNgo's user avatar
1 vote
0 answers
117 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 ...
Thor's user avatar
  • 21
1 vote
1 answer
21 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 ...
danielm's user avatar
  • 1,539
2 votes
0 answers
326 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 ...
Raja's user avatar
  • 111
2 votes
3 answers
1k 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 ...
Sameer's user avatar
  • 21
2 votes
1 answer
955 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 ...
ketar's user avatar
  • 436
3 votes
1 answer
328 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 ...
Walter's user avatar
  • 249
1 vote
0 answers
31 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 ...
Ian Newson's user avatar
1 vote
1 answer
75 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 ...
brb's user avatar
  • 109
3 votes
1 answer
770 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, '...
khayyam's user avatar
  • 81
0 votes
1 answer
109 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, ...
superrache's user avatar
1 vote
0 answers
134 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 =...
Ian Newson's user avatar
0 votes
1 answer
110 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 ...
theMoreYouNgo's user avatar
1 vote
2 answers
44 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) { ...
Silverfin's user avatar
  • 165
0 votes
2 answers
599 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....
Dave Owens's user avatar
1 vote
1 answer
630 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 ...
Hicham Zouarhi's user avatar
2 votes
1 answer
114 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 ...
theMoreYouNgo's user avatar
2 votes
2 answers
3k 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 ...
Khalid Omar's user avatar

1
2 3 4 5
9