Skip to content

Commit

Permalink
fix to correct the prefix in raster proxy files when local files get …
Browse files Browse the repository at this point in the history
…pushed to cloud using the cmd-line -usetoken is set to true.
  • Loading branch information
Chamlika committed Mar 4, 2019
1 parent b55e864 commit 7b66d7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions OptimizeRasters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# ------------------------------------------------------------------------------
# Name: OptimizeRasters.py
# Description: Optimizes rasters via gdal_translate/gdaladdo
# Version: 20190224
# Version: 20190303
# Requirements: Python
# Required Arguments: -input -output
# Optional Arguments: -mode -cache -config -quality -prec -pyramids
Expand Down Expand Up @@ -4461,8 +4461,8 @@ def __str__(self):


class Application(object):
__program_ver__ = 'v2.0.4d'
__program_date__ = '20190222'
__program_ver__ = 'v2.0.4e'
__program_date__ = '20190303'
__program_name__ = 'OptimizeRasters.py {}/{}'.format(__program_ver__, __program_date__)
__program_desc__ = 'Convert raster formats to a valid output format through GDAL_Translate.\n' + \
'\nPlease Note:\nOptimizeRasters.py is entirely case-sensitive, extensions/paths in the config ' + \
Expand Down Expand Up @@ -5295,6 +5295,9 @@ def run(self):
if (not isUseToken):
isUseToken = self._base.getUserConfiguration.getValue(UseToken)
cfg.setValue(UseToken, self._base.getBooleanValue(isUseToken))
if (self._args.rasterproxypath and
cfg.getValue(UseToken)):
cfg.setValue(UseTokenOnOuput, True)
if (isinput_s3):
cfg.setValue('iss3', True)
in_s3_parent = cfg.getValue(CIN_S3_PARENTFOLDER, False)
Expand Down
Binary file modified Setup/OptimizeRastersToolsSetup.exe
Binary file not shown.

0 comments on commit 7b66d7e

Please sign in to comment.