<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by gudmund (Norut IT) -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:sat="http://cweb.ksat.no/cweb/schema/satellite" xmlns:wind="http://cweb.ksat.no/cweb/schema/wind" targetNamespace="http://cweb.ksat.no/cweb/schema/wind" elementFormDefault="qualified" attributeFormDefault="unqualified" version="3.1.1" id="wind">
	<xsd:annotation>
		<xsd:documentation>
		    Copyright (c) 2006 KSAT and Norut IT, All Rights Reserved.
			Satellite based windl Detection - GML Application schema
		</xsd:documentation>
	</xsd:annotation>
	<!-- ====================================================================== -->
	<!-- GML IMPORT -->
	<xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://cweb.ksat.no/cweb/schema/gml/3.1.1/base/feature.xsd"/>
	<xsd:import namespace="http://cweb.ksat.no/cweb/schema/satellite" schemaLocation="http://cweb.ksat.no/cweb/schema/satellite/sat.xsd"/>
	<!-- ================================================================== -->
	<!-- globally defined wind: elements (direct from gml or xsd namespace types) -->
	<xsd:element name="speed" type="xsd:decimal"/>
	<xsd:element name="zonalSpeed" type="xsd:decimal"/>
	<xsd:element name="meridionalSpeed" type="xsd:decimal"/>
	<xsd:element name="stress" type="xsd:decimal"/>
	<xsd:element name="zonalStress" type="xsd:decimal"/>
	<xsd:element name="meridionalStress" type="xsd:decimal"/>
	<xsd:element name="speedDivergence" type="xsd:decimal"/>
	<xsd:element name="stressCurl" type="xsd:decimal"/>
	<xsd:element name="speedError" type="xsd:decimal"/>
	<xsd:element name="zonalSpeedError" type="xsd:decimal"/>
	<xsd:element name="meridionalSpeedError" type="xsd:decimal"/>
	<xsd:element name="stressError" type="xsd:decimal"/>
	<xsd:element name="zonalStressError" type="xsd:decimal"/>
	<xsd:element name="meridionalStressError" type="xsd:decimal"/>
	<xsd:element name="swathCount" type="xsd:decimal"/>
	<xsd:element name="qualityFlag" type="xsd:decimal"/>
	<xsd:element name="description" type="xsd:string">
		<xsd:annotation>
			<xsd:documentation>A free-text description of the observation.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="dataSource" type="xsd:string">
		<xsd:annotation>
			<xsd:documentation>Name of organization or system providing this feature collection.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- ================================================================== -->
	<!-- wind: detected wind element - based on a gml Point -->
	<xsd:element name="windMeasure" type="wind:WindMeasureType" substitutionGroup="gml:pointProperty">
		<xsd:annotation>
			<xsd:documentation>The snapshot of an wind Measure, all attributes (except the point) are optional. Inherits the pointMemberType of gml</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="WindMeasureType">
		<xsd:complexContent>
			<xsd:extension base="gml:PointPropertyType">
				<xsd:sequence>
					<xsd:element ref="wind:speed"/>
					<xsd:element ref="wind:zonalSpeed"/>
					<xsd:element ref="wind:meridionalSpeed"/>
					<xsd:element ref="wind:stress" minOccurs="0"/>
					<xsd:element ref="wind:zonalStress" minOccurs="0"/>
					<xsd:element ref="wind:meridionalStress" minOccurs="0"/>
					<xsd:element ref="wind:speedDivergence" minOccurs="0"/>
					<xsd:element ref="wind:stressCurl" minOccurs="0"/>
					<xsd:element ref="wind:speedError" minOccurs="0"/>
					<xsd:element ref="wind:zonalSpeedError" minOccurs="0"/>
					<xsd:element ref="wind:meridionalSpeedError" minOccurs="0"/>
					<xsd:element ref="wind:stressError" minOccurs="0"/>
					<xsd:element ref="wind:zonalStressError" minOccurs="0"/>
					<xsd:element ref="wind:meridionalStressError" minOccurs="0"/>
					<xsd:element ref="wind:swathCount" minOccurs="0"/>
					<xsd:element ref="wind:qualityFlag" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ================================================================== -->
	<!-- Wind Feature Type -->
	<xsd:element name="feature" type="wind:FeatureType" substitutionGroup="gml:_Feature">
		<xsd:annotation>
			<xsd:documentation>An Wind feature encloses a snapshot of a single detected wind observationl</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="FeatureType">
		<xsd:complexContent>
			<xsd:extension base="gml:AbstractFeatureType">
				<xsd:sequence>
					<xsd:element ref="wind:windMeasure">
						<xsd:annotation>
							<xsd:documentation>The actual wind measure status</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="sat:source" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Source (optional)  represents the satellite product of origin, only significant if not present in the feature collection at the higher level</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- =================================================== -->
	<!-- =================================================== -->
	<!-- The Request element for a Wind Feature Service                           -->
	<!-- =================================================== -->
	<!-- =================================================== -->
	<xsd:element name="getFeature" type="sat:GetFeatureType">
		<xsd:annotation>
			<xsd:documentation>This is the concrete request element used to query a service for Wind features</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- =================================================== -->
	<!-- =================================================== -->
	<!-- The Response element for a Wind Feature Service                        -->
	<!-- =================================================== -->
	<!-- =================================================== -->
	<xsd:element name="featureCollection" type="wind:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection">
		<xsd:annotation>
			<xsd:documentation>This is the concrete response element used to query a service for Wind features</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- Wind  Feature Collection Type -->
	<xsd:complexType name="FeatureCollectionType">
		<xsd:annotation>
			<xsd:documentation>
				An Wind feature collection encloses a set of Wind features.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="gml:AbstractFeatureCollectionType">
				<xsd:sequence>
					<xsd:element ref="sat:requestID" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>If an requestID was given by the requesting part, it's value shall be set here</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<!-- optional collection common elements -->
					<xsd:element ref="sat:source" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Source (optional)  represents the satellite product of origin</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="wind:description" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A free-text description of the observation.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="wind:dataSource" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>DataSource (optional)  represents here the generating organizational source for this feature collection, e.g. name of the providing organization</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
</xsd:schema>
