|
POST
|
Hi brains trust. I need a bit of support here. I have a python script that accesses an ArcOnline feature service and downloads the data, saving it as a feature class in a local (network) GDB. I know the script works as I have it running on one PC, but on another, despite running it in the same software (IDLE for ArcGIS Pro) it fails. The error is that the parameters are not valid and the input dataset does not exist or is not supported. This is despite the same login credentials for ArcOnline being used. I'm at a loss as to why it won't work. It works fine for all my other scripts which are point/line/polygon feature services. The only difference is this one is a related table for a line feature service. The image below shows the same script and the results (left screen is the failure on the remote PC - right screen is on my PC).
... View more
05-13-2022
12:43 AM
|
0
|
14
|
4023
|
|
IDEA
|
@JohannesLindner Thanks for the reply and link to other post. I can understand how this sort of concept would have a negative impact on performance, especially on regularly changing data or map views. It would just be nice if features setup for Field Maps were honoured when you open a webmap in ArcGIS Pro or ArcOnline Map Viewer for a consistent user experience.
... View more
05-12-2022
05:11 PM
|
0
|
0
|
2872
|
|
POST
|
HI All. I've been looking at a couple of backup tools in the ArcGIS Online Marketplace and whilst I'm happy that the one I've trialed does a pretty decent job of downloading all of our content to a local folder for backup purposes, my management want me to try scripting it in-house first. I'm already download feature services as feature classes in GDB's on a daily basis to capture changes to data for restoration after accidental deletion, but I'd like to go a step further. I've been looking at the ArcGIS API for Python site and tried the following script (to no avail). Can anyone point out how I might be able to download both WebMaps and WebApps as JSON files, so that if they ever get deleted, we could republish them? from arcgis import gis
from arcgis.gis import GIS
### Access the stored password with keyring and sign into the GIS # https://community.esri.com/t5/arcgis-online-blog/connect-to-the-gis-in-python-scripts-without/ba-p/889867
import keyring
pw = keyring.get_password("ArcGISOnline", "Username")
gis = GIS("https://maps.arcgis.com", "username", pw)
print("Connected to the GIS")
item = gis.content.get('item_ID_here')
print (item)
item.get_data()
print (item) Supposedly the get_data() line will download the item (or it's content?) to the default temp folder, but I can't see anything appearing (%temp% in File Explorer). ArcGIS API for Python: Managing your content (downloading-your-items) Cheers!
... View more
05-12-2022
12:06 AM
|
0
|
0
|
1375
|
|
IDEA
|
I've been experimenting with Arcade in Field Maps and are loving the use of Intersect and FeatureSetByName for calculating values based on feature intersections with other layers. I wanted to take this a step further with labels in ArcGIS Pro (though would be good in ArcOnline too) where a feature is labeled based on it's intersection of another layer. For instance, a point feature inherits the name of an underlying Plantation polygon, or a fire boundary polygon labels with the total area of intersected vegetation polygons (instead of having to generate new polygons through an intersect and labelling those).
... View more
05-11-2022
09:02 PM
|
1
|
3
|
3195
|
|
POST
|
You're a champ! That works perfectly. Thank you muchly.
... View more
05-04-2022
10:43 PM
|
0
|
0
|
1822
|
|
POST
|
Hi brains trust. I'm trying to use Arcade to calculate a value in Field Maps based on the intersection of the new point feature with 2 underlying polygons layers. I've successfully managed to get a value from a field in one layer, but I want it to test it for null values and then return a value from a second layer if null = true. var BufferedFeature = Buffer($feature, 20, 'meters')
var intersectLayer1 = Intersects(FeatureSetByName($map, 'Layer1'),BufferedFeature)
var intersectLayer2 = Intersects(FeatureSetByName($map, 'Layer2'),BufferedFeature)
for (var f in intersectLayer1){
var name1 = f.Field
}
for (var f in intersectLayer2){
var name2 = f.Field
}
IIf(name1=='',name2,name1) var BufferedFeature = Buffer($feature, 20, 'meters')
var intersectLayer1 = Intersects(FeatureSetByName($map, 'Layer1'),BufferedFeature)
var intersectLayer2 = Intersects(FeatureSetByName($map, 'Layer2'),BufferedFeature)
for (var f in intersectLayer1){
IsEmpty(f.Field)=='true';
for (var f in intersectLayer2){
return f.Field
}
return f1.Field
} I've tried a few variations of the above codes, and the Field value from Layer 1 returns correctly when it does intersect, but can't get it to return the Field value from Layer 2 when Layer 1 does NOT intersect (and Layer 2 does).
... View more
05-04-2022
10:07 PM
|
0
|
3
|
1865
|
|
POST
|
Got an answer to this on a dedicated post: Solved: Re: Can we set a calculated field to only calculat... - Esri Community In summary, it needs to be done server side, which means Attribute Rules which at present can only be done in ArcGIS Pro and not ArcOnline.
... View more
05-04-2022
05:11 PM
|
1
|
0
|
7750
|
|
POST
|
Hi Aaron. I suspected that the answer might be around Attribute Rules, but also couldn't find anything about them working in ArcOnline yet, so thanks for clarifying that.
... View more
05-04-2022
05:07 PM
|
0
|
0
|
2957
|
|
POST
|
Just putting it out there - this thread has been handy. I wanted to do exactly what you have both done but had no idea how to achieve it. New problem though - when offline, it obviously can't read the whole list unless all features are also offline. Any idea how to delay the calculation to happen at the time of sync to ensure unique values?
... View more
05-03-2022
11:44 PM
|
1
|
1
|
7778
|
|
POST
|
I've just started using Calculated Expressions in fields in feature services used in offline maps in Field Maps. So far, it's been great, but I do have a question. Is it possible to set a field to trigger the calculation when the data is syncronised to prevent duplicate values being calculated? In my particular instance, I'm calculating an incrementing ID that reads the existing features, finds the max value and adds 1 to create a new value. This works fine when in online mode, but when offline, it only reads the features that are also offline, and thus only increments upwards from there, resulting in duplicate values. If the calculation could be fired on sync, then it would (hopefully) read all values in the feature service first and calculate a new unique value.
... View more
05-03-2022
11:24 PM
|
1
|
6
|
3064
|
|
IDEA
|
Maybe if in the app, you could open a map and then load a GeoPDF that gets saved as an image in the Markup layer instead of in a dedicated Feature Service even. It could be a really handy function and give simpler apps like Avenza a run for their money.
... View more
05-02-2022
05:49 PM
|
0
|
0
|
5669
|
|
POST
|
Surely someone here has some idea or can point me to a good guide/resource to digest? I haven't had much luck finding documentation on this myself.
... View more
04-26-2022
07:09 PM
|
0
|
0
|
764
|
|
IDEA
|
I would have given you kudo's just for the detail in your suggestion, but I also happen to agree with the request completely. We also work in the forestry space, and the ability to stream or navigate with the application with the screen on but locked or in a low power mode would be very handy for our field workers. We have also found that the location accuracy resets every time you lock the screen and find it really annoying (time waster), unless you are streaming - in which case that will carry on with the screen off and still be okay when you turn it back on (assuming the calculated accuracy doesn't drop below the set threshold).
... View more
04-26-2022
12:46 AM
|
0
|
0
|
3248
|
|
IDEA
|
@RussellBrennan Hi Russell. Just wondering if you have any updates on when we might see the improvements you mentioned above to the Truncate Table and Delete Rows tools?
... View more
04-19-2022
12:42 AM
|
0
|
0
|
4973
|
|
POST
|
Hi @BrettGovernanti1 I've just seen your reply (posted the thread using the wrong account so didn't get notified. I just tried out your suggestion and it works well. Can't remember what the original use case-problem was but this definitely works well. Funnily enough though, when setting up the little test I did, the SUM dynamic text element was very unpredictable. When setting it to Visible rows, it would show the total of all rows still, but as soon as I added in the /1000 to convert to Kilometres, it would show the correct visible only figure. Tried a number of ways to get it to show what it should depending on the settings, but only the modified version of the text returned an accurate result.
... View more
04-18-2022
09:33 PM
|
0
|
0
|
9325
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Sunday | |
| 1 | 2 weeks ago | |
| 1 | 08-24-2025 06:11 PM | |
| 1 | a month ago | |
| 1 | 10-08-2024 09:01 PM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|