der-stefan / OpenTopoMap

A topographic map from OpenStreetMap and SRTM data
https://opentopomap.org
Other
459 stars 118 forks source link

Unable to render contours and shading #287

Closed quinncnl closed 3 years ago

quinncnl commented 3 years ago

Hi @der-stefan ,

Thanks for this great map.

Following the guide, I managed to build a map server. However I did not get the contour lines and shading, as shown in following screenshot:

Screenshot 2021-04-06 at 23 02 14

Database size command gives me:

clear@secondaryframe ~/d/O/mapnik> sudo -u postgres psql -d gis -c "SELECT pg_database.datname, pg_size_pretty(pg_database_size(pg_database.datname)) AS size FROM pg_database;"
  datname  |  size
-----------+---------
 postgres  | 16 MB
 gis       | 15 GB
 template1 | 7877 kB
 template0 | 7729 kB
 contours  | 32 GB
 lowzoom   | 388 MB
(7 rows)

I'm using a relatively new mapnik: https://github.com/mapnik/mapnik/commit/8f126a100047117c2050d89358fb41359f079aff

One thing I fixed myself is create otm_isolation column in planet_osm_polygon. This is not covered in update_isolations.sh and I'm not sure whether this is the cause.

Could you help me? Thanks in advance!

quinncnl commented 3 years ago

I found from the guide we only imported SRTM data for part of Europe. So there is no issue in fact