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)

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 <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Thorsten Kukuk <kukuk@suse.de> Gesendet: Donnerstag, 1. November 2018 10:16 An: mkgmap-dev@lists.mkgmap.org.uk 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 mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Thorsten, viewfinderpanoramas provides files for that area too. Download cells M32 and M33 from http://www.viewfinderpanoramas.org/Coverage map viewfinderpanoramas_org3.htm The unzipped files all have a size of 2818 kb, and work well with mkgmap. Kind regards, Bernhard Am 01.11.2018 um 10:16 schrieb Thorsten Kukuk:
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

On Thu, Nov 01, Bernhard Hiller wrote:
Hi Thorsten, viewfinderpanoramas provides files for that area too. Download cells M32 and M33 from http://www.viewfinderpanoramas.org/Coverage map viewfinderpanoramas_org3.htm The unzipped files all have a size of 2818 kb, and work well with mkgmap.
That's the 3" tiles, I hoped I could re-use the SRTM1v3 data so that I don't need to store everything twice. Wondering myself, why even the geotiff SRTM1v3 tiles for this area have only half of the size then other tiles have. Looks like I need to dig deeper into gdal. 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)
participants (3)
-
Bernhard Hiller
-
Gerd Petermann
-
Thorsten Kukuk