OASIS Emergency Management TC

Needed elements For HAVE Point location

  • 1.  Needed elements For HAVE Point location

    Posted 03-20-2007 20:06
    
    
    
    
    
    try what is below:
     
    LocationPointType is the same as the resource LocationType in the resource types schema except for replacement of the "geo-oasis:WhereType" with a "geo-oasis:PointPropertyType"
     
    The other two types need to be there for support and are exactly the same as what is in resource. You will also need to add the xsd imports from the Resource Types schema to the HAVE schema.
     
    It was actually a lot simpler than I thought  
     
     
           <xsd:complexType name="LocationPointType">
            <xsd:sequence>
                <!-- One (or more) of the LocationDescription, Address and TargetArea elements is required -->
                <xsd:element name="LocationDescription" type="LocationDescriptionType" minOccurs="0"
                    maxOccurs="1"/>
                <xsd:element name="Address" type="xal:AddressType" minOccurs="0" maxOccurs="1"/>
                <xsd:element name="TargetArea" type="geo-oasis:PointPropertyType" minOccurs="0" maxOccurs="1"/>
            </xsd:sequence>
        </xsd:complexType>
       
       
        <xsd:simpleType name="LocationDescriptionType">
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
        <xsd:complexType name="ValueListType">
            <xsd:sequence>
                <xsd:element name="ValueListUrn" type="ValueListUrnType"/>
                <xsd:element name="Value" type="ValueType" maxOccurs="unbounded"/>
            </xsd:sequence>
        </xsd:complexType>
        <xsd:simpleType name="ValueListUrnType">
            <xsd:restriction base="xsd:anyURI"/>
        </xsd:simpleType>
        <xsd:simpleType name="ValueType">
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
     
    Gary A. Ham
    Senior Research Scientist
    Battelle Memorial Institute
    540-288-5611 (office)
    703-869-6241 (cell)
    "If nobody uses it, it ain't a standard."