source: subversion/applications/rendering/wms/capabilities_1_1_0.php @ 34655

Last change on this file since 34655 was 9330, checked in by isortega, 11 years ago

WMS now features basic osmarender support (only z17), as well as more bugs.

File size: 4.2 KB
Line 
1<?xml version='1.0' encoding="utf-8"?>
2<!DOCTYPE WMT_MS_Capabilities SYSTEM
3 "http://www.idee.es/wms/PNOA/capabilities_1_1_1.dtd"
4 [
5 <!ELEMENT VendorSpecificCapabilities EMPTY>
6 ]>
7<WMT_MS_Capabilities version="1.1.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.1.0/capabilities_1_1_0.xsd" updateSequence="0">
8  <Service>
9    <Name>OSM-WMS</Name>
10    <Title>OpenStreetMap WMS</Title>
11    <Abstract>WMS for OpenStreetMap data. All contents under copyleft license. See www.openstreetmap.org for more information.</Abstract>
12    <KeywordList>
13      <Keyword>openstreetmap</Keyword>
14    </KeywordList>
15    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://www.openstreetmap.org/" />
16    <!-- Contact information -->
17    <ContactInformation>
18      <ContactPersonPrimary>
19        <ContactPerson>-</ContactPerson>
20        <ContactOrganization>OpenStreetMap Foundation</ContactOrganization>
21      </ContactPersonPrimary>
22      <ContactPosition>-</ContactPosition>
23      <ContactAddress>
24        <AddressType>-</AddressType>
25        <Address>-</Address>
26        <City>-</City>
27        <StateOrProvince>-</StateOrProvince>
28        <PostCode>-</PostCode>
29        <Country>-</Country>
30      </ContactAddress>
31      <ContactVoiceTelephone>-</ContactVoiceTelephone>
32      <ContactElectronicMailAddress>-</ContactElectronicMailAddress>
33    </ContactInformation>
34    <!-- Fees or access constraints imposed. -->
35    <Fees>Free as in Free Beer</Fees>
36    <AccessConstraints>Contents under copyleft license. Please see http://wiki.openstreetmap.org/index.php/OpenStreetMap_License</AccessConstraints>
37    <LayerLimit>1</LayerLimit>
38    <MaxWidth>2048</MaxWidth>
39    <MaxHeight>2048</MaxHeight>
40  </Service>
41  <Capability>
42    <Request>
43      <GetCapabilities>
44<?php
45// $server_addr = "http://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}{$_SERVER['SCRIPT_NAME']}";
46$server_addr = "http://{$_SERVER['SERVER_NAME']}{$_SERVER['SCRIPT_NAME']}";
47?>
48      <Format>application/vnd.ogc.wms_xml</Format>
49        <DCPType>
50          <HTTP>
51            <Get>
52              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="<?php echo $server_addr; ?>" />
53            </Get>
54            <!--          <Post>
55            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
56             xlink:type="simple"
57             xlink:href="<?php echo $server_addr; ?>"" />
58          </Post>-->
59          </HTTP>
60        </DCPType>
61      </GetCapabilities>
62      <GetMap>
63        <Format>image/png</Format>
64<!--         <Format>image/gif</Format> -->
65<!--         <Format>image/jpeg</Format> -->
66        <DCPType>
67          <HTTP>
68            <Get>
69              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="<?php echo $server_addr; ?>" />
70            </Get>
71          </HTTP>
72        </DCPType>
73      </GetMap>
74<!--      <GetFeatureInfo>
75        <Format>text/xml</Format>
76        <Format>text/plain</Format>
77        <Format>text/html</Format>
78        <DCPType>
79          <HTTP>
80            <Get>
81              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="<?php echo $server_addr; ?>" />
82            </Get>
83          </HTTP>
84        </DCPType>
85      </GetFeatureInfo>-->
86    </Request>
87    <Exception>
88      <Format>application/vnd.ogc.se_xml</Format>
89      <Format>text/xml</Format>
90      <Format>application/vnd.ogc.se_inimage</Format>
91      <Format>application/vnd.ogc.se_blank</Format>
92    </Exception>
93    <VendorSpecificCapabilities />   
94    <Layer>
95      <Title>OpenStreetMap</Title>
96<!--       <SRS>EPSG:4326</SRS> -->
97<?php
98        foreach(datafactory::$available_crs as $crs=>$bounds)
99        {       echo "<SRS>$crs</SRS><BoundingBox SRS='$crs' minx='{$bounds[0]}' miny='{$bounds[1]}' maxx='{$bounds[2]}' maxy='{$bounds[3]}' />";
100}
101       
102        echo "<LatLonBoundingBox minx='-180' miny='-90' maxx='180' maxy='90' />";
103     
104     
105     
106     echo wireframe::getCapabilities();
107     echo osmarender::getCapabilities();
108
109?>
110    </Layer>
111  </Capability>
112</WMT_MS_Capabilities>
Note: See TracBrowser for help on using the repository browser.