<?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" targetNamespace="http://cweb.ksat.no/cweb/schema/satellite" elementFormDefault="qualified" attributeFormDefault="unqualified" version="3.1.1" id="sat">
	<xsd:annotation>
		<xsd:documentation>
		    Copyright (c) 2006 KSAT and Norut IT, All Rights Reserved.
			Satellite source product description - uses GML schema type for geometry
		</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/geometryBasic0d1d.xsd"/>
	<!-- ================================================================== -->
	<!-- globally defined elements (direct from gml or xsd namespace types) -->
	<xsd:element name="productID" type="xsd:string">
		<xsd:annotation>
			<xsd:documentation>Satellite product ID - unique identification of a product</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="requestID" type="xsd:string">
		<xsd:annotation>
			<xsd:documentation>If a requestID is given here, it shall be set as the value of the 'requestID' element of the featureCollection returned as the response to this request</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- ================================================================== -->
	<!--  Satellite product source element -->
	<xsd:element name="source" type="sat:SourceType">
		<xsd:annotation>
			<xsd:documentation>Satellite product source information</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="SourceType">
		<xsd:sequence>
			<xsd:element ref="sat:productID" minOccurs="0"/>
			<xsd:element name="satellite" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The satellite name (or platform name), e.g. ENV1</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="sensor" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The satellite sensor name, e.g. ASAR</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="orbit" type="xsd:integer" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The unique orbit number (or overpath number)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="beamMode" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The sensor mode, e.g. Alternating Polarization Mode</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="direction" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The satellite direction, e.g. ASCENDING</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="resolution" type="xsd:decimal" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The product resolution</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="station" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The receiving ground station name</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="startTime" type="xsd:dateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Start time of product scene</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="stopTime" type="xsd:dateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Stop time of product scene</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="cornerPoint" type="gml:PointType" minOccurs="0" maxOccurs="4">
				<xsd:annotation>
					<xsd:documentation>Corner points of the product (usually two or four geodedic points)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="accOrbit" type="xsd:integer" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Acc Orbit number (or Acc Overpath number - to be conform with oceanidis/JRC)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="owner" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The product owner</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="distributer" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The product distributer</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="accuracyDocument" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Reference to an accuracy documentation</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="detectionTime" type="xsd:dateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The time of feature detection performed</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- =================================================== -->
	<!-- =================================================== -->
	<!-- The Request element for a Satellite Feature Service                           -->
	<!-- =================================================== -->
	<!-- =================================================== -->
	<xsd:element name="envelope" type="sat:EnvelopeType">
		<xsd:annotation>
			<xsd:documentation>Spatial limits in area and time</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="EnvelopeType">
		<xsd:annotation>
			<xsd:documentation>Extends the Bounding Box type of gml, giving the geometric boundaries for the requested satellite Features.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="gml:EnvelopeType">
				<xsd:sequence>
					<xsd:element name="from" type="xsd:dateTime">
						<xsd:annotation>
							<xsd:documentation>(mandatory) The starting time period endpoint</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="to" type="xsd:dateTime" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>(optional) The ending time period endpoint, if not present the time period should be interpreted as ending "now", i.e. the current timepoint as the request is processed</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="getFeature" type="sat:GetFeatureType">
		<xsd:annotation>
			<xsd:documentation>This is the concrete request element used to query a service for satellite detected features</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- the GetFeature request element type -->
	<xsd:complexType name="GetFeatureType">
		<xsd:annotation>
			<xsd:documentation>Either based on a spatial envelope, or based on (one or more) spesific source productID.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:choice>
				<xsd:element ref="sat:productID">
					<xsd:annotation>
						<xsd:documentation>If given, this is regarded as a criteria for the query, such that only a feature originating from these productIDs are included in the response</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element ref="sat:envelope"/>
			</xsd:choice>
			<xsd:element ref="sat:requestID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>If a requestID is given here, it shall be set as the value of the 'requestID' element of the featureCollection returned as the response to this request</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
