我想轉換一個OSM文件,它需要開發私有數據格式.map使用osmosis
mapforge-map-writer
,但調查點的數據被完全忽略.map
代。我調查了代碼,但我無法理解發生了什麼。滲透忽略數據生成.map
我用下面的命令:
./osmosis --rx file = lotes.osm --mapfile-writing file = lotes.map
我設定界限的進入,但沒有什麼是被放置在產生.MAP。
下面是建立界限的參考地圖:
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' upload='true' generator='JOSM'>
<bounds minlat="-8.156" minlon="-35.008" maxlat="-7.931" maxlon="-33.865"/>
<node id='-32' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06393367554' lon='-34.88970060001' />
<node id='-33' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06083075789' lon='-34.88378983943' />
<node id='-35' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06409078466' lon='-34.87984272078' />
<node id='-37' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06758644682' lon='-34.88739976703' />
<node id='-41' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06793993906' lon='-34.88718158459' />
<node id='-42' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06432644823' lon='-34.87960470357' />
<node id='-44' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06778283143' lon='-34.87599477597' />
<node id='-46' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.07208363064' lon='-34.88442455197' />
<node id='-50' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06411042329' lon='-34.88999812152' />
<node id='-51' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06774355452' lon='-34.88777662761' />
<node id='-53' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.07035546112' lon='-34.89225928496' />
<node id='-55' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06629030595' lon='-34.89446094411' />
<node id='-59' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06045762062' lon='-34.88329397025' />
<node id='-60' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06405150738' lon='-34.87920800823' />
<node id='-62' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.06204836132' lon='-34.8744674989' />
<node id='-64' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20" lat='-8.05876867919' lon='-34.87968404264' />
<way id='-34' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20">
<nd ref='-32' />
<nd ref='-33' />
<nd ref='-35' />
<nd ref='-37' />
<nd ref='-32' />
<tag k='DSQFL' v='154' />
</way>
<way id='-43' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20">
<nd ref='-41' />
<nd ref='-42' />
<nd ref='-44' />
<nd ref='-46' />
<nd ref='-41' />
<tag k='DSQFL' v='160' />
</way>
<way id='-52' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20">
<nd ref='-50' />
<nd ref='-51' />
<nd ref='-53' />
<nd ref='-55' />
<nd ref='-50' />
<tag k='DSQFL' v='153' />
</way>
<way id='-61' action='modify' visible='true' version="11" timestamp="2008-01-02T03:04:05Z" uid="20" user="user20">
<nd ref='-59' />
<nd ref='-60' />
<nd ref='-62' />
<nd ref='-64' />
<nd ref='-59' />
<tag k='DSQFL' v='155' />
</way>
</osm>
但是,當我看到生成的二進制文件,打開通過一個十六進制編輯器,我不能看到放置標籤。
雖然直接下載的其他文件在OpenStreetMaps網站可以轉換沒有問題。
osmosis
有什麼錯誤忽略這些多邊形?
也許由於其負的id? – scai
不,我曾經測試過積極的ID,沒有任何改變。 –
滲透不具有'--mapfile-writing'選項,因此您必須在談論某個其他程序或其他選項。 – scai