Mosaic Dataset Overview Image Parameters not honored when defined via arcpy

84
2
02-05-2019 04:27 AM
NicolasDechamps1
New Contributor

Hi!

I am using arcpy.DefineOverviews_management() to define Mosaic Dataset Overviews, passing the parameters  resampling_method='NEAREST' and compression_method='LZW', but these settings DO NOT take effect. When I later build the Overviews and open an image file in an image viewer, I find out that it has been generated with JPEG compression!

When I use the corresponding GP-Tool "Define Overviews" in the UI with the exact same parameters/settings, then my Overviews are generated with compression LZW as I wanted.

For the life of me, I cannot find out why this doesn't work when scripted...?

When I output GP-Messages from the script with arcpy.GetMessages() it even confirms that NEAREST and LZW have been passed as parameters.

Thanks for any help!

Nicolas

0 Kudos
2 Replies
DanPatterson_Retired
MVP Esteemed Contributor

ArcMap or ArcGIS Pro?  arcpy is not the same between the versions, so something may be amiss 

0 Kudos
NicolasDechamps1
New Contributor

It is arcpy with ArcGIS Desktop.

0 Kudos