[Geoserver-users] GeoWebCache tiles offset

Hello all,

I am using GS 2.4.0 with OpenLayers 2.11. I have many heavy vector layers, which I have cached with GWC (lines & polygons).
When I visualize these layers in their non-cached version with an OL application, there is no problem of offset. But as soon as I use the cached version, there is an important offset with the original data, at all scales. Both original data and application are in EPSG 4326.

Here is how I use the cache in OL, for instance :

new OpenLayers.Layer.WMS('Coastline',
     wms_url,
     {layers: 'carto:TDCMonde2', transparent: true, tiled: true},
     {visibility: false, isBaseLayer: false, transitionEffect: 'resize'}
)

I just comment the "tiled: true" for changing to non-cache. I've been trying to retile all these layers, but it doesn't change anything...
Anyone has an idea of how to deal with that ? I can send some images.

Thanks !!

Gabriel

Hi Gabriel,

I think that maybe the problem could be your Map definition.
Probably your GetMap requests don’t match exactly with the
GWC gridset that you are using. I think that client side
you should have the corresponding zoom levels and max extent
for the OL Map.

Regards,
Tobia Di Pisa

···

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Dott. Ing. Tobia Di Pisa
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313+39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

2014-03-20 9:40 GMT+01:00 Gabriel Vatin <gabriel.vatin@anonymised.com>:

Hello all,

I am using GS 2.4.0 with OpenLayers 2.11. I have many heavy vector
layers, which I have cached with GWC (lines & polygons).
When I visualize these layers in their non-cached version with an OL
application, there is no problem of offset. But as soon as I use the
cached version, there is an important offset with the original data, at
all scales. Both original data and application are in EPSG 4326.

Here is how I use the cache in OL, for instance :

new OpenLayers.Layer.WMS(‘Coastline’,
wms_url,
{layers: ‘carto:TDCMonde2’, transparent: true, tiled: true},
{visibility: false, isBaseLayer: false, transitionEffect: ‘resize’}
)

I just comment the “tiled: true” for changing to non-cache. I’ve been
trying to retile all these layers, but it doesn’t change anything…
Anyone has an idea of how to deal with that ? I can send some images.

Thanks !!

Gabriel


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Tobia,

Indeed, that was a problem from my OL map configuration, where I used restrictedExtent and maxExtent that were little less than 180,90/-180, -90
Now all tiled and non tiled layers are matching. Thanks !!

Gabriel

Le 25/03/2014 12:14, Tobia Di Pisa a écrit :

Hi Gabriel,

I think that maybe the problem could be your Map definition.
Probably your GetMap requests don't match exactly with the
GWC gridset that you are using. I think that client side
you should have the corresponding zoom levels and max extent
for the OL Map.

Regards,
     Tobia Di Pisa

*==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==*

Dott. Ing. Tobia Di Pisa
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313+39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
Call
Send SMS
Add to Skype
You'll need Skype CreditFree via Skype

2014-03-20 9:40 GMT+01:00 Gabriel Vatin <gabriel.vatin@anonymised.com <mailto:gabriel.vatin@anonymised.com>>:

    Hello all,

    I am using GS 2.4.0 with OpenLayers 2.11. I have many heavy vector
    layers, which I have cached with GWC (lines & polygons).
    When I visualize these layers in their non-cached version with an OL
    application, there is no problem of offset. But as soon as I use the
    cached version, there is an important offset with the original
    data, at
    all scales. Both original data and application are in EPSG 4326.

    Here is how I use the cache in OL, for instance :

    new OpenLayers.Layer.WMS('Coastline',
         wms_url,
         {layers: 'carto:TDCMonde2', transparent: true, tiled: true},
         {visibility: false, isBaseLayer: false, transitionEffect:
    'resize'}
    )

    I just comment the "tiled: true" for changing to non-cache. I've been
    trying to retile all these layers, but it doesn't change anything...
    Anyone has an idea of how to deal with that ? I can send some images.

    Thanks !!

    Gabriel

    ------------------------------------------------------------------------------
    Learn Graph Databases - Download FREE O'Reilly Book
    "Graph Databases" is the definitive new guide to graph databases
    and their
    applications. Written by three acclaimed leaders in the field,
    this first edition is now available. Download your free book today!
    http://p.sf.net/sfu/13534_NeoTech
    _______________________________________________
    Geoserver-users mailing list
    Geoserver-users@lists.sourceforge.net
    <mailto:Geoserver-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geoserver-users