Changeset 363

Show
Ignore:
Timestamp:
09/01/08 22:40:49 (4 months ago)
Author:
arneke
Message:

Better example with arbitrary projection, WMS layer reuse and comments.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/geowebcache/src/main/resources/geowebcache.xml

    r348 r363  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<layers> 
     3 <!--  
     4  This is a pretty standard example, suitable for use with  
     5   * Google Earth (EPSG:4326 , KML support) 
     6   * Google Maps and Microsoft Virtual Earth (EPSG:900913, PNG support) 
     7 --> 
    38 <wmslayer> 
    49  <layer-name>topp:states</layer-name> 
     
    7984  <!-- cachePrefix>/var/lib/geowebcache/topp_states</cachePrefix --> 
    8085</wmslayer> 
     86 
     87 <!--  
     88  This example shows that you can reuse WMS-layers and give them 
     89  new names or styles, as shown here. 
     90    
     91  EPSG:2163 is an equal area (Azimuthal Lambert) projection and demonstrates 
     92  that GeoWebCache is now SRS agnostic. Note that in order to make the 
     93  tiles work in OpenLayers you need to provide the correct bounds and 
     94  resolution(s). Please use the source of the demo page for reference, 
     95  as GeoWebCache will calculate them automatically for you there. 
     96 --> 
     97  
     98 <wmslayer> 
     99  <layer-name>topp:states2</layer-name> 
     100  <mimeFormats> 
     101    <string>image/png</string> 
     102    <string>image/jpeg</string> 
     103  </mimeFormats> 
     104  <grids> 
     105    <entry> 
     106      <SRS> 
     107        <number>2163</number> 
     108      </SRS> 
     109      <grid> 
     110        <srs> 
     111          <number>2163</number> 
     112        </srs> 
     113        <dataBounds> 
     114          <coords>           
     115            <double>-2495667.977678598</double> 
     116            <double>-2223677.196231552</double> 
     117            <double>3291070.6104286816</double> 
     118            <double>959189.3312465074</double> 
     119          </coords> 
     120        </dataBounds> 
     121        <gridBounds> 
     122          <coords> 
     123            <double>-2495667.977678598</double> 
     124            <double>-2223677.196231552</double> 
     125            <double>3291070.6104286816</double> 
     126            <double>959189.3312465074</double> 
     127          </coords> 
     128        </gridBounds> 
     129      </grid> 
     130    </entry> 
     131  </grids> 
     132  <wmsUrl> 
     133    <string>http://sigma.openplans.org:80/geoserver/wms</string> 
     134  </wmsUrl> 
     135  <wmsLayers>topp:states</wmsLayers> 
     136  <wmsStyles>polygon</wmsStyles> 
     137  <metaWidthHeight> 
     138    <int>3</int> 
     139    <int>3</int> 
     140  </metaWidthHeight> 
     141  <tiled>false</tiled> 
     142  <transparent>true</transparent> 
     143  <bgColor></bgColor> 
     144  <palette></palette> 
     145  <vendorParameters>format_options=regionateby:auto</vendorParameters> 
     146  <!-- cachePrefix>/var/lib/geowebcache/topp_states</cachePrefix --> 
     147</wmslayer> 
    81148</layers>