[OpenLayers-Trac] [OpenLayers] #3026: Add
OpenLayers.Format.WMSCCapabilities
OpenLayers
trac-20090302 at openlayers.org
Mon Jan 24 05:00:47 EST 2011
#3026: Add OpenLayers.Format.WMSCCapabilities
------------------------------------+---------------------------------------
Reporter: bartvde | Owner: tschaub
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Format.WMSCapabilities | Version: 2.10
Keywords: WMS-C | State:
------------------------------------+---------------------------------------
If a WMS contains extra informations as proposed here (a.k.a. WMS-C):
http://wiki.osgeo.org/wiki/WMS_Tile_Caching, we can take advantage of them
by parsing the addition information.
This has been done in GeoServer/GWC.
The structure used is described as:
{{{
<!ELEMENT VendorSpecificCapabilities (TileSet*) >
<!ELEMENT TileSet (SRS, BoundingBox?, Resolutions, Width, Height, Format,
Layers*, Styles*) >
<!ELEMENT Resolutions (#PCDATA) >
<!ELEMENT Width (#PCDATA) >
<!ELEMENT Height (#PCDATA) >
<!ELEMENT Layers (#PCDATA) >
<!ELEMENT Styles (#PCDATA) >
}}}
An example is:
{{{
<VendorSpecificCapabilities>
<TileSet>
<SRS>EPSG:900913</SRS>
<BoundingBox SRS="EPSG:900913" minx="-1.3697515466796875E7"
miny="5165920.118906248" maxx="-1.361924394984375E7"
maxy="5244191.635859374"/>
<Resolutions>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 0.14929107084870338 0.07464553542435169
0.037322767712175846 0.018661383856087923 0.009330691928043961
0.004665345964021981 </Resolutions>
<Width>256</Width>
<Height>256</Height>
<Format>image/png</Format>
<Layers>medford:hydro</Layers>
<Styles/>
</TileSet>
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/3026>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list