Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ case class GDALRasterSource(source: URI) extends RasterSource with URIRasterSour
.replace("gdal+", "")
.replace("gdal:/", "")
// VSIPath doesn't like single slash "file:/path..."
// Local windows path regex used in VSIPath incorrectly removes only 1 slash of scheme
val tweaked =
if (cleaned.matches("^file:/[^/].*"))
cleaned.replace("file:", "")
cleaned.replaceFirst("^file:/", "file://")
else cleaned

VLMRasterSource(tweaked)
VLMRasterSource(cleaned) // temporary work around to use `cleaned` not `tweaked`
}

protected def tiffInfo = SimpleRasterInfo.cache.get(source.toASCIIString, _ => SimpleRasterInfo(gdal))
Expand Down