mdcs-py icon indicating copy to clipboard operation
mdcs-py copied to clipboard

Build Overviews - Empty TIFS?

Open mapface opened this issue 2 years ago • 3 comments

Having an additional issue with empty TIFS being created from the BO command, config is attached along with log file - runs without errors however the TIFs are quite small and nothing draws in ArcGIS Pro.

create_md_build_overview.txt create_build_overviews_20220627T111706.txt tif_overviews

When I define and build overviews in ArcPro they come out fine:

arcpro_py_export.txt tif_overview_pro

mapface avatar Jun 27 '22 01:06 mapface

@mapface , this can happen if for some reason the mosaic is not able to access the underlying imagery. Can you confirm if the primary rasters load fine in Pro and if they do can you try running BO through Pro once just to see if the issue persists or not. MDCS is just a wrapper around the inbuilt GP tools, so most probably if for some reason things don't work out in Pro they will not work out in MDCDs. Hope this helps.

vijaygit02 avatar Jun 29 '22 11:06 vijaygit02

I can confirm the primary rasters load fine in pro, and as I said in my original post running BO in Pro builds them successfully it's just using arcpy results in blank overviews. The primary rasters are MRF proxies with the data in AWS S3.

Running a simple python scripts like below creates the overviews no problem as well -

import arcpy

overview_dir = r"D:\imagerydata\Projects\Example\Overviews"
md = r"D:\imagerydata\Projects\Example\MD.gdb\MD"

print("creating TIF overviews.")
arcpy.management.DefineOverviews(md, overview_dir)
print("TIF Overviews defined.")
arcpy.management.BuildOverviews(md)
print("TIF Overviews created.")

mapface avatar Jul 19 '22 23:07 mapface

@mapface , The above comment first says "just using arcpy results in blank overviews" and then you have attached a script (uses arcpy) through which overviews are getting generated fine? Are you running this script inside Pro or in outside Pro as a stand alone script.

Vijay

vijaygit02 avatar Jul 26 '22 07:07 vijaygit02

@mapface , Since we haven't heard back from you I am closing this issue for now however feel free to reopen it anytime you need further assistance.

vijaygit02 avatar Oct 20 '22 08:10 vijaygit02