Morning,
I have a .tif raster which I would like to add to AGOL in a web map for visualisation purposes only.
I have done this before but seem to be running into some trouble remembering how best to approach it.
I've tried following methods
The annoying this is I did this about 6 weeks ago and have the raster file in a web map as a layer and it works. The only difference I can see between the file that works is in the details in the overview tab it just has source, size and ID no mention of service definition file or tile package.
I know this is a bit all over the place but can anyone suggest the most effcient way of sharing raster file to AGOL for use in a web map?
Thanks,
Andy
I am going to share a useful video I have used to help with this process. Also, there is some additional information that is needed to be known. AGOL doesn't love raster's projected outside of Web Mercator in a Web Mercator projected map. If you want to use a different projection, the basemap must be your raster and your raster only, you even have to remove the Hybrid Reference Layer. To make things easier, I always collect my raster's in Web Mercator so I can overlay Esri basemaps with mine.
There are two ways I use to share raster's to AGOL
Gov pays homeowners to switch to solar (youtube.com) - this YouTube video walks you through the steps on how to generate your own tiles manually and share online, so you are not consuming AGOL credits (I recommend writing these steps down, so you don't have to rely on video). One time this took me 15 hours because I was generating over a million tiles and my computer wasn't outfitted for this. THINK ABOUT YOUR PROJECTION.
The other way- after you clean up your raster(s) and if you are using ArcGIS Pro, highlight all your layers of interest and then right click to and go down to share layer to online, go through the motions of sharing. This way will generate tiles and consume AGOL credits. This works much faster.
I will also share my word document I use, for when I manually generate my own tiles. There are some additional notes that will help speed things along and there is a model builder that helps me project my unprojected raster's by the masses (120+ raster's at a time). IGNORE MODEL BUILDER unless you think you need it.
You can also create your own custom basemap gallery for your organization. This makes it super easy to add a basemap that you have previously created into a new map. You can also set a default basemap for your organization so every new map starts with it. This also follows to any new ArcGIS Pro projects.
Create a custom basemap gallery for your organization (esri.com)
Morning @Nick_Creedon
Thanks for your reply, very helpful to have some clarity on the best approach.
Sharing as a web tile layer does the job, strange that it wasn't previously but not overly surprising. I was probably missing a step somewhere having tested out the various options and just become blind to it all.
Although the raster does appear in AGOL and I can visualise it as a layer there which is the desired outcome I was after. This raster does have a white section around the satelitte imagery, could this be because I clipped the data to an area of interest to reduce the overall size of the raster file?
It is a Tile Layer now in AGOL?
Did this white section popup in ArcPro or after you shared it to AGOL?
I have also had something similar happen to me when clipping rasters in ArcPro. I would use a polygon to clip an area of interest and occasionally the raster would clip but instead of the clipped portion being removed, it turns white. I simply restart my process and don't have any issues second time around, I don't know how to recreate the issue, kind of like what you said, I was probably missing a step somewhere.
Going to add a link on removing backgrounds, not sure this is the workflow that is needed though.
How To: Remove the Background of Raster Imagery in ArcGIS Pro (esri.com)
It is now a tile layer in AGOL and the white section did appear after sharing it to AGOL.
Yeah, I've had this before it isn't super important in this case, next time I'll just take my time with the process and see what happens. Thanks for the link.