Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing products #290

Merged
merged 12 commits into from
May 20, 2024
1 change: 1 addition & 0 deletions geopyspark-geotrellis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
<type>scalapb</type>
<outputOptions>grpc</outputOptions> <!-- more scalapb options can be added here -->
<pluginArtifact>com.thesamet.scalapb:protoc-gen-scala:0.9.6:sh:unix</pluginArtifact>
<!--<pluginArtifact>com.thesamet.scalapb:protoc-gen-scala:0.9.6:bat:windows</pluginArtifact>-->
</outputTarget>
</outputTargets>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,8 @@ class FileLayerProvider private(openSearch: OpenSearchClient, openSearchCollecti

requiredSpacetimeKeys = applySpaceTimeMask(datacubeParams, requiredSpacetimeKeys,metadata)
if (isUTM) {
//only for utm is just a safeguard to limit to sentine-1/2 for now
//try to resolve overlap before actually reqding the data
//only for utm is just a safeguard to limit to Sentinel-1/2 for now
//try to resolve overlap before actually reading the data
requiredSpacetimeKeys = requiredSpacetimeKeys.groupByKey().flatMap(t => {

def return_original = t._2.map(source => (t._1,source))
Expand Down Expand Up @@ -1049,7 +1049,7 @@ class FileLayerProvider private(openSearch: OpenSearchClient, openSearchCollecti
if (filteredByCRS.nonEmpty) {
filteredByCRS.map(distance_source => (key, distance_source._2))
} else {
filteredByDistance.filter(_._1._1 == smallestCenterDistance).map(distance_source => (key, distance_source._2))
Seq(filteredByDistance.minBy(_._1._1)).map(distance_source => (key, distance_source._2))
}

}
Expand Down
Loading