1.gdal2tile.py
http://www.gdal.org/gdal2tiles.html
http://www.klokan.cz/projects/gdal2tiles/
一起是有关其资料,gdal2tile为开源工具。下载了maptiler 发现收费...
切中国30m精度dem 意外出现IndexError: list index out of range
instead of:
gdal2tiles china.tif tiles
I call:
gdal2ties -a 0,0,0 china.ti tiles
it works!!!
2.tilelayerplugin
https://github.com/minorua/TileLayerPlugin/wiki/Layer-definition-files
https://github.com/minorua/TileLayerPlugin/blob/master/README.md
关键点,查看readme
For a tiled map provided by a web server
freetilemap.tsv
RoadMap FreeTileMap http://freetilemap.example.com/road/{z}/{x}/{y}.png
For a tiled map generated by gdal2tiles.py
slope.tsv
slope local file:///d:/tilemaps/slope/{z}/{x}/{y}.png 0 6 13 130.5 33.6 135.0 36.0
Note: Use tab character to separate fields!
3.测试
2threejs展示

网友评论