read elevation type from rd5

This commit is contained in:
afischerdev 2023-11-28 15:14:13 +01:00
parent 477c675d46
commit 16d019c1d0
3 changed files with 26 additions and 0 deletions

View file

@ -33,6 +33,7 @@ final class OsmFile {
private int cellsize;
private int ncaches;
private int indexsize;
protected byte elevationType = 3;
public OsmFile(PhysicalFile rafile, int lonDegree, int latDegree, DataBuffers dataBuffers) throws IOException {
this.lonDegree = lonDegree;
@ -43,6 +44,7 @@ final class OsmFile {
if (rafile != null) {
divisor = rafile.divisor;
elevationType = rafile.elevationType;
cellsize = 1000000 / divisor;
ncaches = divisor * divisor;