<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://lpis.jrc.ec.europa.eu/registry/6.3.0" xmlns:cap="http://lpis.jrc.ec.europa.eu/registry/6.3.0" xmlns="http://lpis.jrc.ec.europa.eu/registry/6.3.0" elementFormDefault="qualified">
	<xs:include schemaLocation="LpisCommonTypes.xsd"/>
	
	<xs:simpleType name="platformType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="AERIAL"/>
			<xs:enumeration value="GEOEYE1"/>
			<xs:enumeration value="WORLDVIEW2"/>
			<xs:enumeration value="WORLDVIEW3"/>
			<xs:enumeration value="WORLDVIEW4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="imageTypeETS">
		<xs:restriction base="xs:string">
			<xs:enumeration value="PSH-FCC"/>
			<xs:enumeration value="PSH-RGB"/>
			<xs:enumeration value="PSH-FCC-RGB"/>
			<xs:enumeration value="PAN-MUL-FCC"/>
			<xs:enumeration value="PAN-MUL-RGB"/>
			<xs:enumeration value="PAN-MUL-FCC-RGB"/>
			<xs:enumeration value="AERIAL"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="imageInfoType">
		<xs:sequence>
			<xs:element name="zoneID" type="xs:string"/>
			<xs:element name="imageAcquisitionDate" type="xs:date"/>
			<xs:element name="platform" type="platformType"/>
			<xs:element name="pixelSizeM" type="xs:float"/>
			<xs:element name="imageTypeETS" type="imageTypeETS"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="images" type="cap:imageSetType"/>
	<xs:complexType name="imageSetType">
		<xs:sequence>
			<xs:element name="image" type="cap:imageInfoType" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:simpleType name="stringNotNull">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
		</xs:restriction> 
	</xs:simpleType>	
	<xs:complexType name="personType">
		<xs:sequence>
			<xs:element name="firstname" type="cap:stringNotNull"/>
			<xs:element name="lastname" type="cap:stringNotNull"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="emailAddressType">
		<xs:restriction base="xs:string">
			<xs:pattern value="[^@]+@[^\.]+\..+"/>
		</xs:restriction> 
	</xs:simpleType>
	<xs:complexType name="contactInfoType">
		<xs:sequence>
			<xs:element name="orthoReturnContractor" type="cap:stringNotNull"/>
			<xs:element name="orthoReturnContactPoint" type="cap:personType"/>
			<xs:element name="orthoReturnEmailAddress" type="cap:emailAddressType"/>
		</xs:sequence>
		<xs:attribute name="id" type="stringNotNull"/>
	</xs:complexType>
	<xs:element name="contacts" type="cap:orthoReturnType"/>
	<xs:complexType name="orthoReturnType">
		<xs:sequence>
			<xs:element name="contact" type="cap:contactInfoType" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:element name="orthoimagerySet" type="cap:orthophotoSetType"/>
	<xs:complexType name="orthophotoSetType">
		<xs:sequence>
			<xs:element name="contacts" type="cap:orthoReturnType"/>
			<xs:element name="images" type="cap:imageSetType"/>
		</xs:sequence>
		<xs:attributeGroup ref="cap:LpisAnnualReportIdentificationAttributeGroup"/>
	</xs:complexType>
</xs:schema>
