<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!-- The DTD (Document Type Definition) given here must correspond to the version number
declared in the WMT_MS_Capabilities element below. -->

<!-- Note: this XML is just an EXAMPLE that attempts to show all
required and optional elements for illustration. Consult the Web Map
Service 1.1.1 specification and the DTD for guidance on what to actually
include and what to leave out. -->

<!-- The version number listed in the WMT_MS_Capabilities element here must
correspond to the DTD declared above. See the WMT specification document for
how to respond when a client requests a version number not implemented by the
server. -->

<!-- namespaces added for version 1.3.0 support -->
<WMS_Capabilities xmlns:xlink="http://www.w3.org/1999/xlink" version="1.3.0" xmlns="http://www.opengis.net/wms" 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">


    <!-- Service Metadata -->
    <Service>

	<!-- The WMT-defined name for this type of service -->
	<Name>WMS</Name>

	<!-- Human-readable title for pick lists -->
	<Title>Compusult Limited METAR Weather Mapping service</Title>

	<!-- Narrative description providing additional information -->
	<Abstract>METAR is the international standard code format for hourly surface weather observations which is analogous to the SA coding currently used in the US. The acronym roughly translates from French as Aviation Routine Weather Report. These hourly weather reports are harvested by Compusult for World Airports.</Abstract> 

	<KeywordList> 
		<Keyword>METAR</Keyword>
		<Keyword>Weather</Keyword>
		<Keyword>Meteorlogical</Keyword>
	</KeywordList>

	<!-- Top-level web address of service or service provider. See also OnlineResource elements under <DCPType>. -->
	<OnlineResource xlink:type="simple" xlink:href="http://magellan.compusult.net/mapmanconnector/weather" />

	<!-- Contact information -->
	<ContactInformation>
	    <ContactPersonPrimary>
		<ContactPerson>Rob Cass</ContactPerson>
		<ContactOrganization>Compusult Ltd.</ContactOrganization>
	    </ContactPersonPrimary>
	    <ContactPosition>Programmer</ContactPosition>
	    <ContactAddress>
		<AddressType>postal</AddressType>
		<Address>40 Bannister Street</Address>
		<City>Mt. Pearl</City>
	    	<StateOrProvince>NF</StateOrProvince>
	    	<PostCode>A1N3C9</PostCode>
	    	<Country>CA</Country>
	    </ContactAddress>
	    <ContactVoiceTelephone>+1 709 745-7914</ContactVoiceTelephone>
	    <ContactFacsimileTelephone>+1 709 745-7927</ContactFacsimileTelephone>
	    <ContactElectronicMailAddress>rcass@compusult.nf.ca</ContactElectronicMailAddress>
	</ContactInformation>
	
	<!-- Fees or access constraints imposed. -->
	<Fees>none</Fees>
	<AccessConstraints>none</AccessConstraints>
    </Service>


    <Capability>
      <Request>
	<GetCapabilities>
	    <Format>application/vnd.ogc.wms_xml</Format>
	    <!-- <Format>text/xml</Format> -->	<!-- added for version 1.3.0 support -->
	    <DCPType>
	      <HTTP>
		<Get>
		    <!-- The URL here for invoking GetCapabilities using HTTP GET is only a prefix to which a query string is appended. -->
		    <OnlineResource xlink:type="simple" xlink:href="http://magellan.compusult.net/mapmanconnector/weather" />
		</Get>
		<Post>
		    <!-- The URL here for invoking GetCapabilities using HTTP POST includes the complete address to which a query would be sent in XML format. This is here for future expansion; no POST encoding has yet been defined. -->
		    <OnlineResource xlink:type="simple" xlink:href="http://magellan.compusult.net/mapmanconnector/weather" />
		</Post>
	      </HTTP>
	    </DCPType>
	</GetCapabilities>
	
	<GetMap>
	    <Format>image/gif</Format>
  	    <Format>image/jpeg</Format>
            <!-- <Format>image/png</Format> --> <!-- added for version 1.3.0 support -->
	    <DCPType>
	      <HTTP>
	        <Get>
  		<!-- The URL here for invoking GetCapabilities using HTTP GET is only a prefix to which a query string is appended. -->
		<OnlineResource xlink:type="simple" xlink:href="http://magellan.compusult.net/mapmanconnector/weather" />
		</Get>
	      </HTTP>
 	    </DCPType>
	</GetMap>

	<GetFeatureInfo>
	    <Format>text/html</Format>
	    <DCPType>
		<HTTP>
		   <Get>
			<OnlineResource xlink:type="simple" xlink:href="http://magellan.compusult.net/mapmanconnector/weather" />
	     	   </Get>
		</HTTP>
	    </DCPType>
	</GetFeatureInfo>


    </Request>

    <Exception>
	<Format>application/vnd.ogc.se_xml</Format>
	<Format>application/vnd.ogc.se_inimage</Format>
	<Format>application/vnd.ogc.se_blank</Format>
        <Format>INIMAGE</Format>	<!-- added for version 1.3.0 support -->
        <Format>XML</Format>		<!-- added for version 1.3.0 support -->
        <!-- <Format>TEXT</Format> --> 	<!-- added for version 1.3.0 support -->
        <!-- <Format>HTML</Format> -->	<!-- added for version 1.3.0 support -->
        <Format>BLANK</Format>		<!-- added for version 1.3.0 support -->
    </Exception>

    <!-- Any text or markup is allowed here, as required to describe vendor-specific capabilities. Please define elements and attributes in the DOCTYPE declaration at the start of the document. -->
    <!-- This example is empty because no VSPs were defined in preamble -->
    <!-- <VendorSpecificCapabilities /> --> <!-- removed for version 1.3.0 support -->


   <Layer>
  	<Title>Airport Weather</Title>
	<CRS>CRS:84</CRS> <!-- all layers are available in at least this SRS --><!-- modified for version 1.3.0 support -->
	<AuthorityURL name="DIF_ID">
 	    <OnlineResource xlink:type="simple" xlink:href="http://gcmd.gsfc.nasa.gov/difguide/whatisadif.html" />
	</AuthorityURL>

	<Layer queryable="1">
 	    <Name>WEATHER</Name>
	    <Title>World Hourly METAR Weather Reports</Title>
	    <Abstract>METAR is the international standard code format for hourly surface weather observations which is analogous to the SA coding currently used in the US. The acronym roughly translates from French as Aviation Routine Weather Report. These hourly weather reports are harvested by Compusult for World Airports</Abstract>
	    <KeywordList>
	    	<Keyword>METAR</Keyword>
	    	<Keyword>Weather</Keyword>
	    	<Keyword>Forecasts</Keyword>
	    	<Keyword>Meteorlogical</Keyword>
	    </KeywordList>

	    <BoundingBox minx="-180" miny="-90" maxx="180" maxy="90" CRS="CRS:84"/> <!-- modified for version 1.3.0 support -->


	    <!-- In addition to the Style specified in the parent Layer, this Layer is available in this style. -->
  	    <Style>
	        <Name>DEFAULT</Name>
	        <Title>default style</Title>
	        <Abstract>Images depicting weather</Abstract>
	        <LegendURL width="226" height="419">
		    <Format>image/gif</Format>
		    <OnlineResource xlink:type="simple" xlink:href="http://magellan.compusult.net/legends/weather.gif" />
	        </LegendURL>
	    </Style>
        </Layer>
    </Layer> 
  </Capability>
</WMS_Capabilities>
