Skip to content

Commit

Permalink
Take into account angle bands when counting. #177
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileSonneveld committed Aug 21, 2023
1 parent 05ddc76 commit add5d39
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,12 @@ class FileLayerProvider(openSearch: OpenSearchClient, openSearchCollectionId: St
logger.warn("matching feature assets by ID/link title; only single band assets are supported")
}

val expectedNumberOfBBands = openSearchLinkTitlesWithBandIds.size
val expectedNumberOfBBandsOld = openSearchLinkTitlesWithBandIds.size
val expectedNumberOfBBands = openSearchLinkTitlesWithBandIds.map(_._2.length).sum
if (expectedNumberOfBBandsOld != expectedNumberOfBBands) {
logger.warn("expectedNumberOfBBandsOld != expectedNumberOfBBands. " + expectedNumberOfBBandsOld + ", " + expectedNumberOfBBands)
}

val rasterSources: Seq[(Seq[RasterSource], Seq[Int])] = for {
(link, bandIndices) <- if (byLinkTitle) getBandAssetsByLinkTitle else getBandAssetsByBandInfo
path = deriveFilePath(link.href)
Expand Down

0 comments on commit add5d39

Please sign in to comment.