Hi Thorsten,
the program tries to calculate the resolution using this code:
private int calcRes(long size, String fname) {
long numVals = (long) Math.sqrt(size/2);
if (2 * numVals*numVals == size)
return (int) (numVals - 1);
log.error("file", fname, "has unexpected size", size, "and is
ignored");
return -1;
}
size is the size of the unzipped file. When you see such a warning it means
that the file is not in hgt format.
where you have the same number of shorts in horizontal and vertical direction.
I don't know how to fix your problem, probably something went wrong in the
conversion.
Gerd
________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von
Thorsten Kukuk <[email protected]>
Gesendet: Donnerstag, 1. November 2018 10:16
An: [email protected]
Betreff: [mkgmap-dev] DEM and SRTM hgt files: size too small
Hi,
I started to play with maps with DEM, but run into a problem:
viewfinderpanoramas.org provides hgt files, but only for some areas.
The SRTM1v3.0 data is using geotiff. No problem, you can convert them
with gdal_translate and fill the missing areas. Works fine for below N50,
but starting with N50, the data is much smaller and this leads to the
following error:
SEVERE (HGTReader): 71200154.osm.pbf: file /data/OSM/data/hgt/N50E012.hgt has
unexpected size 12970802 and is ignored
SEVERE (HGTReader): 71200154.osm.pbf: file /data/OSM/data/hgt/N50E013.hgt has
unexpected size 12970802 and is ignored
SEVERE (HGTReader): 71200159.osm.pbf: file /data/OSM/data/hgt/N50E014.hgt has
unexpected size 12970802 and is ignored
Any ideas how to solve the problem?
Thorsten
--
Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev