Closed git4wht closed 6 years ago
我将一个建筑的所在区域的中点作为原点,构建出来的model在表示时,坐标总是差一些。
<?xml version='1.0' encoding='UTF-8'?> <osm version="0.6" generator="osmfilter 1.4.3"> <node id="269992020" lat="39.1361263" lon="117.2153419" version="2" timestamp="2011-01-26T17:11:57Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992021" lat="39.1361459" lon="117.215434" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992022" lat="39.136185" lon="117.2155114" version="2" timestamp="2011-01-26T17:11:56Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992023" lat="39.1361294" lon="117.2155793" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992024" lat="39.1368382" lon="117.2175762" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992025" lat="39.1374329" lon="117.2172291" version="2" timestamp="2011-01-26T17:11:56Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992026" lat="39.1369642" lon="117.2158894" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992027" lat="39.1368942" lon="117.2159311" version="2" timestamp="2011-01-26T17:11:56Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992028" lat="39.1368341" lon="117.2157501" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992034" lat="39.1368889" lon="117.215686" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992035" lat="39.1369112" lon="117.2156283" version="2" timestamp="2011-01-26T17:11:57Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992036" lat="39.1369185" lon="117.2155579" version="2" timestamp="2011-01-26T17:11:56Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992047" lat="39.1368959" lon="117.2154749" version="2" timestamp="2011-01-26T17:11:56Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992048" lat="39.1370176" lon="117.2153698" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992049" lat="39.1367242" lon="117.214739" version="2" timestamp="2011-01-26T17:11:56Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992050" lat="39.1362363" lon="117.2151378" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992051" lat="39.1362531" lon="117.2152307" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <node id="269992052" lat="39.136176" lon="117.2152776" version="2" timestamp="2011-01-26T17:11:55Z" changeset="7095415" uid="155277" user="uk1967"/> <way id="24850431" version="2" timestamp="2008-07-01T23:49:04Z" changeset="370109" uid="13721" user="wangchun"> <nd ref="269992020"/> <nd ref="269992021"/> <nd ref="269992022"/> <nd ref="269992023"/> <nd ref="269992024"/> <nd ref="269992025"/> <nd ref="269992026"/> <nd ref="269992027"/> <nd ref="269992028"/> <nd ref="269992034"/> <nd ref="269992035"/> <nd ref="269992036"/> <nd ref="269992047"/> <nd ref="269992048"/> <nd ref="269992049"/> <nd ref="269992050"/> <nd ref="269992051"/> <nd ref="269992052"/> <nd ref="269992020"/> <tag k="name" v="嘉华国际商业中心"/> <tag k="landuse" v="commercial"/> <tag k="name:en" v="Jiahua international Business Center"/> <tag k="name:zh" v="嘉华国际商业中心"/> <tag k="building" v="yes"/> </way> </osm>
{ "longitude": 2.045807887, "latitude": 0.683065663, "geometricError": 200.0, "region": true, "box": false, "sphere": false }
知道原因了,应该是我将bounds 删除导致的
<bounds minlat= ..../>
我将一个建筑的所在区域的中点作为原点,构建出来的model在表示时,坐标总是差一些。
osm文件,使用osm2world生成obj文件
customTilesetOptions文件