Table of Contents | ||
---|---|---|
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
<wmsLayer> <enabled>true</enabled> <name>img states</name> <metaInformation> <title>Nicer title for Image States</title> <description>This is a description. Fascinating.</description> </metaInformation> <mimeFormats> <string>image/gif</string> <string>image/jpeg</string> <string>image/png</string> <string>image/png8</string> </mimeFormats> <gridSubsets> <gridSubset> <gridSetName>EPSG:4326</gridSetName> <extent> <coords> <double>-129.6</double> <double>3.45</double> <double>-62.1</double> <double>70.9</double> </coords> </extent> </gridSubset> </gridSubsets> <metaWidthHeight> <int>3</int> <int>3</int> </metaWidthHeight> <expireCacheList> <expirationRule minZoom="0" expiration="60"/> </expireCacheList> <expireClientsList> <expirationRule minZoom="0" expiration="500"/> </expireClientsList> <backendTimeout>120</backendTimeout> <cacheBypassAllowed>false</cacheBypassAllowed> <wmsUrl> <string>http://demo.opengeo.org/geoserver/wms?</string> </wmsUrl> <wmsLayers>nurc:Img_Sample,topp:states</wmsLayers> <gutter>0</gutter> <transparent>false</transparent> <bgColor>0x0066FF</bgColor> <concurrency>32</concurrency> </wmsLayer> |
Delete a layer
...
Code Block | ||||
---|---|---|---|---|
| ||||
<wmsLayer> <name>states</name> <mimeFormats> <string>image/gif</string> <string>image/jpeg</string> <string>image/png</string> <string>image/png8</string> </mimeFormats> <gridSubsets> <gridSubset> <gridSetName>EPSG:4326</gridSetName> <extent> <coords> <double>-129.6</double> <double>3.45</double> <double>-62.1</double> <double>70.9</double> </coords> </extent> </gridSubset> </gridSubsets> <wmsUrl> <string>http://demo.opengeo.org/geoserver/wms</string> </wmsUrl> <wmsLayers>nurc:Img_Sample,topp:states</wmsLayers> <transparent>false</transparent> <bgColor>0x0066FF</bgColor> </wmsLayer> |
...
Modify a layer
Code Block | ||||
---|---|---|---|---|
| ||||
curl -v -k -XPOST -H "Content-type: text/xml" -d @states2.xml "https://localhost:8993/geowebcache/rest/layers/states.xml" |
Code Block | ||||
---|---|---|---|---|
| ||||
<wmsLayer> <name>states</name> <mimeFormats> <string>image/gif</string> <string>image/jpeg</string> <string>image/png</string> </mimeFormats> <gridSubsets> <gridSubset> <gridSetName>EPSG:4326</gridSetName> <extent> <coords> <double>-129.6</double> <double>3.45</double> <double>-62.1</double> <double>70.9</double> </coords> </extent> </gridSubset> </gridSubsets> <wmsUrl> <string>http://demo.opengeo.org/geoserver/wms</string> </wmsUrl> <wmsLayers>nurc:Img_Sample,topp:states</wmsLayers> <transparent>false</transparent> <bgColor>0x0066FF</bgColor> </wmsLayer> |
GeoWebCache Layer Schema
...
Element | Example Value | Description |
---|---|---|
name | layer1 | The name of the layer that GWC should respond to. It is equivalent to the value of LAYERS= in WMS requests, and can contain commas. See wmsLayers |
mimeFormats | <string>image/jpeg</string> | List of formats to be supported. These must be known to GeoWebCache. Legal values are image/png, image/png8, image/png24, image/gif, image/jpeg, image/tiff, gml, application/vnd.google-earth.kml+xml, application/vnd.google-earth.kmz+xml |
wmsUrl | http://example.org/wms | A list of URLs to backend servers than can render tiles for this layer. They are used in a round robin fashion for load balancing and automatic failover. The only time you can ommit this element is if you expect the layer to be merged with that from another source. |
wmsLayers | layer1,layer2 | The LAYERS parameter sent to the WMS backend. It may contain commas, to request composites of several layers from the backend, and be different from the name element. |
wmsVersion | 1.1.1 | The VERSION parameter sent to the WMS backend. The default is 1.1.1 |
tiled | false | The TILED parameter sent to the WMS backend. The default is FALSE, you should generally not change this. |
...