[Tilecache] An error occurred: Current x value ... is too far
from tile corner x
Mr. Rahul Teni
rahul_g_teni at yahoo.com
Mon Nov 16 23:38:40 EST 2009
Hi,
Please use extent_type=loose. That solved my problem.
Thanks,
Rahul G. Teni
Cynosure Software Solutions
MS BITS,BE Comp
--- On Sun, 11/15/09, tilecache-request at openlayers.org <tilecache-request at openlayers.org> wrote:
From: tilecache-request at openlayers.org <tilecache-request at openlayers.org>
Subject: Tilecache Digest, Vol 34, Issue 10
To: tilecache at openlayers.org
Date: Sunday, November 15, 2009, 10:30 PM
Send Tilecache mailing list submissions to
tilecache at openlayers.org
To subscribe or unsubscribe via the World Wide Web, visit
http://openlayers.org/mailman/listinfo/tilecache
or, via email, send a message with subject or body 'help' to
tilecache-request at openlayers.org
You can reach the person managing the list at
tilecache-owner at openlayers.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tilecache digest..."
Today's Topics:
1. An error occurred: Current x value ... is too far from tile
corner x ... (Christoph Lingg)
2. Re: An error occurred: Current x value ... is too far from
tile corner x ... (Dane Springmeyer)
----------------------------------------------------------------------
Message: 1
Date: Sat, 14 Nov 2009 19:19:25 +0100
From: Christoph Lingg <christoph at lingg.eu>
Subject: [Tilecache] An error occurred: Current x value ... is too far
from tile corner x ...
To: tilecache at openlayers.org
Message-ID: <7F190557-B4DB-4625-A63E-70D15840B68D at lingg.eu>
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
(I think my last mail hasn't worked without registration, here again: )
Hello everybody,
our project just changed from GoogleMaps to OpenLayers and we are
happy about being independent from proprietary solutions!
But we also have to hurdle some new difficulties, and one of them
seems to be a big challenge ;-) We are using the combination Mapnik,
TileCache and OpenLayers and I couldn't figure out how to stick them
together properly! The tiles are not displayed, but the error message
> An error occurred: Current x value 1079827.000000 is too far from
tile corner x 1095796.660000
is shown. Can anybody give me a hint how to go on? My TileCache and
OpenLayers configs look like that:
var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:
4326"),
maxExtent: new OpenLayers.Bounds
(923284,5940116,1164513,6148046),
resolutions:
[156543.0,78271.5,39135.75,19567.875,9783.9375,4891.96875,2445.984375,1222.9921875,611.49609375,305.748046875,152.874023438,76.4370117188,38.2185058594,19.1092529297,9.55462646484,4.77731323242,2.38865661621,1.19432830811,0.597164154053,0.298582077026
],
maxResolution: 156543.0,
units: 'm',
numZoomLevels: 19
};
this.map = new OpenLayers.Map(this.id, options);
var layer = new OpenLayers.Layer.WMS("wms",
"http://localhost:2280/tiles/tilecache.py", {
layers: "wms",
format: "image/png",
"sphericalMercator": true
}
);
this.map.addLayer(layer);
this.map.zoomToMaxExtent();
- - - - - - - - - - - - -
type=Mapnik
debug=on
mapfile=/home/christoph/mapnik/malstube/map.xml
bbox=923284,5940116,1164513,6148046
resolutions
=
156543.0,78271.5,39135.75,19567.875,9783.9375,4891.96875,2445.984375,1222.9921875,611.49609375,305.748046875,152.874023438,76.4370117188,38.2185058594,19.1092529297,9.55462646484,4.77731323242,2.38865661621,1.19432830811,0.597164154053,0.298582077026
maxResolution=156543.0
srs=EPSG:900913
spherical_mercator=true
metaTile=yes
Thank you for your help!
Christoph
------------------------------
Message: 2
Date: Sat, 14 Nov 2009 18:11:40 -0800
From: Dane Springmeyer <blake at hailmail.net>
Subject: Re: [Tilecache] An error occurred: Current x value ... is too
far from tile corner x ...
To: Christoph Lingg <christoph at lingg.eu>
Cc: tilecache at openlayers.org
Message-ID: <A4D1956E-93D7-42E5-A638-F4745C8F26B3 at hailmail.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Try putting:
projection= +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over
or
projection= +init=epsg:900913
in your tilecache.cfg
Dane
On Nov 14, 2009, at 10:19 AM, Christoph Lingg wrote:
> (I think my last mail hasn't worked without registration, here
> again: )
>
> Hello everybody,
>
> our project just changed from GoogleMaps to OpenLayers and we are
> happy about being independent from proprietary solutions!
>
> But we also have to hurdle some new difficulties, and one of them
> seems to be a big challenge ;-) We are using the combination Mapnik,
> TileCache and OpenLayers and I couldn't figure out how to stick them
> together properly! The tiles are not displayed, but the error message
>
>> An error occurred: Current x value 1079827.000000 is too far from
> tile corner x 1095796.660000
>
> is shown. Can anybody give me a hint how to go on? My TileCache and
> OpenLayers configs look like that:
>
> var options = {
> projection: new OpenLayers.Projection("EPSG:900913"),
> displayProjection: new OpenLayers.Projection("EPSG:
> 4326"),
> maxExtent: new OpenLayers.Bounds
> (923284,5940116,1164513,6148046),
> resolutions:
> [156543.0,78271.5,39135.75,19567.875,9783.9375,4891.96875,2445.984375,1222.9921875,611.49609375,305.748046875,152.874023438,76.4370117188,38.2185058594,19.1092529297,9.55462646484,4.77731323242,2.38865661621,1.19432830811,0.597164154053,0.298582077026
> ],
> maxResolution: 156543.0,
> units: 'm',
> numZoomLevels: 19
> };
> this.map = new OpenLayers.Map(this.id, options);
>
> var layer = new OpenLayers.Layer.WMS("wms",
> "http://localhost:2280/tiles/tilecache.py", {
> layers: "wms",
> format: "image/png",
> "sphericalMercator": true
> }
> );
>
> this.map.addLayer(layer);
> this.map.zoomToMaxExtent();
>
> - - - - - - - - - - - - -
>
> type=Mapnik
> debug=on
> mapfile=/home/christoph/mapnik/malstube/map.xml
> bbox=923284,5940116,1164513,6148046
> resolutions
> =
> 156543.0,78271.5,39135.75,19567.875,9783.9375,4891.96875,2445.984375,1222.9921875,611.49609375,305.748046875,152.874023438,76.4370117188,38.2185058594,19.1092529297,9.55462646484,4.77731323242,2.38865661621,1.19432830811,0.597164154053,0.298582077026
> maxResolution=156543.0
> srs=EPSG:900913
> spherical_mercator=true
> metaTile=yes
>
>
> Thank you for your help!
> Christoph
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
------------------------------
_______________________________________________
Tilecache mailing list
Tilecache at openlayers.org
http://openlayers.org/mailman/listinfo/tilecache
End of Tilecache Digest, Vol 34, Issue 10
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20091116/a04c56aa/attachment.html
More information about the Tilecache
mailing list