Skip to content

Commit

Permalink
Update STACEncoder to fit with the new RegionResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
inigo-cobian committed Jan 30, 2025
1 parent 8a3e867 commit 3dc711c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;

import kong.unirest.apache.ApacheClient;
import kong.unirest.json.JSONObject;
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
import software.amazon.awssdk.auth.credentials.AwsCredentials;
Expand Down Expand Up @@ -274,8 +273,8 @@ public void getEncodedData(IResource resource, Map<String, String> urnParameters
scope.getMonitor().warn("Multiple EPSGs found on the items " + EPSGsAtItems.toString() + ". The transformation process could affect the data.");
}

if (resource.getParameters().contains("s3BucketRegion")) {
String bucketRegion = resource.getParameters().get("s3BucketRegion", String.class);
if (resource.getParameters().contains("awsRegion")) {
String bucketRegion = resource.getParameters().get("awsRegion", String.class);
S3Client s3Client = buildS3Client(bucketRegion);
collection.setS3Client(s3Client);
}
Expand Down

0 comments on commit 3dc711c

Please sign in to comment.