Define/Build Overviews with ArcPy

475
4
06-13-2022 11:54 PM
Labels (1)
IceCreamBean
New Contributor II

Using ArcPro 2.9 I can Define and Build Overviews using all the default settings successfully (output is TIF overviews), but trying the same in a script using Arcpy with the default ArcPro environment the TIF overviews are consistently blank no matter what I try. That is, the actual TIF files themselves are mostly empty (only a few kilobytes each) and although they are in the mosaic dataset table, they do not draw at all. 

Is this a known bug? Even when copying the python output from ArcPro it will not work in a standalone script. 

Tags (2)
0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

Build Overviews (Data Management)—ArcGIS Pro | Documentation

You are using that?  T

Definition Query perhaps?

BUG-000103572: Overviews are not generated for a mosaic dataset whe.. (esri.com)

Bug BUG-000103572
Synopsis
Overviews are not generated for a mosaic dataset when running the Build Overviews tool with a definition query in ArcGIS Pro.


... sort of retired...
IceCreamBean
New Contributor II

Hi Dan, thanks for the reply. There is no definition query. 

The command is as follows:

arcpy.DefineOverviews_management(mosaic_dataset, overview_dir)
arcpy.BuildOverviews_management(mosaic_dataset)


 

0 Kudos
DanPatterson
MVP Esteemed Contributor

Don't know, but this appears in the help topic

  • You cannot build overviews for a referenced mosaic dataset.

If you think it is a bug, then I would flag it to tech support.  At least they can track down why your process is failing.


... sort of retired...
IceCreamBean
New Contributor II

Hi Dan, thanks for the reply. Not using a reference. I'll look into tech support. 

0 Kudos