Almost, there's a bit of history that makes this convoluted.

<gridSet>
A set of grids, or a definition of a pyramid of tiles, if you like. One such definition can be used by many layers.

<gridSet><name>:
The name of the grid set. Earlier there was only support for one gridSet per projection (based on the way WMS-C was defined, and how actual clients work). The easiest is to just stick to the EPSG-code you are going to use, i.e. "EPSG:32632"

<gridSet><srs><number>:
This controls what SRS is sent to the backend WMS when the cache requests tiles, use 32632 for your case.

<gridSet><extent><coords>:
The maximum extent in the units of the projection, Left,Bottom,Right,Top. The entire grid will be aligned to the bottom left coordinate.

<wmsLayer><name>
As I said initially, you *should* give it a different name than what the layer is called by GeoServer. Otherwise you are trying to override something that was configured automatically, and that is messy.

<wmsLayer><gridSubsets><gridSubset><gridSetName>
This references the the gridSet defined above, use EPSG:32632. (gridSubset = instance of gridSet, each layer can have many)

<wmsLayer><wmsLayers>
This is what you would put as the value for the LAYERS parameter in a request to the backend WMS server. Can be a single layer name, or multiple separated by comma.

-Arne

ps. Also see http://geowebcache.org/schema/docs/1.2.2/index.html


On 6/14/11 10:41 AM, Micka wrote:
Hello,

I would like to be sure that I understand well what you said :


i've to create and put the file geowebcache.xml in the <GEOSERVER_DATA_DIR>/gwc/ In this file, I've to past what you gave me :

<?xml version="1.0" encoding="utf-8"?>

<gwcConfiguration xmlns:xsi=*MailScanner has detected a possible fraud attempt from "www.w3.org" claiming to be* "http://www.w3.org/2001/XMLSchema-instance"; <http://www.w3.org/2001/XMLSchema-instance>

xsi:noNamespaceSchemaLocation=*MailScanner has detected a possible fraud attempt from "geowebcache.org" claiming to be* "http://geowebcache.org/schema/1.2.2/geowebcache.xsd"; <http://geowebcache.org/schema/1.2.2/geowebcache.xsd>

xmlns=*MailScanner has detected a possible fraud attempt from "geowebcache.org" claiming to be* "http://geowebcache.org/schema/1.2.2"; <http://geowebcache.org/schema/1.2.2>>

<version>1.2.2</version>


<gridSets>
<gridSet>
<name>EPSG:2163</name>

<srs><number>2163</number></srs>

<extent>
<coords>
<double>-2495667.977678598</double>

<double>-2223677.196231552</double> *<=== This 4 lines is to put the limit*

<double>3291070.6104286816</double>

<double>959189.3312465074</double>

</coords>
</extent>
</gridSet>
</gridSets><layers>
<wmsLayer>
<name>new_name</name> *<==== I can give a random name ? or it have to be exactly the same name of the layer ?*

<gridSubsets>
<gridSubset>
<gridSetName>EPSG:2163</gridSetName> *<=== The EPSG of my Layer*
</gridSubset>
</gridSubsets>
<wmsUrl><string>http://localhost:8080/geoserver/wms</string></wmsUrl> *<=== The url of wms* <wmsLayers>backend_name</wmsLayers> *<=== It have to be exactly the name of the layer *
</wmsLayer> </layers>
</gwcConfiguration>



And after doing that, I can use this link hhttp://localhost:8080/geoserver/gwc/service/wms
Instead of http://localhost:8080/geoserver/wms


I just want to be sure that I understand well how it works.



Thanks,


<snip>

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to