[Tilecache] Current y value it too far from corner

soatley shawn at niagarafalls.ca
Thu Jun 25 22:59:30 EDT 2009


I am having a problem using OL with TC with the error:
An error occurred: Current y value 4762387.405015 is too far from tile
corner y 4755587.405015

Here is my TC config for one of the layers:

[communitydrawing]
type=WMS
url=http://serverURL?TRANSPARENT=true
layers=Community Drawing
extension=png
mime_type=image/png
resolutions=850,425,212.5,106.25,53.125,26.5625,13.28125,6.640625,3.3203125,1.66015625,0.830078125,0.4150390625,0.20751953125,0.103759765625,0.0518798828125
bbox=640541.774843334, 4755587.40501464, 667085.402317306, 4779623.23729788
metaTile=false
extent_type=loose
metaSize=11,11
srs=EPSG:26917


I've tried it with metaTile set to true or false and extent_type set or
removed - both come to the same issue.

My OL map options:

 options = {
        projection: new OpenLayers.Projection("EPSG:26917"),
        maxExtent: new OpenLayers.Bounds(640541.774843334, 4755587.40501464,
667085.402317306, 4779623.23729788),
        units: "m",
        tileSize: new OpenLayers.Size(256, 256),
        resolutions: [850, 425, 212.5, 106.25, 53.125, 26.5625, 13.28125,
6.640625, 3.3203125, 1.66015625, 0.830078125, 0.4150390625, 0.20751953125,
0.103759765625, 0.0518798828125],

        numZoomLevels: 15,

        controls: [new OpenLayers.Control.LayerSwitcher(),
                            new OpenLayers.Control.MouseDefaults(),
                            new OpenLayers.Control.PanZoomBar(),
                            new OpenLayers.Control.OverviewMap(),
                            new OpenLayers.Control.KeyboardDefaults(),
                            new OpenLayers.Control.Navigation(),
                            new OpenLayers.Control.MousePosition({ div:
$j("#position").get(0) }),
                            new OpenLayers.Control.LoadingPanel(),
                            new OpenLayers.Control.ScaleBar()
                            ]
    };


    map = new OpenLayers.Map('map', options);


If I use tilecache_seed to pre-seed my layers, that part works fine.  If I
take the URL in question:

http://serverURL/tilecache/tilecache.cgi?LAYERS=communitydrawing&FORMAT=image%2fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2fvnd.ogc.se_inimage&SRS=EPSG%3a26917&BBOX=640541.77484333%2c4762387.4050146%2c647341.77484333%2c4769187.4050146&WIDTH=256&HEIGHT=256


And bypass TileCache:

http://serverURL?LAYERS=communitydrawing&FORMAT=image%2fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2fvnd.ogc.se_inimage&SRS=EPSG%3a26917&BBOX=640541.77484333%2c4762387.4050146%2c647341.77484333%2c4769187.4050146&WIDTH=256&HEIGHT=256


It works fine.... I have a feeling I have missed something basic, but I
can't seem to figure it out.

Any ideas??

Thanks,
Shawn
-- 
View this message in context: http://n2.nabble.com/Current-y-value-it-too-far-from-corner-tp3159361p3159361.html
Sent from the TileCache mailing list archive at Nabble.com.




More information about the Tilecache mailing list