source: subversion/applications/rendering/wms/capabilities_1_3_0.php @ 9331

Last change on this file since 9331 was 8444, checked in by isortega, 11 years ago

OSM WMS: first upload of a version that seems to work with heavy WMS clients

File size: 3.6 KB
Line 
1<?xml version='1.0' encoding="utf-8"?>
2<WMS_Capabilities version="1.3.0" xmlns="http://www.opengis.net/wms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd">
3  <Service>
4    <Name>OSM-WMS</Name>
5    <Title>OpenStreetMap WMS</Title>
6    <Abstract>WMS for OpenStreetMap data. All contents under copyleft license. See www.openstreetmap.org for more information.</Abstract>
7    <KeywordList>
8      <Keyword>openstreetmap</Keyword>
9    </KeywordList>
10    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://www.openstreetmap.org/" />
11    <!-- Contact information -->
12    <ContactInformation>
13      <ContactPersonPrimary>
14        <ContactPerson>-</ContactPerson>
15        <ContactOrganization>OpenStreetMap Foundation</ContactOrganization>
16      </ContactPersonPrimary>
17      <ContactPosition>-</ContactPosition>
18      <ContactAddress>
19        <AddressType>-</AddressType>
20        <Address>-</Address>
21        <City>-</City>
22        <StateOrProvince>-</StateOrProvince>
23        <PostCode>-</PostCode>
24        <Country>-</Country>
25      </ContactAddress>
26      <ContactVoiceTelephone>-</ContactVoiceTelephone>
27      <ContactElectronicMailAddress>-</ContactElectronicMailAddress>
28    </ContactInformation>
29    <!-- Fees or access constraints imposed. -->
30    <Fees>Free as in Free Beer</Fees>
31    <AccessConstraints>Contents under copyleft license. Please see http://wiki.openstreetmap.org/index.php/OpenStreetMap_License</AccessConstraints>
32    <LayerLimit>1</LayerLimit>
33    <MaxWidth>2048</MaxWidth>
34    <MaxHeight>2048</MaxHeight>
35  </Service>
36  <Capability>
37    <Request>
38      <GetCapabilities>
39<?php
40// $server_addr = "http://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}{$_SERVER['SCRIPT_NAME']}";
41$server_addr = "http://{$_SERVER['SERVER_NAME']}{$_SERVER['SCRIPT_NAME']}";
42?>
43      <Format>text/xml</Format>
44        <DCPType>
45          <HTTP>
46            <Get>
47              <!-- TODO: replace with URL when on a live server! -->
48              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="<?php echo $server_addr; ?>" />
49            </Get>
50            <!--          <Post>
51            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
52             xlink:type="simple"
53             xlink:href="<?php echo $server_addr; ?>"" />
54          </Post>-->
55          </HTTP>
56        </DCPType>
57      </GetCapabilities>
58      <GetMap>
59        <Format>image/gif</Format>
60        <Format>image/png</Format>
61        <Format>image/jpeg</Format>
62        <DCPType>
63          <HTTP>
64            <Get>
65              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="<?php echo $server_addr; ?>" />
66            </Get>
67          </HTTP>
68        </DCPType>
69      </GetMap>
70<!--      <GetFeatureInfo>
71        <Format>text/xml</Format>
72        <Format>text/plain</Format>
73        <Format>text/html</Format>
74        <DCPType>
75          <HTTP>
76            <Get>
77              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="<?php echo $server_addr; ?>" />
78            </Get>
79          </HTTP>
80        </DCPType>
81      </GetFeatureInfo>-->
82    </Request>
83    <Exception>
84      <Format>XML</Format>
85      <Format>INIMAGE</Format>
86      <!--     <Format>BLANK</Format> -->
87    </Exception>
88    <Layer>
89      <Title>OpenStreetMap</Title>
90      <CRS>CRS:84</CRS>
91<?php
92     echo wireframe::getCapabilities();
93?>
94    </Layer>
95  </Capability>
96</WMS_Capabilities>
Note: See TracBrowser for help on using the repository browser.