source: CSML3/Schematron/TrajectoryObservation.sch @ 4460

Subversion URL: http://proj.badc.rl.ac.uk/svn/csml/CSML3/Schematron/TrajectoryObservation.sch@4460
Revision 4460, 1.8 KB checked in by domlowe, 7 years ago (diff)

changing trajectory to referenceable grid

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"
3    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4    <!-- Checks that the TrajectoryObservation constraints are met.
5    -->
6    <sch:title>TrajectoryObservation Validation</sch:title>
7    <sch:p>Validates instances of csml:TrajectoryObservation</sch:p>
8    <sch:ns prefix="om" uri="http://www.opengis.net/om/2.0"/>
9    <sch:ns prefix="sams" uri="http://www.opengis.net/samplingSpatial/2.0"/>
10    <sch:pattern id="result-type1"> <!-- checks phenomenonTime is a gml:TimePeriod -->
11        <sch:rule context="//*[om:phenomenonTime]">
12            <sch:assert test="descendant::*[name()='gml:TimePeriod']">The type of the om:phenomenonTime must be a gml:TimePeriod</sch:assert>           
13        </sch:rule>
14    </sch:pattern>
15    <sch:pattern id="result-type2"> <!-- checks feature of interest is a sams:SF_SamplingFeature -->
16        <sch:rule context="//*[om:featureOfInterest]">
17            <sch:assert test="descendant::*[name()='sams:SF_SpatialSamplingFeature']">The feature of interest must be sams:SF_SamplingFeature</sch:assert>
18        </sch:rule>
19    </sch:pattern>
20    <sch:pattern id="result-type3"> <!-- checks shape of feature of interest is a gml:Curve -->
21        <sch:rule context="//*[sams:shape]">
22            <sch:assert test="descendant::*[name()='gml:LineString']">The shape of the feature of interest (sampling feature) must be a gml:Curve</sch:assert>
23        </sch:rule>
24    </sch:pattern>
25    <sch:pattern id="result-type4"> <!-- checks result type is gmlcov:MultiPointCoverage -->
26        <sch:rule context="//*[om:result]">
27            <sch:assert test="descendant::*[name()='gmlcov:ReferenencableGridCoverage']">The result must be a gmlcov:ReferencableGridCoverage</sch:assert>
28        </sch:rule>
29    </sch:pattern>
30</sch:schema>
Note: See TracBrowser for help on using the repository browser.