Esri / mdcs-py

MDCS is an acronym for Mosaic Dataset Configuration Script and is the entry point to a collection of Python classes/libraries that could be consumed by a Python client application to complete a given workflow for creating a mosaic dataset, populating it with data, and setting all required/desired parameters.
Apache License 2.0
64 stars 29 forks source link

Build Overviews - Empty TIFS? #99

Closed mapface closed 1 year ago

mapface commented 2 years ago

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

vijaygit02 commented 2 years ago

@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.

mapface commented 2 years ago

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.")
vijaygit02 commented 2 years ago

@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 commented 1 year ago

@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.