Skip to content

Commit

Permalink
Allow for XMLs without GDAL prefix to be loaded. Zipper instead of fi…
Browse files Browse the repository at this point in the history
…nder API, so it works locally too. #177
  • Loading branch information
EmileSonneveld committed Jun 22, 2023
1 parent 179e1cc commit c5ec38d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,10 @@ class FileLayerProvider(openSearch: OpenSearchClient, openSearchCollectionId: St
val resampleMethod = datacubeParams.map(_.resampleMethod).getOrElse(NearestNeighbor)

def vsisToHttpsCreo(path: String): String = {
path.replace("/vsicurl/", "").replace("/vsis3/eodata", "https://finder.creodias.eu/files")
if (path.contains("/vsicurl/")) path.replace("/vsicurl/", "")
else path
.replace("/vsis3/eodata/", "https://finder.creodias.eu/files/")
.replace("/eodata/", "https://zipper.creodias.eu/get-object?path=/") // Like OpenSearchResponses.loadMetadata(...)
}

def rasterSource(dataPath:String, cloudPath:Option[(String,String)], targetCellType:Option[TargetCellType], targetExtent:ProjectedExtent, bands : Seq[Int]): Seq[RasterSource] = {
Expand Down

0 comments on commit c5ec38d

Please sign in to comment.