POST
|
我有一个要求过程的一些特性a feature layer in ArcGIS Online to merge them together based on unique combinations of attributes and write the output to another feature layer. We want to do this in a scheduled notebook, but have been having some issues with the union operation when it comes to creating multi-part polygons. When I union two polygons that are disjoint (not intersecting) I expect the union operation to create a single multi-part polygon, as it does in desktop and arcpy. However, when we do this in a standard ArcGIS Online notebook, the result is not a multi-part polygon, but just the first of the two polygons used as input. The below is a test using an ArcGIS Online notebook. When the input polygons are intersecting, the union works as expected. However, when they are disjoint, it doesn't work as expected: I have tested the exact same notebook code within ArcGIS Pro and get a multi-part feature when the input polygons are disjoint (non intersecting), which is expected: I have attached the test python code. I know there are some differences in the way the API works in ArcGIS Online vs ArcGIS Pro, as arcpy is not used in the standard Online notebooks. However, the documentation for the API seems to suggest union is supported and will use the shapely library when arcpy isn't available. It seems like a fairly basic thing to want to do, so does anyone know how to get this union working, so that unioning two disjoint polygons results in a multipart polygon, in an ArcGIS Online notebook without arcpy? Is there something specific I need to do to use shapely?
... View more
01-30-202311:19 AM
|
0
|
1
|
411
|
POST
|
It was absolutely the windows firewall, which was on by default. Not quite sure how I missed that, but adding rules to allow the required port numbers on portal and server VMs to the windows firewall resolved it. Note that no other NSG rules were required as by default, VMs in the same VNet can communicate on all ports. Thanks for the responses. The powershell Test-NetConnection tip is also a useful one.
... View more
01-30-202301:04 AM
|
0
|
0
|
398
|
POST
|
We are attempting to put together a development ArcGIS Enterprise build in Azure that uses the following: ArcGIS Server installed on a Windows VM (inc data store etc). ArcGIS Portal installed on a Windows VM. The Server and Portal components (inc. Web Adaptors) have been installed manually on these VMs. We are NOT using Cloud Builder and do not wish to at this point for various reasons (mainly that this is not generally allowed to be used in customers environments). Both VMs are within the same VNet and no specific firewall or NSG rules have been configured as by default all communication is allowed between VMs in the same VNet (as I understand it). However, we are having connectivity issues when attempting to Add the ArcGIS Server to Portal (step 14 in https://enterprise.arcgis.com/en/portal/10.9/install/windows/tutorial-creating-your-first-web-gis-configuration.htm). When we do this it fails to connect to server on the admin URL (i.e. port 6443). When trying to open to the admin URL (e.g. https://machine-name:6443/arcgis) via a browser on the Portal VM, it also fails to connect with a timeout. However, we can browse to the Server web adptor URL (e.g. https://machine-name/server) from the Portal VM with no issues. From this, we assume that something is blocking traffic on port 6443 from the Portal VM to the Server VM. Does anyone know why we would have such communication issues between two VMs in the same VNet? Are there specific rules we need to configure to allow communication on port 6443? We are using: Standard build Windows Server 2022 VMs in Azure. ArcGIS Server 10.9 ArcGIS Portal 10.9 And are following the steps documented at https://enterprise.arcgis.com/en/portal/10.9/install/windows/tutorial-creating-your-first-web-gis-configuration.htm. Except that we are using two VMs and not a single machine deployment.
... View more
01-26-202301:30 AM
|
0
|
4
|
479
|
POST
|
Hi - I have just noticed the same issue in 10.9.1 when trying to lock down a stand-alone ArcGIS Server with specific allowedorigins following this doc - https://enterprise.arcgis.com/en/server/10.9.1/administer/windows/restricting-cross-domain-requests-to-arcgis-server.htm. I've used our ArcGIS Online url (e.g. https://
12-19-202209:46 AM
|
0
|
0
|
138
|
IDEA
|
当创建一个托管功能er view from a hosted feature layer, various metadata from the parent layer item is not copied to the view layer item, meaning having to manually copy information between the two. It would be great if, by default or as an option, when creating a hosted feature layer view, all the metadata from the parent hosted feature layer item was copied to the view layer item, including: tags summary description credits terms of use categories The user would still have the capability to ammend these once the view item is created.
... View more
12-16-202207:41 AM
|
3
|
1
|
178
|
IDEA
|
目前在创建托管功能层竞争w, it is not possible to exclude fields from the view that are set as non-nullable. It should be possible to exclude these fields from views. The reason given in the documentation for not allowing non-nullable fields to be disabled is that these may be needed for editing. However, this is only true if the view is intended to be used for editing. For example, we have a layer with some fields that we absolutely want to be populated when editing, so we set these fields to be non-nullable. These fields may contain sensitive/personal information and for GDPR purposes, we do not want all viewers of this data to see or have access to the contents of these fields. We should be able to create a hosted feature layer view that is not editable and that excludes these fields.
... View more
12-16-202206:48 AM
|
0
|
0
|
101
|
IDEA
|
Absolutely agree that if mixed case is supported in postgresql, then it sould also be supported in ArcGIS (as it is with SQL Server & Oracle). This is especially problematic for customers who are transitioning to Esri from open source solutions and we have recently had to go through the painful process of renaming db objects for one customer, just so that ArcGIS will recognise them. Not a good start to their Esri experience!
... View more
10-21-202207:02 AM
|
0
|
0
|
146
|
POST
|
See //www.gobook3.com/t5/arcgis-runtime-sdk-for-net-questions/switching-day-night-mode-styling-for-vector-tile/m-p/1170027 for details of a potential way to implement day/night mode with a VTPK basemap.
... View more
07-01-202202:24 AM
|
0
|
0
|
144
|
POST
|
我们一直尝试发布一个可编辑的有限元分析ture service containing data from a non-Esri PostgreSQL database (i.e. not a geodatabase). I have found various documentation suggesting this is possible, including the following: https://desktop.arcgis.com/en/arcmap/latest/map/publish-map-services/tutorial-performing-web-editing-using-data-from-a-database.htm https://enterprise.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-feature-services.htm We are able to publish an editable feature service that uses data from PostgreSQL tables that meet the criteria (e.g. single geometry column and type, auto incrementing id field etc). However, when we try to add features to a layer in the resulting feature service, we are getting the following error in ArcGIS Pro: ERROR: Unable to complete operation. Rowbuffer creation failed. The table does not have an auto-incrementing column. And a similar error if we attempt to edit in a web map: "addResults":["success":false,"error":"code":1060,"description":"Rowbuffer creation failed. The table does not have an auto-incrementing column.[testedits]"],"updateResults":[],"deleteResults":[] The steps taken were as follows: 1) In ArcGIS Pro, connect to the postgresql database as the data owner user (i.e. the owner of the schema in which the new table will reside). 2) Right-click the database connection and create a new point feature class. 3) Right-click the resulting feature class and add permissions (SELECT/INSERT/UPDATE/DELETE) for the "edit" user that will be used for publishing. 4) In pgAdmin add permissions (ALL) on the sequence used that was created for the objectid field for the "edit" user (otherwise a different permissions error occurs). 5) In ArcGIS Pro - connect using "edit" user and add the feature class/table as a layer to a new map, setting the objectid as the unique id and setting the projection as required. 6) Publish the resulting map as a feature service with editing enabled to ArcGIS Server (registering a new connection with the server if required). Note we are not using Portal. 6) Once published successfully, add the resulting feature service to a new map in ArcGIS Pro (e.g. via Add data from path and using the feature layer url). 7) Start editing and attempt to create a new feature. (The above error occurs at this point) We have also tried various other things, including: Creating a new postgresql table with geometry column and then using the "Add Incrementing ID Field" geoprocessing tool to add an ID column to the table. Using an existing table with an auto incrementing id. All of these methods result in the same error message when attempting to add a new feature to the resulting feature service. If I use pgAdmin to connect as the "edit" user and perform a SQL insert on the same table, the insert is successful and the objectid has been set correctly for the inserted record, which suggests the permissions for the "edit" user are correct. ArcGIS-wise we are using the latest versions: ArcGIS Pro 2.9.3 on Windows Server 2019. ArcGIS Server 10.9.1 (with all current patches installed) on Windows Server 2019. We have so far tried the following for postgresql: PostgreSQL 11.15 with postgis 2.5.5 on Ubuntu 18.04. PostgreSQL 13.7 with postgis 3.2.1 on Ubuntu 20.04. Azure Database for PostgreSQL Flexible Server. All exhibit the same issue. I have also tried the same concept with a SQL Server 2019 database and this works as expected. We are already working with Esri UK support on this, but would be interested to know if anyone else has managed to publish and use an editable feature service from non-esri/geodatabase tables in a postgres database successfully?
... View more
06-10-202211:14 AM
|
0
|
0
|
322
|
POST
|
ArcGIS Pro itself is not an RDBMS, it is simply a client application. However, it can connect to many data sources including: A traditional RDBMS (eg. Oracle, SQL Server, PostgreSQL etc). Esri File Geodatabases stored locally or on a file share. Various other local storage formats (e.g. shapefile, geopackage etc). So depending on many factors, including how you intend to use the data and who will access it, you can use any of the above to store and manage your data. For example, if you are the only user and simply need to manage and analyse a bunch of spatial data, then a File Geodatabase is probably sufficient. However, if you want to allow lots of other users to acces and potentially edit that data, or to consume/query from other non-esri applications, then storing the data in an RDBMS would be a more sensible choice. There are many more reasons for choosing between the different options, but that's the basics.
... View more
06-10-202210:40 AM
|
3
|
1
|
398
|
POST
|
After some further investigation and experimentation, I've managed to get this working as follows: 1) Create two VTPKs in Pro for day/night mode with the same data/layers but different styling using Create Vector Tile Package. 2) Extract (unzip) the "resources" folder from each VTPK into it's own directory. 3) Zip the contents of the resulting "resources" folder(s) in uncompressed format (e.g. 7zip "store" option) into a file called resources.zip. Note don't include the "resources" folder itself, just the child folders. 4) Place the VTPK and resources.zip files in a structure similar to below: Root basemap.vtpk style day resources.zip night resources.zip 5) Use code similar to below to: Load a VectorTileCache from the vtpk. Load an ItemResourceCache from the required resources.zip. Create a new ArcGISVectorTiledLayer using the above VectorTileCache and ItemResourceCache. Set the map basemap as the new ArcGISVectorTiledLayer. public async void SetBasemap(Boolean toggle) { // load tile cache from vtpk String localVTPKPath = Path.Combine(_localFolder.Path, "basemap.vtpk"); VectorTileCache vectorTileCache = new VectorTileCache(localVTPKPath); await vectorTileCache.LoadAsync(); // load resource cache from folder path (should contain an uncompressed zip file called resources.zip containing the vector tile resource cache directory structure String resourceCachePath = Path.Combine(_localFolder.Path, @"style\day"); if (toggle) { if (_currentBasemapMode == "day") { resourceCachePath = Path.Combine(_localFolder.Path, @"style\night"); _currentBasemapMode = "night"; } else { resourceCachePath = Path.Combine(_localFolder.Path, @"style\day"); _currentBasemapMode = "day"; } } ItemResourceCache resourceCache = new ItemResourceCache(resourceCachePath); await resourceCache.LoadAsync(); // create new vector tiled layer and set as basemap ArcGISVectorTiledLayer vectorTiledLayer = new ArcGISVectorTiledLayer(vectorTileCache, resourceCache); _map.Basemap = new Basemap(vectorTiledLayer); } It's worth noting that VTPKs and the styles (ItemResourceCaches) can also be downloaded from ArcGIS Online/Enterprise using the SDK (see ExportVectorTilesTask). In this case we wanted to avoid using Online/Enterprise, hence the above approach.
... View more
05-16-202211:19 AM
|
0
|
0
|
253
|
POST
|
I have a requirement to have separate basemap styling for day and night mode and are using a local vector tile package for basemaps as part of an MMPK. In theory this should be possible with vector tiles, but I can't find any samples or documentation on how this can be acheived in the runtime SDK. The ArcGISVectorTiledLayer class constructor seems to have the option of specifying an ItemResourceCache, which appears to offer a way to override styling, but it can't find much in the way of documentation on what the ItemResourceCache format should be or how to create it. https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.ArcGISVectorTiledLayer.html Does anyone know what the format/structure of ItemResourceCache should be or how to create it? If anyone else has tackled this, I'd be grateful for any insight. John
... View more
05-03-202203:16 AM
|
0
|
1
|
321
|
POST
|
I'd also like to be able to do the same by switching the styling of a vector tile basemap that's part of an MMPK. Did you ever find a way to do this?
... View more
05-03-202203:02 AM
|
0
|
0
|
170
|
POST
|
Thanks a useful link, thanks. Though I was hoping for a way to generate the required renderer json from ArcGIS Pro or something similar, but perhaps that's not possible. It seems like with the mobile SDKs you are largely left to your own devices with regards to symbology etc.
... View more
04-29-202205:46 AM
|
0
|
0
|
203
|
POST
|
你好,我一直在尝试如何应用仁德rers to various locally stored data that are loaded as feature layers. I would like to retreive the layer symbology from a configuration file or similar and don't want to hard-code like in many of the samples. It appears one way to do this would be to use the Renderer.fromJson(string) static method to generate the renderer from stored json and then apply it to the layer. There is no documentation on what format is required as input for Renderer.fromJson(string), but I have done some experiementation and found the following: 1) The json format for the renderer returned from a feature service published from the same data in Pro seems to work. This is similar to what is used in the JS API. 2) The json format for the renderer that is used in the mmap file that is part of an mmpk created from the same data also seems to work. 3) The json format used in a layer file (.lyrx) created from the same data in Pro does not work. So my questions are: A) Is there a better way to store and apply symbology to layers in the .net API? B) If not, then is there a better way to generate the required renderer json for each layer, preferably from Pro? I feel certain someone else will have attempted similar, so any thoughts/experience appreciated. Thanks John
... View more
04-26-202210:09 AM
|
0
|
2
|
225
|
Title | Kudos | Posted |
---|---|---|
2 | 07-07-202308:05 AM | |
5 | 04-19-202307:58 AM | |
6 | 04-04-202308:00 AM | |
1 | 02-07-202308:13 AM | |
3 | 12-16-202207:41 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|