带Mapnik的TileCache for OpenStreetMap [英] TileCache with Mapnik for OpenStreetMap

查看:95
本文介绍了带Mapnik的TileCache for OpenStreetMap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用TileCache来提供图块的OpenStreetMap服务器.这些图块是使用Mapnik生成的.我已经配置了Mapnik XML样式表,并且可以使用OSM Mapnik工具"generate_image.py"生成图像.该图像是正确的,看起来不错.

I have an OpenStreetMap server that uses TileCache to serve tiles. The tiles are generated with Mapnik. I have configured the Mapnik XML stylesheet and I can generate an image with the OSM Mapnik tool 'generate_image.py'. That image is correct and looks good.

我的TileCache服务器将为我的OSM层中的图块提供服务;但是,我得到的只是具有背景/水蓝色的瓷砖.我没有地形,也没有街道数据.有人可以帮忙吗?

My TileCache server will serve tiles from my OSM layer; however, all I get are tiles with the background/water blue. I get no land forms, I get no street data. Can anybody help with this?

TileCache配置:

TileCache Config:

[osm]
type=Mapnik
mapfile=/var/maps/bin/mapnik/osm.xml
spherical_mercator=true

我正在使用OpenLayers显示地图.我正在使用TMS层来调用TileCache服务器.就像我说的,我得到了瓷砖,它们不过是蓝色而已.

I am using OpenLayers to show the map. I am using a TMS layer to call the TileCache server. Like I said, I get tiles returned, they are just nothing but blue.

推荐答案

之所以可能发生这种情况,是因为tilecache以apache用户(各种名称)运行,该用户的权限与您以前用来测试tile生成的普通unix用户的权限不同TileLite和generate_image.py.

This is likely happening because tilecache runs as the apache user (various names) which has different privileges than your normal unix user for which you used to test tile generation with TileLite and generate_image.py.

请参见 http://dbsgeo.com/foss4g2010/html/troubleshooting .html#trouble-postgres-connection 寻求建议,但是知道这只是一个postgres问题,您可以自行决定如何配置以及必要的安全需求.

See http://dbsgeo.com/foss4g2010/html/troubleshooting.html#trouble-postgres-connection for advice, but know this is simply a postgres issue and it is up to you to decide how to configure and your necessary security needs.

这篇关于带Mapnik的TileCache for OpenStreetMap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆