{"action":"opened","issue":{"url":"https://api.github.com/repos/liujiusheng/blog/issues/98","repository_url":"https://api.github.com/repos/liujiusheng/blog","labels_url":"https://api.github.com/repos/liujiusheng/blog/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/liujiusheng/blog/issues/98/comments","events_url":"https://api.github.com/repos/liujiusheng/blog/issues/98/events","html_url":"https://github.com/liujiusheng/blog/issues/98","id":300537019,"number":98,"title":"矢量瓦片数据生成原理","user":{"login":"liujiusheng","id":9045263,"avatar_url":"https://avatars2.githubusercontent.com/u/9045263?v=4","gravatar_id":"","url":"https://api.github.com/users/liujiusheng","html_url":"https://github.com/liujiusheng","followers_url":"https://api.github.com/users/liujiusheng/followers","following_url":"https://api.github.com/users/liujiusheng/following{/other_user}","gists_url":"https://api.github.com/users/liujiusheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liujiusheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liujiusheng/subscriptions","organizations_url":"https://api.github.com/users/liujiusheng/orgs","repos_url":"https://api.github.com/users/liujiusheng/repos","events_url":"https://api.github.com/users/liujiusheng/events{/privacy}","received_events_url":"https://api.github.com/users/liujiusheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T08:40:25Z","updated_at":"2018-02-27T08:40:25Z","closed_at":null,"author_association":"OWNER","body":"\r\n### 计算某个数据应该在哪一块瓦片上的代码：\r\n\r\nhttp://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/\r\n\r\n运行`python globalmaptiles.py 10 29.65 106.67`就可以计算得到结果，这里的python用的是python2。\r\n\r\n### 代码参数：globalmaptiles.py [-profile 'mercator'|'geodetic'] zoomlevel lat lon [latmax lonmax]\r\n\r\n\r\n知道一个数据应该在哪块瓦片上了之后只要按照pbf的编码格式向里面加数据就好了。\r\n\r\n### pbf的编码方式：\r\nhttps://github.com/liujiusheng/vector-tile-spec/blob/master/2.1/README_zh.md\r\n\r\n循环geojson数据，计算出一个数据在哪一块瓦片之后将这个点添加到那个瓦片就可以了。\r\n"}}
{"actor":{"display_login":"liujiusheng"}}