<?xml version="1.0" encoding="UTF-8"?>
<!--
	Copyright © 2007 Kuratorium für Technik und Bauwesen in der Landwirtschaft e.V. (KTBL). All Rights Reserved. http://www.agroxml.de/Legal/
	
	This KTBL work (including software, documents, or other related items) is being provided by the copyright holders under the following license.
	By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions: Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make:
	
	1.	The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
	2.	Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist,
	a short notice of the following form (hypertext is preferred, text is permitted) should be used within
	the body of any redistributed or derivative code:
	"Copyright © [$date-of-software] Kuratorium für Technik und Bauwesen in der Landwirtschaft e.V. (KTBL).
	All Rights Reserved. http://www.agroxml.de/Legal/"
	3.	Notice of any changes or modifications to the KTBL files, including the date changes were made.
	(We recommend you provide URIs to the location from which the code is derived.)
	
	THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
	COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
	
	The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.agroxml.de/schema/agroxml1.3" xmlns:xlink="http://www.w3.org/1999/xlink" targetNamespace="http://www.agroxml.de/schema/agroxml1.3" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.3">
	<!-- ==================== import =================== -->
	<xsd:include schemaLocation="./CommonBasicComponents.xsd"/>
	<xsd:include schemaLocation="./Gml.xsd"/>
	<!-- =============================================== -->
	<xsd:complexType name="ClimateType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: KlimaType.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="Temperature" minOccurs="0"/>
			<xsd:element ref="WindSpeed" minOccurs="0"/>
			<xsd:element ref="Humidity" minOccurs="0"/>
			<xsd:element ref="Precipitation" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="Climate" type="ClimateType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: Klima.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- =============================================== -->
	<xsd:complexType name="WeatherStationType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: WetterstationType.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="WeatherStationCode" type="CodeType">
				<xsd:annotation>
					<xsd:documentation xml:lang="de">
						Hier kann ein Code für eine Wetterstation
						eingegeben werden. Alle Wetterstationen, die in
						ein größeres Beobachtungsnetz eingebunden sind,
						haben einen solchen Code, es gibt aber keine
						allumfassende Liste. Je nach Anwendungsfall wird
						die entsprechende Liste eingebunden.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Name">
				<xsd:annotation>
					<xsd:documentation xml:lang="de">
						Vorheriger deutscher Name: Name Name der
						Wetterstation
					</xsd:documentation>
					<xsd:documentation xml:lang="en">
						Previous german name: Beschreibung
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Site" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						geografische Position der Wetterstation
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Temperature" minOccurs="0"/>
			<xsd:element ref="WindSpeed" minOccurs="0"/>
			<xsd:element ref="Humidity" minOccurs="0"/>
			<xsd:element ref="Precipitation" minOccurs="0"/>
			<xsd:element ref="SolarRadiation" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="WeatherStation" type="WeatherStationType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: Wetterstation.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- =============================================== -->
	<xsd:complexType name="SpeedsType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: GeschwindigkeitType.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="SpeedAverage" minOccurs="0"/>
			<xsd:element ref="SpeedMin" minOccurs="0"/>
			<xsd:element ref="SpeedMax" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="Speed" type="SpeedsType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: Geschwindigkeit.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="WindSpeed" type="SpeedsType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: WindGeschwindigkeit.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!--     ===  candidates for basic types  ===     -->
	<xsd:element name="Humidity" type="PercentType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: Luftfeuchte. Gibt den
				Feuchtigkeitsgehalt der Luft an. Die Angabe erfolgt in
				Prozent und gibt den Anteil des Wasserdampfgehaltes im
				Verhältnis zum Wasserdampfgehalt bei Sättigung wider.
				Dieser Anteil ist temperaturabhängig. Bei niedrigen
				Temperaturen ist die Aufnahmefähigkeit der Luft für
				Wasserdampf geringer, man sagt, der Taupunkt liegt
				niedriger.
			</xsd:documentation>
			<xsd:documentation xml:lang="en">
				Previous german name: Luftfeuchte
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- =============================================== -->
	<xsd:element name="Precipitation" type="LengthType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: Niederschlag. Der langjährige
				durchschnittliche Niederschlag der Betriebsregion.
			</xsd:documentation>
			<xsd:documentation xml:lang="en">
				Previous german name: Niederschlag
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- =============================================== -->
	<xsd:element name="SolarRadiation" type="MeasureType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: Globalstrahlung. Die Summe
				der an einem Ort an der Erdoberfläche eintreffenden
				Sonnenstrahlung. Berücksichtigt werden hierbei sowohl
				Direktstrahlung als auch Diffusstrahlung. Wird gemessen
				mit Hilfe eines sogenannten Pyranometers.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- =============================================== -->
	<xsd:element name="SpeedAverage" type="SpeedType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: Durchschnittsgeschwindigkeit
				Die Geschwindigkeit die durchschittlich gefahren wird.
			</xsd:documentation>
			<xsd:documentation xml:lang="en">
				Previous german name: Durchschnittsgeschwindigkeit
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- =============================================== -->
	<xsd:element name="SpeedMax" type="SpeedType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: GeschwindigkeitMax Die
				maximale Geschwindigkeit die gefahren werden kann.
			</xsd:documentation>
			<xsd:documentation xml:lang="en">
				Previous german name: GeschwindigkeitMax
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- =============================================== -->
	<xsd:element name="SpeedMin" type="SpeedType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">
				Vorheriger deutscher Name: GeschwindigkeitMin Die
				minimale geschwindigkeit die man fahren kann.
			</xsd:documentation>
			<xsd:documentation xml:lang="en">
				Previous german name: GeschwindigkeitMin
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
</xsd:schema>
