Skip to content

Commit

Permalink
fix: suppress aux xml file creation (#121)
Browse files Browse the repository at this point in the history
* fix: suppress aux xml file creation

* fix: add comment to explain gdalinfo GDAL_PAM_ENABLED config option
  • Loading branch information
amfage authored Aug 30, 2022
1 parent aa86be8 commit c674366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/non_visual_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def check_color_interpretation(self, gdalinfo: Dict[str, Any]) -> None:

def run(self) -> None:
gdalinfo_success = True
gdalinfo_command = ["gdalinfo", "-stats", "-json"]
# Set GDAL_PAM_ENABLED to NO to temporarily disable PAM support and prevent creation of auxiliary XML file
gdalinfo_command = ["gdalinfo", "-stats", "-json", "--config", "GDAL_PAM_ENABLED", "NO"]
try:
gdalinfo_process = run_gdal(gdalinfo_command, self.path)
gdalinfo_result = {}
Expand Down

0 comments on commit c674366

Please sign in to comment.