Esri / OptimizeRasters

OptimizeRasters is a set of tools for converting raster data to optimized Tiled TIF or MRF files, moving data to cloud storage, and creating Raster Proxies.
Apache License 2.0
126 stars 50 forks source link

Define S3 vsicurl for raster proxies #148

Open mapface opened 1 year ago

mapface commented 1 year ago

Is there a way to manually define the s3 vsicurl?

Currently my raster proxies are created with the following vsicurl:

http://bucket-name.s3.ap-southeast-2.amazonaws.com/...

However these will not view in ArcPro, unless I manually change the vsicurl to the following, then they display perfectly fine:

http://s3.ap-southeast-2.amazonaws.com/bucket-name/...

My OR command is as follows:

python.exe C:\Image_Mgmt_Workflows\OptimizeRasters\OptimizeRasters.py -config=C:\Image_Mgmt_Workflows\OptimizeRasters\Templates\Overviews_to_MRF_LERC_pr.xml -input="C:\..." -clouddownload=false -tempinput=C:\... -tempoutput=C:\... -cloudupload=true -clouduploadtype=amazon -outputprofile=profile_name -outputbucket=bucket_name -output=path -cache=C:\i... -rasterproxypath=C:\...

Chamlika commented 1 year ago

@mapface Can you add the following line in bold manually into your credentials file for the output profiles name (profile_name) as referenced in your OR command and see if that resolves the issue. For more info on the earlier update related to addressing issue, please refer to https://github.com/Esri/OptimizeRasters/commit/25c3ae7281728666e56779ff08b63981401cd999

addressing_style = path

mapface commented 1 year ago

Hi @Chamlika I added the line into my credentials files as you described to no effect, I also tried adding the aws_endpoint_url= variable into my credentials file as well ( like the link above) but also didn't work. I was still getting the same url format.

I was about to get around the issue with changing the files by editing some proxy settings on my PC but it would still be good to have a way to designate how the url is constructed.