-<xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://www.witsml.org/schemas/1series" version="1.4.1.1">
<!--
                                                     
 -->
<!--
 Energistics License Agreement
	This file is distributed under the Energistics License Agreement at
	http://www.energistics.org
	Use of this file constitutes agreement with the Energistics License Agreement.
	Copyright (c) 2012 Energistics. All rights reserved.
	Energistics, WITSML, PRODML and RESQML are trademarks or registered trademarks of Energistics.
	
 -->
<!--
                                                     
 -->
 <xsd:include schemaLocation="cs_extensionNameValue.xsd"/>
 <xsd:include schemaLocation="cs_refWellWellbore.xsd"/>
 <xsd:include schemaLocation="cs_refWellWellboreRig.xsd"/>
 <xsd:include schemaLocation="cs_location.xsd"/>
 <xsd:include schemaLocation="attgrp_uid.xsd"/>
<!--
                                                     
 -->
-<xsd:complexType name="cs_wellDatum">
-<xsd:annotation>
 <xsd:documentation>Defines the vertical datums associated with elevation, vertical depth and measured depth coordinates within the context of a well. </xsd:documentation>
 <xsd:appinfo>Modified-in-version=1.4.1, By-issue=W-CR-014, Change=Deleted-attribute:defaultMeasuredDepth</xsd:appinfo>
 <xsd:appinfo>Modified-in-version=1.4.1, By-issue=W-CR-014, Change=Deleted-attribute:defaultVerticalDepth</xsd:appinfo>
 <xsd:appinfo>Modified-in-version=1.4.1, By-issue=W-CR-014, Change=Deleted-attribute:defaultElevation</xsd:appinfo>
 <xsd:appinfo>Modified-in-version=1.4.0, By-issue=1.3-48, Change=Modified-description</xsd:appinfo>
 </xsd:annotation>
-<xsd:sequence>
-<xsd:element name="name" type="witsml:nameString" minOccurs="1" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>The human understandable contextual name of the reference datum.</xsd:documentation>
 <xsd:appinfo>Modified-in-version=1.4.1, By-issue=29, Change=Made-mandatory</xsd:appinfo>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="code" type="witsml:ElevCodeEnum" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>The code value that represents the type of reference datum. This may represent a point on a device (e.g., kelly bushing) or it may represent a vertical reference datum (e.g., mean sea level).</xsd:documentation>
 </xsd:annotation>
 </xsd:element>
-<xsd:choice>
-<xsd:annotation>
 <xsd:appinfo>Modified-in-version=1.4.0, By-issue=1.3-48, Change=Added</xsd:appinfo>
 </xsd:annotation>
-<xsd:element name="datumName" type="witsml:wellKnownNameStruct" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>The name of the vertical reference datum in a particular naming system. This should only be specified if the above 'code' represents some variation of sea level. An optional short name (code) can also be specified. Specifying a well known datum is highly desired if the above code is a variant of sea level because sea level varies over time and space. An example would be to specify a name of 'Caspian Sea' with a code of '5106' in the 'EPSG' naming system.</xsd:documentation>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="datumCRS" type="witsml:refNameString" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>A reference to the coordinateReferenceSystem object representing the vertical reference datum (i.e., this wellDatum). This should only be specified if the above 'code' represents some variation of sea level. </xsd:documentation>
 <xsd:appinfo>Modified-in-version=1.4.0, By-issue=1.3-48, Change=Added</xsd:appinfo>
 </xsd:annotation>
 </xsd:element>
 </xsd:choice>
-<xsd:element name="kind" type="witsml:kindString" minOccurs="0" maxOccurs="unbounded">
-<xsd:annotation>
 <xsd:documentation>Since various activities may use different points as measurement datums, it is useful to characterize the point based on its usage. A well reference datum may have more than one such characterization. For example, it may be the datum used by the driller and logger for measuring their depths. Example usage values would be 'permanent','driller', 'logger' 'WRP' (well reference point) and 'SRP' (site reference point).</xsd:documentation>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="wellbore" type="witsml:cs_refWellWellbore" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>A pointer to the wellbore that contains the reference datum. This should be specified if a measured depth is given.</xsd:documentation>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="rig" type="witsml:cs_refWellWellboreRig" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>A pointer to the rig that contains the device used as a reference datum. The rig may be associated with a wellbore in another well (e.g., pattern drilling using a rig on a track).</xsd:documentation>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="elevation" type="witsml:wellElevationCoord" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>The gravity based elevation coordinate of this reference datum as measured from another datum. Positive moving upward from the elevation datum. An elevation should be given unless this is a vertical reference datum (e.g., sea level). </xsd:documentation>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="measuredDepth" type="witsml:measuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>The measured depth coordinate of this reference datum as measured from another datum. The measured depth datum should either be the same as the elevation datum or it should be relatable to the elevation datum through other datums. Positive moving toward the bottomhole from the measured depth datum. This should be given when a local reference is "downhole", such as a kickoff point or ocean bottom template, and the borehole may not be vertical. If a Depth is given then an Elevation should also be given.</xsd:documentation>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="horizontalLocation" type="witsml:cs_location" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>The horizontal location of the point being used as a well datum. This may be used when the point is not directly above or below the well point location. For example, a well being drilled from a platform may have its location at the entrance into the sea floor, while the well datum may be located on the drilling rig. Or the well datum may be a kickoff point, that is not directly under the well surface point. </xsd:documentation>
 <xsd:appinfo>Modified-in-version=1.4.0, By-issue=1.3-48, Change=Added</xsd:appinfo>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="comment" type="witsml:commentString" minOccurs="0" maxOccurs="1">
-<xsd:annotation>
 <xsd:documentation>A contextual description of the well reference datum.</xsd:documentation>
 </xsd:annotation>
 </xsd:element>
-<xsd:element name="extensionNameValue" type="witsml:cs_extensionNameValue" minOccurs="0" maxOccurs="unbounded">
-<xsd:annotation>
 <xsd:documentation>Extensions to the schema based on a name-value construct.</xsd:documentation>
 <xsd:appinfo>Modified-in-version=1.4.0, By-issue=1.3.1-71, Change=Added</xsd:appinfo>
 </xsd:annotation>
 </xsd:element>
 </xsd:sequence>
-<xsd:attribute name="uid" type="witsml:uidString" use="required">
-<xsd:annotation>
 <xsd:documentation>The unique identifier of the node. All measured depth, vertical depth and elevation coordinates may point to this uid using attribute "datum". Alternatively, the commonData elements defaultMeasuredDatum, defaultVerticalDatum and defaultElevationDatum may point to this value. The best practice for the uid is to derive it from the name. For example, by changing spaces to underscores.</xsd:documentation>
 <xsd:appinfo>Modified-in-version=1.4.1, By-issue=29, Change=Made-mandatory</xsd:appinfo>
 <xsd:appinfo>Modified-in-version=1.4.1, By-issue=29, Change=Modified-description</xsd:appinfo>
 <xsd:appinfo>Modified-in-version=1.4.1, By-issue=W-CR-014, Change=Modified-description</xsd:appinfo>
 </xsd:annotation>
 </xsd:attribute>
 </xsd:complexType>
<!--
                                                     
 -->
 </xsd:schema>