次の一連のコマンドで何か問題が発生することはありますか? これらの image.png を実行するたびに、エクスポートした JOSM マップではなく、英国の画像になります。データベースのインポートに問題があると思いますが、出力には、座標とデータを処理していることが示されています。
手順:
1 - JOSM または Merkaator から .osm ファイルをエクスポートしました。
2 - 次のコマンドを使用して psql にインポートします。
osm2pgsql -m -d gis -S ~/mapnik/default.style -b 103,1.3,104,1.4 ion.osm -v -c
この出力は次のようになります。
marshall@ubuntu:~/mapnik$ osm2pgsql -m -d gis -S ~/mapnik/default.style -b 103,1.3,104,1.4 ion.osm -v -c
osm2pgsql SVN version 0.66-
Using projection SRS 900913 (Spherical Mercator)
Applying Bounding box: 103.000000,1.300000 to 104.000000,1.400000
Setting up table: planet_osm_point
Setting up table: planet_osm_line
Setting up table: planet_osm_polygon
Setting up table: planet_osm_roads
Mid: Ram, scale=100
Reading in file: ion.osm
Processing: Node(25k) Way(3k) Relation(0k)
Node stats: total(25760), max(844548651)
Way stats: total(3783), max(69993379)
Relation stats: total(27), max(536780)
Writing way(3k)
Writing rel(0k)
Committing transaction for planet_osm_point
Sorting data and creating indexes for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_roads
Sorting data and creating indexes for planet_osm_line
Committing transaction for planet_osm_polygon
Sorting data and creating indexes for planet_osm_roads
Sorting data and creating indexes for planet_osm_polygon
Completed planet_osm_polygon
Completed planet_osm_roads
Completed planet_osm_point
Completed planet_osm_line
正しい緯度/経度座標が渡されていることがわかりますが、データベース内でこれを確認する方法がわかりません
3 -./generate_xml.py --accept-none --dbname gis --symbols ./symbols/ --world_boundaries ../world_boundaries/
4 -./generate_image.py
この時点で image.png は英国の地図であり、私が指定したシンガポールではありません。
誰でもこれで何か問題があると思いますか? これはubuntuのmapnik 0.71です