geotrellis / vectorpipe

Convert Vector data to VectorTiles with GeoTrellis.
https://geotrellis.github.io/vectorpipe/
Other
74 stars 20 forks source link

Consistently strip leading + trailing slash from S3 URI prefix in export #75

Closed CloudNiner closed 5 years ago

CloudNiner commented 5 years ago

I noticed while I was exporting tilesets to S3 that when I passed in a URI such as:

s3://geotrellis-test/foo/tiles-v01

that the tiles were saving to:

s3://geotrellis-test/foo/tiles-v0

As far as I can tell, it looks like the original intent of this code is to strip both leading and trailing slashes...or at least that's what works consistently when I pass URIs to saveToS3. So I modified the code to always remove leading + trailing slashes and to not accidentally remove other stuff.