6步解决 win7下使用TileStache生成geojson格式的Tiles

简介: 6步解决 win7下使用TileStache生成geojson格式的Tiles

1.首先安装python2.6 并配置环境变量

2.安装Setup tools (方便安装其他软件)和GDAL

3.使用Setup tools安装TileStache, ModestMaps, PIL(TileStache 依赖于这两项)

easy_install tilestache
easy_install PIL
easy_install ModestMaps

4.在下载的TileStache中的文件夹中配置cfg文件

{
  "cache":
  {
    "name": "Disk",
    "path": "/tmp/stache",
    "umask": "0000"
  },
  "layers":
  {
    "postgis":
     {
       "provider": {"name": "vector", "driver": "PostgreSQL"
                        "parameters": {"dbname": "postgis", "user": "postgres","password":"postgres",
                                "table": "mainroad"}}
                        }
     }
  }
}

5.然后用tilestache-seed进行切片

6.结果

目录
相关文章
|
6月前
133Echarts - 路径图(Bus Lines of Beijing - Baidu Map)
133Echarts - 路径图(Bus Lines of Beijing - Baidu Map)
31 0
|
4月前
|
JSON 定位技术 API
谷歌地图接口Google Maps APIs中地图样式设计配置调整与JSON或URL导出
谷歌地图接口Google Maps APIs中地图样式设计配置调整与JSON或URL导出
|
6月前
135Echarts - 路径图(Use lines to draw 1 million ny streets.)
135Echarts - 路径图(Use lines to draw 1 million ny streets.)
16 0
|
9月前
|
数据可视化 定位技术 数据格式
Eccharts加载geojson环形GeometryCollection格式的解决方案:Cannot read property ‘length‘ of undefined
Eccharts加载geojson环形GeometryCollection格式的解决方案:Cannot read property ‘length‘ of undefined
110 0
|
9月前
|
JSON JavaScript 数据可视化
可视化JSON数据工具推荐:JSON Viewer Pro和JSONGrid
本文介绍了两款可视化JSON数据的工具:JSON Viewer Pro和JSONGrid。它们都提供了丰富的功能和用户友好的界面,使用户能够更轻松地理解和处理JSON格式的数据。这些功能包括查看和分析、编辑和修改、格式化和美化、折叠和展开、高亮和搜索、排序和过滤、导入和导出等。这些工具对于开发人员、数据分析师和任何需要处理JSON的人都非常实用。
1528 0
|
11月前
|
XML 数据可视化 JavaScript
Mosaic数据增强返回图片和对应的xml.py
Mosaic数据增强返回图片和对应的xml.py
58 0
|
JavaScript 前端开发 定位技术
Leaflet系列:加载GeoJSON数据
Leaflet如何加载GeoJSON数据
872 0
|
JSON 数据格式
VSCode 多行JSON合并/压缩(compact)为一行 join Lines
VSCode 多行JSON合并/压缩(compact)为一行 join Lines
1990 0
VSCode 多行JSON合并/压缩(compact)为一行 join Lines
Google Earth Engine(GEE)——下载矢量数据过程中出现Property joinedWaterFeature has type Feature错误
Google Earth Engine(GEE)——下载矢量数据过程中出现Property joinedWaterFeature has type Feature错误
206 0
Google Earth Engine(GEE)——下载矢量数据过程中出现Property joinedWaterFeature has type Feature错误

热门文章

最新文章