[OpenLayers-Users] WG: [Users] TMS problem with geowebcache

Robert Buckley robertdbuckley at yahoo.com
Wed Nov 2 08:21:50 EDT 2011




----- Weitergeleitete Message -----
Von: Robert Buckley <robertdbuckley at yahoo.com>
An: Ralph Dell <RDell at CatawbaCountyNC.gov>
Gesendet: 13:21 Mittwoch, 2.November 2011 
Betreff: Re: [Users] TMS problem with geowebcache


Hi thanks for the suggestion. I have tried changing the layername as you said but i´m still getting status:404

Here is the project

http://maps.zgb.de/eeg/gwc_print.html


Cheers,

Rob


________________________________
Von: Ralph Dell <RDell at CatawbaCountyNC.gov>
An: Robert Buckley <robertdbuckley at yahoo.com>; users at geoext.org
Gesendet: 12:48 Mittwoch, 2.November 2011 
Betreff: RE: [Users] TMS problem with geowebcache


 
What happens if you use zgb:rrop08_mosaic at ESPG:900913 at png as the layername
 
Ralph Dell
 
From:users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf Of Robert
Buckley
Sent: Wednesday, November 02, 2011 3:48 AM
To: users at openlayers.org; users at geoext.org
Subject: [Users] TMS problem with geowebcache
 
Hi,
 
I´m trying to implement a tms service
through geowebcache (running inside Geoserver2.1.2 on Linux/tomcat6)
 
The layer in question in fine runnning
as a normal WMS geowebcache service as defined below, but the layer doesn´t
print.
 
reading this post (http://www.mail-archive.com/users@geoext.org/msg01973.html)I
thought I´d try the tms service
 
 
      // gwc/wms
service
      
      var GWC_Layer = new
OpenLayers.Layer.WMS("GWC Layer", 
            "http://maps.zgb.de/geoserver/gwc/service/wms",
{
            layers: 'zgb:rrop08_mosaic',
                  projection:
epsg900913,
                  format:
'image/png',
            transparent: true,
            singleTile: true
            },
{'buffer': 0,
            'opacity': 1,
            'isBaseLayer': true,
            visibility: true
      }); 
 
      // GWC TMS Service
      var TMS_Layer = new
OpenLayers.Layer.TMS(
                  'TMS_Layer','http://maps.zgb.de/geoserver/gwc/service/tms/',{
                  serviceVersion:
'1.0.0',                  
                  layername:'http://maps.zgb.de/geoserver/gwc/service/tms/1.0.0/zgb:rrop08_mosaic@ESPG:900913@png',
                  type:'png',
                  visibility:true,
                  isBaseLayer: false,
                  serverResolutions:[156543.03390625,
78271.516953125, 39135.7584765625, 19567.87923828125, 
                  9783.939619140625,
4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891,
305.74811309814453, 
                  152.87405654907226,
76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017,
4.777314267158508, 
                  2.388657133579254,
1.194328566789627, 0.5971642833948135, 0.29858214169740677]
            }
      );
 
 
All I get are 404 errors.
 
The map is in EPSG:900913 and so is the
TileCache, so I´m guessing the gridset is  ok???..but it´s my first time
so I can´t say for sure.
 
any help would be great,
 
Cheers,
 
Rob 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111102/0a5c8c2f/attachment-0001.html


More information about the Users mailing list