|
POST
|
I feel like I've done this in the past, but I'm stuck on how to make this work now with ArcGIS Pro and Server/Portal: I have a single raster file (a .tif, but have also tried .crf and .cog). It is comprised of a single band containing thematic data. I would like to share this raster/thematic data as an image service via ArcGIS Server/Portal. Currently I have the symbology (colors and value labels) set up as needed via the layer symbology in a map, and have tried exporting that configuration as a raster function template -- but I can not get any of it to stick when sharing it to an image service. I need it so that when a user adds the image service into a new web map, the desired colors are drawn by default and the legend contains the value labels. The closest I have gotten is to get the correct colors to show using three RGB bands, but then the value labels are gone. I've tried using a colormap as well but I can't get the datasets transparent NoData value to work correctly when doing that, and the value labels don't work with that either. Can anyone point me in the right direction for how to make this work? It feels like it should be a simple process, but I'm having trouble finding much documentation on the issue. I haven't tried putting it into a mosaic dataset yet, since it's a just single image, but I suppose I'll try that next. Desired legend when adding service to map Closest I've gotten, correct colors, no legend
... View more
02-16-2022
03:00 PM
|
0
|
13
|
7808
|
|
POST
|
Whoops, yep sorry I just saw that older post and was about to update with a link to that. Thanks!
... View more
01-20-2022
09:35 AM
|
1
|
0
|
1357
|
|
POST
|
Not sure when the change happened, but we've noticed that the Magazine layout for StoryMap Collections now cuts off title text pretty aggressively (see screenshot below). I don't have a screenshot of what it looked like previously, but I'm fairly certain it wasn't cutting text off like it is now or we wouldn't have chosen that layout to begin with. I've tried all sorts of window and screen sizes on desktop and mobile (also embedded in a ArcGIS Hub and unembedded) but the titles are still getting consistently chopped.On mobile it shows a "..." instead, but still shortens the title enough to the point where it still won't be particularly informative. Not sure if this is an unintentional bug from a recent update or if this is a known issue and I should post something in the Ideas forum. I think it would be helpful to let the title text slide up to cover the top and center of the thumbnail image rather than chop it off. It appears as if only 20 or so characters can go on a line and I have to imagine most StoryMap titles are longer than that.
... View more
01-20-2022
09:30 AM
|
0
|
2
|
1368
|
|
POST
|
Thanks for the update! I was able to get the item.update method to work for my purposes. Appreciate you taking a look.
... View more
11-02-2021
10:47 AM
|
0
|
4
|
5341
|
|
POST
|
Bummer, but thanks for the info. If anyone has any ideas for how to achieve this through another method, I'd love to hear it. Looking into using item.update now.
... View more
10-29-2021
12:30 PM
|
0
|
6
|
5379
|
|
POST
|
I'm writing a notebook to export a hosted feature layer that I own as a File Geodatabase item into my content, using item.export . This would be used as a backup copy of my data, if needed. I then intend to schedule a task for the notebook to have it run on its own periodically -- and ideally would like it to overwrite the previously-created backup each time so that I don't have a bunch of items creating clutter and taking up storage space. The item.export method has an argument for 'overwrite' to replace an existing item, which sounds like what I need, however I'm either misunderstanding it or it doesn't seem to be working correctly. When I set overwrite = true, it just creates a new item in my content with the same exact name. dataitem = gis.content.get(#itemid)
backupname = f'{dataitem.title} Backup'
dataitem.export(backupname, 'File Geodatabase', parameters=None, wait=True, overwrite=True) Any idea if this is a bug or intended behavior? Is there a better way to do this? I tried using a search to locate the previous backup so I could just delete it -- but even when feeding in the exact item name, it would occasionally pull up some other item in the org.
... View more
10-29-2021
08:45 AM
|
0
|
8
|
5399
|
|
POST
|
@Anonymous UserAha! Thank you Josh, I looked all through the Notebook itself for an option to update the version but didn't think to check the Settings on the item detail page. That is very helpful.
... View more
10-22-2021
12:03 PM
|
0
|
0
|
1686
|
|
POST
|
This is more of a notice than a question, but perhaps someone can confirm what I've found. Below is a snippet of code to create a spatially enabled data frame from a web layer. The layer is coming from a Federated Server/Portal, rather than an ArcGIS Online hosted feature layer. Running the script results in error code (498): Invalid Token. This does not occur when using hosted feature layers stored in ArcGIS Online, but does occur with other layers stored in our Portal. Using an enterprise vs built-in ArcGIS Online account doesn't make a difference, and the items are shared publicly. Data opens fine in a web map. from arcgis.gis import GIS
import pandas as pd
gis = GIS("home")
npdesOD = gis.content.get("1550e796acb346baa743e90c13a19bf4").layers[0]
npdesOD_sdf = pd.DataFrame.spatial.from_layer(npdesOD)
npdesOD_sdf.head() I have an older script that was created several months prior which uses the same workflow to create a spatially enabled dataframe, and it runs without issue. I can copy that exact working code into a new AGO Notebook and it will fail with error code 498, though. Looking at the Info tab for the Notebook, I realized that the older, working Notebook is using the 4.0 Runtime, while all new Notebooks I create are using the 5.0 Runtime. As a workaround for this issue, I was able to 'Save As' the old 4.0 Notebook, then delete the contents and write my new script to get around the bug. This works fine. However I'm hoping that the issue will be fixed for the 5.0 Runtime Notebooks, so that this workaround isn't needed. It also doesn't help users who don't have an old Notebook lying around.
... View more
10-22-2021
10:17 AM
|
0
|
2
|
1715
|
|
IDEA
|
Been waiting on this one for a while now. If allowing the user to choose a specific color is difficult for whatever reason, I'd even be okay with the option to choose something neutral like black or white from a list, instead of it always being blue. For certain themed dashboards, the blue can really stick out like a sore thumb.
... View more
09-20-2021
10:46 AM
|
0
|
0
|
5303
|
|
POST
|
That's unfortunate, but I appreciate the answer! The JSON workaround doesn't really apply in my specific case, though that is a good trick to know.
... View more
09-13-2021
07:45 AM
|
0
|
0
|
2575
|
|
POST
|
Maybe a weird question, but is it possible to add additional layers / end-points to an existing hosted feature layer in ArcGIS Online? I know you can create a hosted feature with multiple layers / end-points in a single service/item, but once you upload it there doesn't seem to be a way to add additional layers. Perhaps using the REST API or ArcGIS API for Python? Have found myself in a situation where this would be beneficial, rather than recreating or uploading an additional hosted feature layer. As an example, this Living Atlas layer for Recent Hurricanes has three layers / end-points in one service. https://services9.arcgis.com/RHVPKKiFTONKtxq3/ArcGIS/rest/services/Recent_Hurricanes_v1/FeatureServer What if you wanted to add a fourth?
... View more
09-10-2021
09:38 AM
|
0
|
3
|
2745
|
|
POST
|
@Anonymous Userbit of an update on this -- it seems the Executing issue can still last beyond 24 hours. Included a screenshot below though not sure how legible it will be -- but the task got stuck executing on August 31, and I paused it after noticing it was skipping on Sept 2. On September 8, I reactivated the same task and the Execution problem persisted, skipping every task after. I'll recreate the task to fix it for now -- but I think the troublesome part here is that we have no way of being notified when this issue occurs. I have notification emails setup within the script notifying me when it runs into an error, and set up some logging as Tim suggested in this thread, but unfortunately the Executing issue prevents the script from running at all once it gets stuck. Some sort of built-in notification system could be really handy, if feasible. Or a setting to cancel a Notebook if it runs longer than X amount of time. Thanks for your time. Task was paused on Sept 2 and reactivated on Sept 8
... View more
09-09-2021
09:01 AM
|
0
|
0
|
6905
|
|
IDEA
|
They said again at the ESRI User Conference 2021 in July that they don't currently have any plans to bring Field Maps to Windows. I can't remember if they gave a reason or not, but I would guess it has to do with the size of the user base -- most people are not taking full-blown Windows 10 out into the field, or at least, a very tiny percentage relative to the number users with devices running Android/iOS. They did mention though that with the recent announcement of Windows 11 being able able to run Android apps, it's possible that Field Maps will make its way to Windows that way. Windows 11 is coming October 5th, but I think the Android app functionality was delayed until 2022.
... View more
09-03-2021
12:23 PM
|
0
|
0
|
4777
|
|
IDEA
|
@PeterKnoop I think that solution would definitely be a welcome improvement. We do often have cases though where someone leaves the org and their coworkers either forget or didn't realize their AGO account held some important content until after they are gone. This solution wouldn't help in those instances, unfortunately. I also worry that some users might not understand how certain items are connected and reliant upon one another when transferring them (especially Survey123 projects), whereas our coordinators generally would be. Ideally they would work together though and that wouldn't be a problem.
... View more
08-24-2021
10:51 AM
|
0
|
0
|
2861
|
|
POST
|
As far as the email alerts go for ArcGIS Notebooks, this ESRI sample notebook is helpful (or if you go to the Notebooks tab in AGO, it's in the sample section labeled as 'Administration: Deploy automatic notifications'). I followed the example for the IFTTT solution and just swapped out Twitter for their email trigger, instead. Works great.
... View more
08-20-2021
10:13 AM
|
0
|
0
|
1201
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 04-24-2026 09:14 AM | |
| 1 | 09-19-2023 08:22 PM | |
| 1 | 06-24-2022 09:52 AM | |
| 1 | 03-26-2026 12:44 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 hours ago
|