[Tilecache] Help with tilecache UTM layer

Christopher Schmidt crschmidt at metacarta.com
Thu Jun 5 16:30:03 EDT 2008


On Thu, Jun 05, 2008 at 10:27:01PM +0200, Mike Meier wrote:
> Hi,
> 
> i have problems to get the tilecache work with a WMS Layer in EPSG 25833 
> ( ETRS89 / UTM zone 33N)
> 
> is use tilecache 2.03, Debian etch, Python 2.4
> 
> The tilecache-URL
> "http://172.16.1.8/tilecache/tilecache.py?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&LAYERS=basic&STYLES=&SRS=EPSG:25833&BBOX=365568.000000,5812224.000000,366080.000000,5812736.000000&WIDTH=256&HEIGHT=256"
> gives me the result : "An error occurred: Currentt x value 365568.000000 
> is too far from tile corner x 365376.000000"

I'm assuming your'e using OpenLayers. It sounds like your maxExtent
doesn't match the bbox in your TileCache config. Can you share your Map
and Layer creation statements for OpenLayers?

-- Chris

> The real WMS URL
> http://172.16.1.8/cgi-bin/mapserv?map=/var/src/mapserver-5.0.1/tests/feuer-dop-jpg.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&LAYERS=dop&STYLES=&SRS=EPSG:25833&BBOX=365568.000000,5812224.000000,366080.000000,5812736.000000&WIDTH=256&HEIGHT=256
> gives me a image.
> 
> Layer.py:
>          if (abs(minx - tilex)  / res > 1):
>                 raise TileCacheException("Currentt x value %f is too far 
> from tile corner x %f - z %f res %f - %f" % (minx, tilex...
> 
> The "abs(minx - tilex)  / res" results is 96.
> 
> config:
> 
> [basic]
> type=WMS
> srs=EPSG:25833
> layers=dop
> url=http://172.16.1.8/cgi-bin/mapserv?map=/var/src/mapserver-5.0.1/tests/feuer-dop-jpg.map?
> extension=png
> resolutions=6,4,2,1,0.5,0.1,0.05,0.025,5.906250,13.718750
> size=256,256
> levels=15
> bbox=200000.0,5600000.0,500000.0,5970000.0
> maxresolution=2000000.0
> units=meters
> 
> If I change the srs parameter to 4326 or to 25833, nothing happens.
> 
> Patch
> http://www.nabble.com/-patch--tilecache-seed-issue-tt14165661.html#a14165661
> and
> http://www.nabble.com/FW%3A-Fix-workaround-for-a-seeding-problem-in-1.8.1-on-python-for-windows-tt12639435.html#a12639435
> dont work for me.
> 
> Any ideas?
> 
> Mike
> 
> 
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache

-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list