I created a custom python toolbox (atbx) in ArcGIS Pro 3.5. This tool takes 2 inputs : a Mosaic Dataset and a line vector (Feature Set). It is supposed to return a json file with the pixel values at some position on the line (every x meters).
It works fine in ArcGIS Pro. I shared the Mosaic dataset as Imagery Layer and I can visualize it in MapViewer. In Map Viewer, I draw a line, and it was added to my layers. When I run the tool, I can select the mosaic dataset and the line just fine.
But when I run the tool, I get this error : "ERROR 000840 : The value is not a Raster Dataset".
Why is that ? I shared the Mosaic Dataset as an Imagery Layer, so it should be recognized as a Mosaic Dataset, shouldn't it ?
Solved! Go to Solution.
It seems the type "Mosaic dataset" is not kept once the data is shared.
Once on the Portal, it must be referred to as "Image Service", not as mosaic dataset. Changing the parameter type in the tool properties allows to select an image layer in map Viewer.
It seems the type "Mosaic dataset" is not kept once the data is shared.
Once on the Portal, it must be referred to as "Image Service", not as mosaic dataset. Changing the parameter type in the tool properties allows to select an image layer in map Viewer.