<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19170"></HEAD>
<BODY>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>Hi 
List,</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>I am new to the list 
and have been trying to setup MapServer's SOS Server to serve some observation 
data.&nbsp; I have created a map file and managed to have GetCapabilities 
working.&nbsp; But when trying out the GetObservation, I am confused...&nbsp; 
not much helpful documentation around and have found this discussion from the 
old SOS User forum : <A 
href="http://osgeo-org.1803224.n2.nabble.com/SOS-disconnect-td1992064.html">http://osgeo-org.1803224.n2.nabble.com/SOS-disconnect-td1992064.html</A>.&nbsp; 
However, still confused on how to map a database column to SOS output 
!?!?</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>Metadata for the 
layer in my map file :</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial>&nbsp;METADATA<BR>&nbsp;"sos_value_alias"&nbsp;&nbsp;"value_test"&nbsp; 
## value is the name of the db clumn<BR>&nbsp;"sos_value_componenturl"&nbsp;"<A 
href="http://test.org#value_test">http://test.org#value_test</A>"<BR>&nbsp;"sos_procedure"&nbsp;&nbsp;&nbsp;"unknown" 
<BR>&nbsp;"sos_offering_id"&nbsp;&nbsp;"waterstorage"<BR>&nbsp;"sos_offering_description"&nbsp;"value_test"<BR>&nbsp;"sos_observedproperty_id"&nbsp;"9" 
<BR>&nbsp;"sos_describesensor_url"&nbsp;"<A 
href="http://localhost/TEST123.xml">http://localhost/TEST123.xml</A>" 
<BR>&nbsp;"sos_srs"&nbsp;&nbsp;&nbsp;"init=epsg:4283" 
<BR>&nbsp;"sos_offering_timeextent"&nbsp;"1900/2010" </FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012></SPAN><SPAN 
class=376551808-17012012></SPAN><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>The database 
connection is successful and the GetCapabilities return the following sos 
information :</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>- 
&lt;sos:Contents&gt;<BR>- &lt;sos:ObservationOfferingList&gt;<BR>- 
&lt;sos:ObservationOffering gml:id="waterstorage"&gt;<BR>&nbsp; 
&lt;gml:description&gt;value_test&lt;/gml:description&gt; <BR>- &lt;!-- WARNING: 
Optional metadata "sos_offering_name" missing for gml:name<BR>&nbsp; --&gt; 
<BR>&nbsp; &lt;gml:srsName&gt;EPSG:4326&lt;/gml:srsName&gt; <BR>- &lt;!-- 
WARNING: Optional metadata "sos_offering_intendedapplication" missing for 
sos:intendedApplication<BR>&nbsp; --&gt; <BR>- &lt;sos:time&gt;<BR>- 
&lt;gml:TimePeriod&gt;<BR>&nbsp; 
&lt;gml:beginPosition&gt;1900&lt;/gml:beginPosition&gt; <BR>&nbsp; 
&lt;gml:endPosition&gt;2010&lt;/gml:endPosition&gt; <BR>&nbsp; 
&lt;/gml:TimePeriod&gt;<BR>&nbsp; &lt;/sos:time&gt;<BR>&nbsp; &lt;sos:procedure 
xlink:href="urn:ogc:def:procedure:unknown" /&gt; <BR>- 
&lt;sos:observedProperty&gt;<BR>- &lt;swe:CompositePhenomenon gml:id="9" 
dimension="7"&gt;<BR>&nbsp; &lt;swe:component 
xlink:href="urn:ogc:def:property:OGC-SWE:1:feature" /&gt; <BR>&nbsp; 
&lt;swe:component xlink:href="urn:ogc:def:property:OGC-SWE:1:identifier" /&gt; 
<BR>&nbsp; &lt;swe:component xlink:href="urn:ogc:def:property:OGC-SWE:1:ftype" 
/&gt; <BR>&nbsp; &lt;swe:component 
xlink:href="urn:ogc:def:property:OGC-SWE:1:value_test" /&gt; <BR>&nbsp; 
&lt;swe:component xlink:href="urn:ogc:def:property:OGC-SWE:1:type" /&gt; 
<BR>&nbsp; &lt;swe:component 
xlink:href="urn:ogc:def:property:OGC-SWE:1:description" /&gt; <BR>&nbsp; 
&lt;swe:component xlink:href="urn:ogc:def:property:OGC-SWE:1:yearofcompletion" 
/&gt; <BR>&nbsp; &lt;/swe:CompositePhenomenon&gt;<BR>&nbsp; 
&lt;/sos:observedProperty&gt;<BR>&nbsp; &lt;sos:featureOfInterest 
xlink:href="urn:ogc:def:feature:OGC-SWE:3:transient" /&gt; <BR>&nbsp; 
&lt;sos:responseFormat&gt;text/xml; 
subtype="om/1.0.0"&lt;/sos:responseFormat&gt; <BR>&nbsp; 
&lt;sos:resultModel&gt;om:Observation&lt;/sos:resultModel&gt; <BR>&nbsp; 
&lt;sos:resultModel&gt;om:Measurement&lt;/sos:resultModel&gt; <BR>&nbsp; 
&lt;sos:responseMode&gt;inline&lt;/sos:responseMode&gt; <BR>&nbsp; 
&lt;/sos:ObservationOffering&gt;<BR>&nbsp; 
&lt;/sos:ObservationOfferingList&gt;<BR>&nbsp; 
&lt;/sos:Contents&gt;<BR></FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>GetObservation (<A 
href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/sos/sos_test.map&amp;Request=GetObservation&amp;service=SOS&amp;OFFERING=waterstorage&amp;observedproperty=9&amp;version=1.0.0&amp;responseFormat=text/xml">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/sos/sos_test.map&amp;Request=GetObservation&amp;service=SOS&amp;OFFERING=waterstorage&amp;observedproperty=9&amp;version=1.0.0&amp;responseFormat=text/xml</A>; 
subtype="om/1.0.0") return the following :</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>&nbsp; &lt;?xml 
version="1.0" encoding="ISO-8859-1" ?&gt; <BR>- &lt;om:ObservationCollection 
xmlns:gml="<A href="http://www.opengis.net/gml">http://www.opengis.net/gml</A>" 
xmlns:ows="<A 
href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</A>" 
xmlns:swe="<A 
href="http://www.opengis.net/swe/1.0.1">http://www.opengis.net/swe/1.0.1</A>" 
xmlns:xlink="<A 
href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</A>" 
xmlns:xsi="<A 
href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>" 
xmlns:sos="<A 
href="http://www.opengis.net/sos/1.0">http://www.opengis.net/sos/1.0</A>" 
xmlns:ms="<A 
href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</A>" 
xmlns:om="<A 
href="http://www.opengis.net/om/1.0">http://www.opengis.net/om/1.0</A>" 
gml:id="waterstorage" xsi:schemaLocation="<A 
href="http://www.opengis.net/om/1.0">http://www.opengis.net/om/1.0</A> <A 
href="http://schemas.opengis.net/om/1.0.0/om.xsd">http://schemas.opengis.net/om/1.0.0/om.xsd</A> 
<A 
href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</A> 
<A 
href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/apps/sos/sos_test.map&amp;service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typename=test_sos_layer">http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/apps/sos/sos_test.map&amp;service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typename=test_sos_layer</A>"&gt;<BR>&nbsp; 
&lt;gml:description xmlns:gml="<A 
href='http://www.opengis.net/gml">value_test</gml:description'>http://www.opengis.net/gml"&gt;value_test&lt;/gml:description</A>&gt; 
<BR>&nbsp; &lt;/om:ObservationCollection&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>My quesions are 
:</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>1) How do I map a db 
clumn to a sos output ??&nbsp;&nbsp; Do i have to create "sos_dbColumn_alias" 
for each column ?</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>2) What's the 
purpose of "sos_dbColumn_componenturl" ?&nbsp; Do I need to create this for each 
dbColumn ?</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>3) I have map 
the&nbsp;&nbsp;"sos_offering_description"&nbsp;"value_test", why does the 
getCapabilities and getObservation return "value_test" as a constant rather then 
retrieving data from the database ?</FONT></SPAN></DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=376551808-17012012><FONT size=2 face=Arial>Appreciave if 
someone could point out what is the problem of the map file or point me to some 
useful documentation or tutorial on set up SOS in MapServer.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV></FONT></SPAN>
<DIV><SPAN class=376551808-17012012></SPAN><FONT size=2 face=Arial><SPAN 
class=376551808-17012012>Thanks &amp; Regards,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV class=Section1>
<P style="FONT-FAMILY: arial; FONT-SIZE: 9pt; sans-serif: " align=left><SPAN 
style="COLOR: #0099cc; FONT-SIZE: 10pt; FONT-WEIGHT: bold"></SPAN><STRONG><FONT 
color=#0099cc size=2>Florence Tan</FONT></STRONG><BR>Research Projects Officer 
<SPAN style="COLOR: #bed600; FONT-WEIGHT: bold">|</SPAN> ASRDC<BR>CSIRO Earth 
Science and Resource Engineering</P>
<P style="FONT-FAMILY: arial; FONT-SIZE: 9pt; sans-serif: ">Phone: 
+61&nbsp;8&nbsp;6436&nbsp;8802<SPAN 
style="COLOR: #bed600; FONT-WEIGHT: bold">&nbsp;| </SPAN>Fax: 
+61&nbsp;8&nbsp;6436 8559 <BR><SPAN style="COLOR: #0099cc"><A 
href="mailto:florence.tan@csiro.au">florence.tan@csiro.au</A></SPAN> <SPAN 
style="COLOR: #bed600; FONT-WEIGHT: bold">|</SPAN> <SPAN 
style="COLOR: #0099cc">www.csiro.au</SPAN> <BR>Address: <SPAN 
style="COLOR: #999999">Australian Resources Research Centre, 26 Dick Perry 
Avenue, Kensington WA 6151</SPAN><BR><BR><B>PLEASE NOTE</B><BR>The information 
contained in this email may be confidential or privileged. Any unauthorised use 
or disclosure is prohibited. If you have received this email in error, please 
delete it immediately and notify&nbsp;the sender by return email. Thank you. To 
the extent permitted by law, CSIRO does not represent, warrant and/or guarantee 
that the integrity of this communication has been maintained or that the 
communication is free of errors, virus, interception or interference. </P>
<P 
style="FONT-FAMILY: arial; COLOR: #666666; FONT-SIZE: 9pt; FONT-WEIGHT: bold; sans-serif: ">Please 
consider the environment before printing this email.</P></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV></BODY></HTML>