<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:osgb="http://www.ordnancesurvey.co.uk/xml/namespaces/osgb" targetNamespace="http://www.ordnancesurvey.co.uk/xml/namespaces/osgb" elementFormDefault="qualified" version="1.2">
	<annotation>
		<appinfo>OSIMProductMetadata.xsd 1.2 2006/09</appinfo>
		<documentation xml:lang="en">Ordnance Survey, (c) Crown Copyright. All Rights Reserved November 2002.</documentation>
		<documentation xml:lang="en">This schema defines metadata files for OS MasterMap Imagery Layer product orthorectified imagery.</documentation>
	</annotation>
	<!--  import the common schemas-->
	<include schemaLocation="OSGeometryTopology.xsd"/>
	<include schemaLocation="OSMeasures.xsd"/>
	<!-- EDIT : by Petr Junek petr.junek@ordnancesurvey.co.uk ADDED schemaLocation attributes to enable validation -->
	<import namespace="http://www.opengis.net/gml" schemaLocation="feature.xsd"/>
	<!--  define the contents of orthorectified image metadata files-->
	<element name="OSIMProductMetadata">
		<complexType>
			<sequence>
				<element name="copyright" type="string"/>
				<element name="kmReference">
					<simpleType>
						<restriction base="string">
							<maxLength value="6"/>
						</restriction>
					</simpleType>
				</element>
				<element name="version" type="unsignedShort"/>
				<element name="dateFlown" type="date" maxOccurs="2"/>
				<element name="kmRectangle" type="osgb:RectanglePropertyType"/>
				<element name="lensFocalLength" type="osgb:MillimetresMeasureType"/>
				<element name="nominalFlyingHeight" type="osgb:MetresMeasureType"/>
				<element name="nominalImageScale" type="string"/>
				<element name="resolution" type="osgb:MetresMeasureType"/>
				<element name="fileSize" type="osgb:MegaBytesMeasureType"/>
				<element name="control">
					<simpleType>
						<restriction base="string">
							<enumeration value="GPS and OSTN97"/>
							<enumeration value="GPS and OSTN02"/>
							<enumeration value="NG from traditional control"/>
							<enumeration value="Land-Line"/>
						</restriction>
					</simpleType>
				</element>
				<element name="createdBy" type="string" maxOccurs="4"/>
				<element name="correctionType">
					<simpleType>
						<restriction base="string">
							<enumeration value="Orthorectified"/>
						</restriction>
					</simpleType>
				</element>
			</sequence>
		</complexType>
	</element>
</schema>
