oostethys_sos.cgi, small validation issue with sos:eventTime

1 view
Skip to first unread message

Emilio Mayorga

unread,
Apr 30, 2009, 12:24:08 PM4/30/09
to xen...@googlegroups.com, Eric Bridger, Rick Blair
Jeremy & Eric,

Rick Blair validated the three SOS responses from my adaptation of
oostethys_sos.cgi (I haven't edited the XML templates or any code that
creates the responses). He only found this small issue (below).

-Emilio

(From Rick):
Found one slight problem.  The eventTime tag does not validate.
sos:eventTime should be sos:time

The following needs to be changed from:

 <sos:eventTime>
      <gml:TimePeriod gml:id="uw.hccm.cruises.ship_valid_times">
        <gml:beginPosition
indeterminatePosition="unknown">2008-10-01T00:00:00Z</gml:beginPosition>
         <gml:endPosition indeterminatePosition="now"/>
         <gml:timeInterval unit="hour">.5</gml:timeInterval>
    </gml:TimePeriod>
 </sos:eventTime>


To
 <sos:time>
      <gml:TimePeriod gml:id="uw.hccm.cruises.ship_valid_times">
        <gml:beginPosition
indeterminatePosition="unknown">2008-10-01T00:00:00Z</gml:beginPosition>
         <gml:endPosition indeterminatePosition="now"/>
         <gml:timeInterval unit="hour">.5</gml:timeInterval>
    </gml:TimePeriod>
 </sos:time>

Eric Bridger

unread,
Apr 30, 2009, 2:39:19 PM4/30/09
to xenia
Thanks Emilio (and Rick).
Someone else pointed this out to me recently or I noticed it myself.
I have made small changes to two files:
sosGetCapabilities.xml --> changed sos:eventTime element to sos:time.
Also
oostethys_sos.cgi script --> changed

$node = ($offer->findnodes("sos:eventTime/gml:TimePeriod"))[0];
to
$node = ($offer->findnodes("sos:time/gml:TimePeriod"))[0];

I checked the changes into Google code at:
http://code.google.com/p/oostethys/source/browse/#svn/trunk/component/server/perl

Eric
Reply all
Reply to author
Forward
0 new messages