Hello, I am facing problems with rasters in mosaic. When I add a raster using the Add Raster To Mosaic tool in ArcGIS Pro, everything works right, and I can see both boundaries and image:
On the contrary, if I export the python code to do that:arcpy.AddRastersToMosaicDataset_management(mosaic,
and I run it with a Python interpreter. I can see only the boundaries of the raster and not anymore the image:
So a brief recap: same raster image, same mosaic, two different behaviour by running the tool using in the first case ArcGIS Pro and the second arcpy. Do you have any suggestions?
Hi matteorizzi, I'm unable to reproduce your issue. Are you running this from Python Window or outside of Pro? It's possible the symbology needs to be updated for the raster to display. See if the raster displays if you zoom in closer, say 1:24, and adjust visibility ranges if needed. Make sure you build pyramids for the imagery (On catalog, right-click Mosaic Dataset >> Modify >> Build Item Pyramids and Statistics). You might also want to double check the variables in your code snippet and make sure they have the expected values. If you're on an older version of Pro, upgrading to a newer version might help.