jacky

A technique blog for jacky

here are my artitles about work(embeded system develop, docker, etc.) and life(cook, hiking)


How to import contour line to libosmscout

how to import contour line to libosmscout

referencePage

flag:elevationContour

when we get .osm file from hgt, then we can import osm with *.osm.pbf to libosmscout.

./Import --typefile ../../stylesheets/map.ost --destinationDirectory \ ../../maps/demChina1/ ../../maps/china-latest.osm.pbf \
../../maps/lon114.00_117.00lat22.00_23.00_local-source.osm

ubuntu16.04 Import后的database不能在项目中加载地图,需要在mac上测试

after Import contour line database with detail map, must open elevationContour in standard.ost to render contour line.

最近的文章

How to run osmscout2 base on libosmscout

libosmscout-OSMSCout2 demo testfirst, pull down from libosmscout###check environment variableexport QTDIR=/opt/Qt5.9.3/5.9.3/gcc_64export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATHexport QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/pluginsexport PATH=$PATH...…

继续阅读
更早的文章

How to convert hgt to osm

#how to convert hgt from SRTM to osmtools used:phyghtmap homePage manPage###environment reference:ubuntu16.04+python3.5DownloadAt the moment, you have the choice between two different distribution types: Source distibution: phyghtmap_2.20.orig.t...…

继续阅读