On Sat, Feb 18, 2012 at 9:45 AM, Robert Buckley <[email protected]>wrote:

> Thanks Gabriel,
>
> at last last i´ve got GWC working with custom scales!...the bit that
> wasn´t really very well documentated was the crucial last bit with the
> <wmslayers>....Now it´s working I understand the principle much better.
>

cool.

>
>
> I am now looking at the XML schema regarding "resolutions",
> "scaleDenominators", or "levels".
>
> I have seen now custom geowebcache.xml examples which define either levels
> or scaleDenominators. Is there a reason for this..
>

There is. Levels gives you the easiest way of defining the gridset at the
expense of flexibility, like in gwc will just take the whole gridset bounds
and calculate each level's resolution as (level -1) * 2.

scaleDenominators and resolutions lets you specify exactly how you want
each zoom level. Resolutions is the recommended way, as it's not based on a
fixed world to pixel ratio. But some want to define them based on scale
denominators instead (there are a couple of them in the TMS spec), as it's
common to have 1/1M, 1/500K, etc maps. Chosing which one to preserve also
lets you choose which one is bound to floating point rounding errors.

or do all methods of defining map levels work equally well?
>
They should work equally well (provided you use a recent gwc version, 1.2.6
I think still has a bug that prevents using levels).

Cheers,
Gabriel

>
> thanks again,
>
> Rob
>
>    ------------------------------
> *Von:* Gabriel Roldan <[email protected]>
> *An:* Robert Buckley <[email protected]>
> *Cc:* "[email protected]" <
> [email protected]>
> *Gesendet:* 22:36 Freitag, 17.Februar 2012
> *Betreff:* Re: [Geoserver-users] gwc layer naming convention
>
>
> <wmsLayer>
> ...
> <name>basemap</name>
> <wmsUrl><string>SERVERPATH/wms?</wmsUrl>
> <wmsLayers>ocean,border,river,landcover</wmsLayers>
> </wmsLayer>
>
> On Fri, Feb 17, 2012 at 5:55 PM, Robert Buckley 
> <[email protected]>wrote:
>
> Hi,
>
> I´m just reading through the geowebcache documentation, and don´t quite
> understand something about the naming of layers in geowebcache.xml.
>
>
> "<name> The layer name as published by GeoWebCache. It can be the same
> name as known to the WMS (for example, in GeoServer, this would be
> namespace:layername) or not."
>
> If the layername is something different from the wms layer, how can gwc
> know which layer is to be displayed by gwc?
>
> eg. I have a layer named zgb:Grenzen_ZGB.
>
> the wms url is
> .....SERVERPATH/wms?service=WMS&version=1.1.0&request=GetMap&layers=zgb:Grenzen_ZGB
>
> geowebcache reads this from the wms url and creates a gwc tiled
> representation.....so if the layername is something different, how can gwc
> know which layers is to be tiled?
>
>
> furthermore....can anyone tell me why I would first define a layer with
> <wmslayer> etc....and then again in the  <wmslayers> section? Is this for
> configurations which span more than just one layer?
>
>
> thanks,
>
> Rob
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
>
> --
> Gabriel Roldan
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.
>
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to