美文网首页GISGIS文章集GIS相关
基础数据处理:QGIS+TileLayerPlugin+Gdal

基础数据处理:QGIS+TileLayerPlugin+Gdal

作者: cgscloud | 来源:发表于2016-04-12 09:00 被阅读478次

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展示


ym.gif

相关文章

网友评论

  • defineconst:您好。您这个GIF的动画效果是如何实现的?是在threejs中动态加图片吗?
    cgscloud:@defineconst 实时调整高度就行了
  • shanyukang:请问对于了解能够 切图效率较高的工具吗
  • brandonxiang:期待再整理一下,这个题材很好
    cgscloud:@brandonxiang 哈哈 时间太忙了

本文标题:基础数据处理:QGIS+TileLayerPlugin+Gdal

本文链接:https://www.haomeiwen.com/subject/xdmilttx.html