<?xml version="1.0" encoding="utf-8"?>
<xs:schema 
targetNamespace="http://lpis.jrc.ec.europa.eu/registry/6.3.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cap="http://lpis.jrc.ec.europa.eu/registry/6.3.0" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:el-bas="http://inspire.ec.europa.eu/schemas/el-bas/4.0" elementFormDefault="qualified">
	<xs:annotation>
		<xs:documentation>
--Name--
SOME TEXT HERE.

-- Definition --
SOME TEXT HERE.

-- Description --
SOME TEXT HERE.</xs:documentation>
	</xs:annotation>
	<xs:import namespace="http://www.isotc211.org/2005/gmd" schemaLocation="http://schemas.opengis.net/iso/19139/20070417/gmd/gmd.xsd"/>
	<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/temporal.xsd"/>
	<xs:import namespace="http://inspire.ec.europa.eu/schemas/el-bas/4.0" schemaLocation="http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"/>
	<xs:include schemaLocation="LpisCommonTypes.xsd"/>

	<xs:simpleType name="sensorPlatformType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="aerial film"/>
			<xs:enumeration value="aerial CCD"/>
			<xs:enumeration value="satellite"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="demPlatformType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="stereorestitution"/>
			<xs:enumeration value="lidar"/>
			<xs:enumeration value="radar"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="ixitQualifierType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="A"/>
			<xs:enumeration value="B"/>
			<xs:enumeration value="C"/>
			<xs:enumeration value="D"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:element name="resourceTitle" type="gmd:CI_Citation_Type">
		<xs:annotation>
			<xs:documentation>
--resourceTitle--
The name by which the resource is known, togheter with the reference date for the cited resource (choose a date referring either to the publication, creation or revision of the dataset).</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="ixitQualifier" type="cap:ixitQualifierType">
		<xs:annotation>
			<xs:documentation>
--ixitQualifier--
The IXIT qualifier type (A, B, C or D).</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="temporalExtent" type="gmd:EX_TemporalExtent_Type">
		<xs:annotation>
			<xs:documentation>
--temporalExtent--
The temporal extent defines the time period covered by the content of the resource.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="resourceLocator" type="gmd:CI_OnlineResource_Type">
		<xs:annotation>
			<xs:documentation>
--resourceLocator--
The address of a linked resource which can be accessed using a URL (Uniform Resource Locator) or similar addressing scheme.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="identifier" type="gmd:MD_Identifier_PropertyType">
		<xs:annotation>
			<xs:documentation>
--identifier--
A value uniqely identifying a resource within a given namespace.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="lineage" type="gmd:LI_Lineage_Type">
		<xs:annotation>
			<xs:documentation>
--lineage--
Information about the events or source data used in the construction of the data resource.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="spatialResolution" type="gmd:MD_Resolution_Type">
		<xs:annotation>
			<xs:documentation>
--spatialResolution--
Denominator of the map scale OR ground sample distance.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="responsibleParty" type="gmd:CI_ResponsibleParty_Type">
		<xs:annotation>
			<xs:documentation>
--responsibleParty--
Identification of an organisation or individual associated with the resource (organisationName/role).</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="metadataPointOfContact" type="gmd:CI_ResponsibleParty_Type">
		<xs:annotation>
			<xs:documentation>
--metadataPointOfContact--
Identification of the organisation responsible for the creation and maintenance of the metadata (organisationName/email address/role).</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="sensorPlatform" type="cap:sensorPlatformType">
		<xs:annotation>
			<xs:documentation>
--sensorPlatform--
Image source origin.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="sensorDistance" type="gmd:MD_Resolution_Type">
		<xs:annotation>
			<xs:documentation>
--sensorDistance--
Image source spatial resolution.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="sensorOrganisationName" type="gmd:CI_ResponsibleParty_Type">
		<xs:annotation>
			<xs:documentation>
--sensorOrganisationName--
Image source responsible party.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="demOrganisationName" type="gmd:CI_ResponsibleParty_Type">
		<xs:annotation>
			<xs:documentation>
--demOrganisationName--
SOME TEXT HERE.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="phenomenonTime" type="cap:phenomenonTimeType">
		<xs:annotation>
			<xs:documentation>
--phenomenonTime--
Description of the observation/acquisition extent in time of the image source.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="phenomenonTimeType">
		<xs:sequence>
			<xs:element name="sensorBegin" type="gml:TimePositionType"/>
			<xs:element name="sensorEnd" type="gml:TimePositionType"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:element name="demPlatform" type="cap:demPlatformType">
		<xs:annotation>
			<xs:documentation>
--demPlatform--
DEM source origin.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="surfaceType" type="el-bas:SurfaceTypeValueType">
		<xs:annotation>
			<xs:documentation>
--surfaceType--
DEM surface type. Attribute indicating the type of elevation surface that the coverage describes in relation to the Earth's bare surface.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="demDistance" type="gmd:MD_Resolution_Type">
		<xs:annotation>
			<xs:documentation>
--demDistance--
DEM source spatial resolution.</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="VectorThematicMetadata" type="cap:VectorThematicMetadataType"/>
	<xs:complexType name="VectorThematicMetadataType">
		<xs:sequence>
			<xs:element ref="cap:resourceTitle" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:ixitQualifier" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:temporalExtent" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:resourceLocator" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="cap:identifier" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:lineage" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:spatialResolution" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:responsibleParty" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:metadataPointOfContact" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:element name="OrthoMetadata" type="cap:OrthoMetadataType"/>
	<xs:complexType name="OrthoMetadataType">
		<xs:sequence>
			<xs:element ref="cap:resourceTitle" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:resourceLocator" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="cap:identifier" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:lineage" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:spatialResolution" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:responsibleParty" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:metadataPointOfContact" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="cap:imageSource" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:elevationData" minOccurs="1" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:element name="imageSource" type="cap:imageSourceType"/>
	<xs:complexType name="imageSourceType">
		<xs:sequence>
			<xs:element ref="cap:sensorPlatform" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:sensorDistance" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:sensorOrganisationName" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="cap:phenomenonTime" minOccurs="1" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:element name="elevationData" type="cap:elevationDataType"/>
	<xs:complexType name="elevationDataType">
		<xs:sequence>
			<xs:element ref="cap:demPlatform" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:surfaceType" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:demDistance" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="cap:demOrganisationName" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>

	<xs:element name="MetadataSet" type="cap:MetadataSetType"/>
	<xs:complexType name="MetadataSetType">
		<xs:sequence>
			<xs:element name="VectorThematicMetadata" type="cap:VectorThematicMetadataType" minOccurs="1" maxOccurs="unbounded"/>
			<xs:element name="OrthoMetadata" type="cap:OrthoMetadataType" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attributeGroup ref="cap:MtsCycleReportIdentificationAttributeGroup"/>
	</xs:complexType>
</xs:schema>
