You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe following: .../v3.14/layers\water\..., e.g. the switch from slash to back-slash. Back-slash is a Windows thing and should not be used in URL. First guess, that this might be the problematic code:
Since my Java API knowledge is limited and I don't know if there's a built-in method to do this (I did try to find out), is the way of knucklehead okay? Open to suggestions.
This fixes it:
// outside the loopsBooleanbackwardSlashes = File.separatorChar == '\\';
// inside the loop (this is the problematic line)StringmappingPath = Path.of(layerFile).resolveSibling(datasource.mapping_file).normalize().toString();
if (backwardSlashes) {
mappingPath = mappingPath.replace('\\', '/');
}
It's especially weird since the file actually exists when you navigate manually:
https://raw.githubusercontent.com/openmaptiles/openmaptiles/v3.14/layers/water/mapping.yaml
It always fails on
water/mapping.yaml
, tried 5+ times.Command:
./scripts/regenerate-openmaptiles.sh v3.14
OS: Windows 10
Java version:
openjdk 17.0.8.1
The text was updated successfully, but these errors were encountered: