geosolutions-it / imageio-ext

Additional plugins and extension for the standard Java ImageIO library
Other
144 stars 83 forks source link

Support S3 URLs conversion in S3RangeReader #256

Closed dromagnoli closed 2 years ago

dromagnoli commented 2 years ago

s3://bucket/... is not recognized as valid URL due to a java.net.MalformedURLException: unknown protocol: s3

Some high level projects (i.e. GeoTools and GeoServer) using COG imageio-ext plugin need working with URLs in some parts of the code. Let's do the automatic conversion from s3:// to http:// to generate valid URLs when invoking the getURL in the S3RangeReader.