<div dir="ltr"><div class="gmail_quote">Hi, </div><div class="gmail_quote"><br><div dir="ltr"><div>I tried to set up MapServer SOS but I faced a problem: the SOS doesn't return anything. You may see the map file I have created below: </div>
<div><br></div><div><br></div><div> MAP </div><div> NAME "SOS_DEMO" </div>
<div> STATUS ON </div><div> SIZE 400 300 </div><div> EXTENT -180 -90 180 90 </div><div> UNITS METERS </div><div> SHAPEPATH "C:\ms4w\apps\tutorial\data" </div><div> IMAGECOLOR 255 255 255 </div>
<div> </div><div> WEB </div><div> IMAGEPATH "C:\ms4w\apps\tutorial\templates" </div><div> IMAGEURL "C:\ms4w\apps\tutorial\images" </div><div> METADATA </div><div> "sos_onlineresource" "<a href="http://127.0.0.1:8282/cgi-bin/mapserv.exe?map=c:/ms4w/mysos.map" target="_blank">http://127.0.0.1:8282/cgi-bin/mapserv.exe?map=c:/ms4w/mysos.map</a>?" </div>
<div> "sos_title" "My SOS Demo Server" </div><div> "sos_srs" "EPSG:4326" </div><div> "sos_enable_request" "*" </div>
<div> END </div><div> END </div><div><br></div><div> PROJECTION </div><div> "init=epsg:4326" </div><div> END </div><div><br></div><div> LAYER </div><div> NAME "sos_point" </div>
<div> METADATA </div><div> "sos_procedure" "ifgi-sensor-1" </div><div> "sos_offering_id" "WQ1289" </div><div> "sos_observedproperty_id" "Water Quality" </div>
<div> "sos_describesensor_url" "<a href="http://127.0.0.1:8181/DescribeSensor.xml" target="_blank">http://127.0.0.1:8181/DescribeSensor.xml</a>" </div><div> END </div><div> </div>
<div> TYPE POINT </div>
<div> STATUS ON </div><div> DATA 'sospoint' </div><div> PROJECTION </div><div> "init=epsg:4326" </div><div> END </div><div> CLASS </div><div> NAME 'sospoint' </div>
<div> STYLE </div><div> COLOR 255 128 128 </div><div> END </div><div> END </div><div> END </div><div> END </div><div><br></div><div><br></div><div>As you see, I tried to retrieve sensor data from a shapefile. The message returned by the SOS is: </div>
<div><br></div><div><div style="font-family:monospace;font-size:13px"><span><om:ObservationCollection<span> <span>xmlns:gml</span>="<span><a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a></span>"</span><span> <span>xmlns:ows</span>="<span><a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a></span>"</span><span> <span>xmlns:swe</span>="<span><a href="http://www.opengis.net/swe/1.0.1" target="_blank">http://www.opengis.net/swe/1.0.1</a></span>"</span><span> <span>xmlns:xlink</span>="<span><a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a></span>"</span><span><span>xmlns:xsi</span>="<span><a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a></span>"</span><span> <span>xmlns:sos</span>="<span><a href="http://www.opengis.net/sos/1.0" target="_blank">http://www.opengis.net/sos/1.0</a></span>"</span><span> <span>xmlns:ms</span>="<span><a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a></span>"</span><span> <span>xmlns:om</span>="<span><a href="http://www.opengis.net/om/1.0" target="_blank">http://www.opengis.net/om/1.0</a></span>"</span><span> <span>gml:id</span>="<span>WQ1289</span>"</span><span><span>xsi:schemaLocation</span>="<span><a href="http://www.opengis.net/om/1.0" target="_blank">http://www.opengis.net/om/1.0</a> <a href="http://schemas.opengis.net/om/1.0.0/om.xsd" target="_blank">http://schemas.opengis.net/om/1.0.0/om.xsd</a> <a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a> <a href="http://127.0.0.1:8282/cgi-bin/mapserv.exe?map=c:/ms4w/mysos.map?service=WFS&version=1.1.0&request=DescribeFeatureType&typename=urban" target="_blank">http://127.0.0.1:8282/cgi-bin/mapserv.exe?map=c:/ms4w/mysos.map?service=WFS&version=1.1.0&request=DescribeFeatureType&typename=urban</a></span>"</span>></span></div>
<div style="margin-left:1em;font-family:monospace;font-size:13px"><span></span><div><div><div><span></span><span><om:member></span></div>
<div style="margin-left:1em"><span></span><div><div><div><span></span><span><om:Observation></span></div>
<div style="margin-left:1em"><span></span><div><span><om:procedure<span> <span>xlink:href</span>="<span>urn:ogc:def:procedure:ifgi-sensor-1</span>"</span>/></span></div>
<span></span><div><div><div><span></span><span><om:observedProperty></span></div>
<div style="margin-left:1em"><span></span><div><div><div><span></span><span><swe:CompositePhenomenon<span> <span>gml:id</span>="<span>Water Quality</span>"</span><span> <span>dimension</span>="<span>3</span>"</span>></span></div>
<div style="margin-left:1em"><span></span><div><span><swe:component<span> <span>xlink:href</span>="<span>urn:ogc:def:property:OGC-SWE:1:Id</span>"</span>/></span></div>
<span></span><div><span><swe:component<span> <span>xlink:href</span>="<span>urn:ogc:def:property:OGC-SWE:1:sensor_nam</span>"</span>/></span></div>
<span></span><div><span><swe:component<span> <span>xlink:href</span>="<span>urn:ogc:def:property:OGC-SWE:1:sensor_val</span>"</span>/></span></div>
<span></span></div><div><span></swe:CompositePhenomenon></span></div></div></div><span></span></div><div><span></om:observedProperty></span></div>
</div></div><span></span><div><div><div><span></span><span><om:resultDefinition></span></div>
<div style="margin-left:1em"><span></span><div><div><div><span></span><span><swe:DataBlockDefinition></span></div>
<div style="margin-left:1em"><span></span><div><div><div><span></span><span><swe:components></span></div>
<div style="margin-left:1em"><span></span><div><span><swe:DataRecord/></span></div><span></span></div><div><span></swe:components></span></div>
</div></div><span></span><div><div><div><span></span><span><swe:encoding></span></div>
<div style="margin-left:1em"><span></span><div><span><swe:TextBlock<span> <span>tokenSeparator</span>="<span>,</span>"</span><span> <span>blockSeparator</span>="<span> </span>"</span><span> <span>decimalSeparator</span>="<span>.</span>"</span>/></span></div>
<span></span></div><div><span></swe:encoding></span></div></div></div><span></span></div><div><span></swe:DataBlockDefinition></span></div>
</div></div><span></span></div><div><span></om:resultDefinition></span></div></div></div><span></span><div><span><om:result></span><span></span><span></om:result></span></div>
<span></span></div><div><span></om:Observation></span></div></div></div><span></span></div><div><span></om:member></span></div>
</div></div><span></span></div><div style="font-family:monospace;font-size:13px"><span></om:ObservationCollection></span></div></div><div><br></div><div><br></div><div>
Although I put 6 observations into the shapefile but the SOS doesn't return any. Would you please let me know what I should do to resolve the problem?! </div><div><br></div>Regards,<br>Ebrahim<br></div></div></div>