POST
|
Maybe you (or somebody else) has the project open in ArcGIS Pro?
... View more
12-23-2022
05:44 AM
|
0
|
0
|
371
|
POST
|
I tried this trick of creating a map from a feature layer and only sharing the map with the Hub group and it appears to work well. One caveat is that initially I had identical names for the feature layer item and the web map item and this resulted in the hub displaying the feature layer (with the download button) which is exactly what I'm trying to prevent. I looked at the network trace and could see the Hub doing some some sort of search by name and getting both the map and feature layer returned. Altering the name of one of the items fixed it in that the search only returned the map item. This is the search that returned both the map and the feature layer https://opendata.arcgis.com/api/v3/datasets?fields%5Bdatasets%5D=slug%2Cboundary%2Cextent%2CrecordCount%2CsearchDescription%2Cstatistics&filter%5Bslug%5D=fieldmuseum%3A%3Atest-no-download-1-layer-fm-2022
... View more
12-20-2022
08:18 PM
|
0
|
0
|
416
|
IDEA
|
Thanks Duncan, but I'm still not seeing how to use the Package toolset to code the equivalent of "Share as Web Map".. I ran "Package Map" followed by "Share Package" but I ended up with the .mpkx file being upload to ArcGIS Online as a Map Package item. What I want to is end up with a Web Map item in ArcGIS Online (and a related Feature Layer if needed). BTW - I did figure out how to accomplish thi using a combination of arcpy, REST APIs, and the Python for ArcGIS API, but it was quite a bit of relatively complicated code.
... View more
12-19-2022
12:51 PM
|
0
|
0
|
1122
|
IDEA
|
I have a map in ArcGIS pro that I can upload to ArcGIS online using the "Share as Web Map" dialog, which gives me various options for how I want the data copied (in my case it creates an ArcGIS Online web map and a feature layer). I'd like to automate that in Python but having some trouble figuring out how to do it. BTW - I first raised this a a question so there is more discussion there
... View more
12-16-2022
10:14 AM
|
17
|
11
|
1237
|
POST
|
Right - I have read through that and have coded it in Python but sharing the web layers is not what I need to do. I need to upload the complete map to ArcGIS online - just like it is done with "Share as Web Map"
... View more
12-15-2022
04:29 PM
|
0
|
0
|
1132
|
POST
|
I have a map in ArcGIS pro that I can upload to ArcGIS online using the "Share as Web Map" dialog, which gives me various options for how I want the data copied (in my case it creates an ArcGIS Online web map and a feature layer). I'd like to automate that in Python but having some trouble figuring out how to do it. This question was asked previously but the answer seems to imply that I have to build the web map from scratch using the ArcGIS Api for Python WebMap object, then call the save() method. Even if I do that, I suspect that does not handle all of the options available on the ArcGIS Pro Share as Web Map dialog. I was hoping I could do it with more simply with arcpy objects. Has anybody been able to do this? I'm on ArcGIS Pro 2.9.5
... View more
12-15-2022
03:13 PM
|
0
|
5
|
1168
|
POST
|
I think in our case, making it inconvenient would be good enough. For layers coming from the ArcGIS Server, I removed the 'Extract' capabilities. With this I no longer get the Data->Export option is ArcGIS Pro. As you point out, I could still write a Python program to query the layer and build a local copy of the data. I see no way to remove the "Download" button in Hub. The download request are going to https://opendata.arcgis.com which I'm not familiar with.....
... View more
12-02-2022
04:19 PM
|
0
|
0
|
715
|
POST
|
I have a set of quite large SQL Server database tables that contain the required foreign keys to form a many to many relationship. I'd like to create an ArcGIS relationship on those tables but it appears the TableToRelationshipClass tool actually creates a new intermediate table by copying the data. Of course this means any updates by my app are not included in the relationship (unless I modify the app). Is there any way to create a many to many relationship on the existing tables?
... View more
12-01-2022
10:17 AM
|
0
|
0
|
235
|
POST
|
Thanks Josh. This article appears to confirm your comment. However, even the layer in the article that ESRI's PatrickHammons1 says is not downloadable is indeed exportable from ArcGIS Pro. I know that I've seen layers in ArcGIS Pro that have export disabled but I suspect that those came from ArcGIS Server REST services and not ArcGIS Online.
... View more
11-29-2022
07:18 AM
|
0
|
2
|
739
|
POST
|
I have a hosted feature layer and I want to prevent users from doing any kind of export or download. I thought unclicking the checkbox "Allow others to export to different formats" on the item's Settings tab would do the trick. It does remove the remove the "Export Data" option from the item's Overview tab, but it seems there are many other ways to export the data that are still enabled. For instance: In ArcGIS Hub - search for the item -> Download Options In ArcGIS Pro - add the item to a map, then right click -> Data -> Export Features Is there any way to really lock down an ArcGIS Online hosted feature layer?
... View more
11-28-2022
03:24 PM
|
0
|
4
|
794
|
POST
|
Perhaps it doesn't work on a layer? Try to run it against the layer's datasource. Something like this: flds = [fld.name for fld in arcpy.ListFields(line_lyr.dataSource) if fld.editable]
... View more
11-01-2022
03:06 PM
|
1
|
0
|
318
|
POST
|
I would make 2 passes through the table. First with a search cursor to find and record the duplicates, second with an update cursor to update the two fields as needed. Something like this...... addrkey_to_streets = dict()
with arcpy.da.SearchCursor(table, ['ADDR_KEY', 'CROSS_ST_NAMES']) as cursor:
for addrkey, street in cursor:
if addrkey not in addrkey_to_streets.keys():
addrkey_to_streets[addrkey] = {'first': street, 'second': None}
else:
addrkey_to_streets[addrkey]['second'] = street
with arcpy.da.UpdateCursor(table, ['ADDR_KEY', 'CS1StreetName', 'CS2StreetName']) as cursor:
for addrkey, cs1_street, cs2_street in cursor:
cursor.updateRow([addrkey, addrkey_to_streets[addrkey]['first'], addrkey_to_streets[addrkey]['second']])
... View more
10-27-2022
12:28 PM
|
1
|
0
|
332
|
POST
|
Here is a very inelegant way to do it - add this after your code fixed_range_values = ', '.join([r if r.split('-')[0] != r.split('-')[1] else r.split('-')[0] for r in range_values.replace(' ','').split(',')])
... View more
10-27-2022
12:01 PM
|
1
|
1
|
416
|
POST
|
Can you post the error that you are seeing? The traceback stack trace might be useful too. Typically adding the self signed cert to your machine's (the one where you are running pycharm) cert store as a trusted root is all you need to do. I agree with Dan in that you should try other arcpy api calls too to see if they have the same problem.
... View more
10-27-2022
07:42 AM
|
0
|
0
|
263
|
Title | Kudos | Posted |
---|---|---|
1 | 03-06-2024 11:59 AM | |
1 | 12-11-2023 03:20 PM | |
2 | 11-17-2023 06:52 AM | |
1 | 10-12-2023 07:38 AM | |
1 | 10-01-2023 04:02 PM |
Online Status |
Offline
|
Date Last Visited |
4 weeks ago
|