[This message should be better in the OpenLayers list I think, so I&#39;m adding it.]<br><br>That sample is based on another example in @bartvde&#39;s sandbox, in which he creates a standalone Layer subclass for SOS layers. For testing it you should checkout the whole sample including the lib/ folder. But take a look at <a href="http://trac.osgeo.org/openlayers/ticket/2842">http://trac.osgeo.org/openlayers/ticket/2842</a> and <a href="http://trac.osgeo.org/openlayers/changeset/10902">http://trac.osgeo.org/openlayers/changeset/10902</a>. If I&#39;m right that changeset is now applied to the trunk, so you can checkout it (svn checkout <a href="http://svn.openlayers.org/trunk/openlayers/">http://svn.openlayers.org/trunk/openlayers/</a>) and test your code again, now without a specific OpenLayers.Layer.SOS class.<br>
<br clear="all">Best regards, <br><br>Xurxo Méndez Pérez<br><br><a href="http://www.sonxurxo.com/" target="_blank">http://www.sonxurxo.com</a><br>
<br><br><div class="gmail_quote">2010/11/22 Alessandro Oggioni <span dir="ltr">&lt;<a href="mailto:a.oggioni@ise.cnr.it">a.oggioni@ise.cnr.it</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks Xurxo Mendez and sorry for the delay in my reply.<br>
I had not noticed the changes in the code that I have indicated.<br>
I tried to use it for hours without modifications, but gives me this error:<br>
   OpenLayers.Layer.SOS is not a constructor<br>
   in line 126 var = new sosLayer OpenLayers.Layer.SOS (&quot;Stations&quot;, url);<br>
I do not understand what is due, I make reference to OpenLayers 2.10.<br>
I get some advice on how to solve this problem?<br>
Thanks<br>
Your<br>
Alessandro Oggioni<br>
<br>
2010/11/16 Xurxo Mendez &lt;<a href="mailto:xmendez@udc.es">xmendez@udc.es</a>&gt;:<br>
<div><div></div><div class="h5">&gt; What link do you refer to? The SOS server is<br>
&gt; &#39;<a href="http://v-swe.uni-muenster.de:8080/WeatherSOS/sos" target="_blank">http://v-swe.uni-muenster.de:8080/WeatherSOS/sos</a>?&#39; in both examples. What<br>
&gt; the code in <a href="http://dev.openlayers.org/sandbox/sonxurxo/sos/examples/sos.html" target="_blank">http://dev.openlayers.org/sandbox/sonxurxo/sos/examples/sos.html</a><br>
&gt; does is to add some parsing capabilities that the other lacks, specially in<br>
&gt; the GetObservation request.<br>
&gt; In addition, the code that is currently in OpenLayers for SOS had some<br>
&gt; issues with the namespace URIs and the problem you are having may have to do<br>
&gt; with that. Also, when you specify the parameters for the GetObservation<br>
&gt; request, you notice that you can specify the &#39;resultModel&#39;, that in that<br>
&gt; example is &#39;om:Measurement&#39;. Maybe your service is returning<br>
&gt; &#39;om:Observation&#39; instances instead. Try changing it.<br>
&gt;<br>
&gt; If you have firebug installed you can sniff the requests and try them alone<br>
&gt; with the web client that 52North SOS server comes out-of-the-box with.<br>
&gt;<br>
&gt; And finally please notice that the code in<br>
&gt; <a href="http://dev.openlayers.org/sandbox/sonxurxo/sos/examples/sos.html" target="_blank">http://dev.openlayers.org/sandbox/sonxurxo/sos/examples/sos.html</a> is part of<br>
&gt; a sandbox, not even a patch in a ticket. There&#39;s a ticket in<br>
&gt; <a href="http://trac.osgeo.org/openlayers/ticket/2842" target="_blank">http://trac.osgeo.org/openlayers/ticket/2842</a> that has some of the changes<br>
&gt; and additions that you can find in my sandbox example. the ticket is being<br>
&gt; currently (I think) reviewed by Bart van den Eijnden, who is the one who has<br>
&gt; implemented current SOS support in OpenLayers.<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Xurxo Méndez Pérez<br>
&gt;<br>
&gt; <a href="http://www.sonxurxo.com" target="_blank">http://www.sonxurxo.com</a><br>
&gt;<br>
&gt;<br>
&gt; 2010/11/16 Alessandro Oggioni &lt;<a href="mailto:a.oggioni@ise.cnr.it">a.oggioni@ise.cnr.it</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi Xurxo,<br>
&gt;&gt; but the link<br>
&gt;&gt; <a href="http://dev.openlayers.org/sandbox/sonxurxo/sos/examples/sos.html" target="_blank">http://dev.openlayers.org/sandbox/sonxurxo/sos/examples/sos.html</a><br>
&gt;&gt; is not the same link of OpenLayers example<br>
&gt;&gt; (<a href="http://openlayers.org/dev/examples/" target="_blank">http://openlayers.org/dev/examples/</a>)<br>
&gt;&gt; Many thanks<br>
&gt;&gt; Alessandro<br>
&gt;&gt;<br>
&gt;&gt; 2010/11/15 Xurxo Mendez &lt;<a href="mailto:xmendez@udc.es">xmendez@udc.es</a>&gt;:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; maybe this can help you,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://dev.openlayers.org/sandbox/sonxurxo/sos/examples/sos.html" target="_blank">http://dev.openlayers.org/sandbox/sonxurxo/sos/examples/sos.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; There are some elements in some SOS requests that OpenLayers currently<br>
&gt;&gt; &gt; does<br>
&gt;&gt; &gt; not support. Even in that sandbox example not all the schema is<br>
&gt;&gt; &gt; supported,<br>
&gt;&gt; &gt; but at least some more.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; It&#39;s a modification of OpenLayers&#39; SOS support, treating it as a<br>
&gt;&gt; &gt; separate<br>
&gt;&gt; &gt; Layer instead of a Vector layer.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I hope that can help you<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Best regards,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Xurxo Méndez Pérez<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://www.sonxurxo.com" target="_blank">http://www.sonxurxo.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2010/11/15 Alessandro Oggioni &lt;<a href="mailto:a.oggioni@ise.cnr.it">a.oggioni@ise.cnr.it</a>&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Dear all users,<br>
&gt;&gt; &gt;&gt; I tried to use the example about 52North SOS in Openlayers 2.10.<br>
&gt;&gt; &gt;&gt; I have changed the url in<br>
&gt;&gt; &gt;&gt; ...<br>
&gt;&gt; &gt;&gt;  var sos = new OpenLayers.SOSClient({map: map, url:<br>
&gt;&gt; &gt;&gt; ...<br>
&gt;&gt; &gt;&gt; with url of my SOS service but return an error:<br>
&gt;&gt; &gt;&gt; output.measurements[0] is undefined.<br>
&gt;&gt; &gt;&gt; If I look in firebug console I have this problem in POST request<br>
&gt;&gt; &gt;&gt; (<a href="http://localhost/cgi-bin/proxy.cgi?url=http://.../sos?" target="_blank">http://localhost/cgi-bin/proxy.cgi?url=http://.../sos?</a>):<br>
&gt;&gt; &gt;&gt; ...<br>
&gt;&gt; &gt;&gt; &lt;ows:Exception exceptionCode=&quot;InvalidParameterValue&quot;<br>
&gt;&gt; &gt;&gt; locator=&quot;procedureID&quot;&gt;<br>
&gt;&gt; &gt;&gt;    &lt;ows:ExceptionText&gt;No phenomena for procedure &#39;Lake_Maggiore_L11&#39;<br>
&gt;&gt; &gt;&gt; were found!&lt;/ows:ExceptionText&gt;<br>
&gt;&gt; &gt;&gt; &lt;/ows:Exception&gt;<br>
&gt;&gt; &gt;&gt; ...<br>
&gt;&gt; &gt;&gt; I write in this list and I have sended the same message at the<br>
&gt;&gt; &gt;&gt; OpenLayers&#39;s users list because i don&#39;t know if a problem of<br>
&gt;&gt; &gt;&gt; OpenLayers or in Sensor Observation Service.<br>
&gt;&gt; &gt;&gt; If you have another example of OpenLayers with SOS, you can send them<br>
&gt;&gt; &gt;&gt; to<br>
&gt;&gt; &gt;&gt; me?<br>
&gt;&gt; &gt;&gt; If I have compound the GetCapabilities of my service and of example<br>
&gt;&gt; &gt;&gt; service (<a href="http://v-swe.uni-muenster.de:8080/WeatherSOS/sos?" target="_blank">http://v-swe.uni-muenster.de:8080/WeatherSOS/sos?</a>), the<br>
&gt;&gt; &gt;&gt; OperationsMetadata section is totally lacking of ows:Operation like to<br>
&gt;&gt; &gt;&gt; RegisterSensor, InsertObservation, GetFeatureOfInterestTime, GetResult<br>
&gt;&gt; &gt;&gt; and DescribeFeatureOfInterest, and of ows:Parameter like to service<br>
&gt;&gt; &gt;&gt; and version. In the &lt;ows:Operation name=&quot;GetObservation&quot;&gt;, I have<br>
&gt;&gt; &gt;&gt; ...<br>
&gt;&gt; &gt;&gt; &lt;ows:Parameter name=&quot;featureOfInterest&quot;&gt;<br>
&gt;&gt; &gt;&gt; &lt;ows:AnyValue/&gt;<br>
&gt;&gt; &gt;&gt; &lt;/ows:Parameter&gt;<br>
&gt;&gt; &gt;&gt; ...<br>
&gt;&gt; &gt;&gt; without values.<br>
&gt;&gt; &gt;&gt; When I have added new sensor or add new observations, I have used the<br>
&gt;&gt; &gt;&gt; examples presented in SOS service.<br>
&gt;&gt; &gt;&gt; If I used ThinSweClient, everything worked very well.<br>
&gt;&gt; &gt;&gt; Thanks in advance.<br>
&gt;&gt; &gt;&gt; Alessandro Oggioni<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; SWE mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:SWE@52north.org">SWE@52north.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://list.52north.org/mailman/listinfo/swe" target="_blank">http://list.52north.org/mailman/listinfo/swe</a><br>
&gt;&gt; &gt;&gt; <a href="http://sensorweb.forum.52north.org" target="_blank">http://sensorweb.forum.52north.org</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; SWE mailing list<br>
&gt;&gt; &gt; <a href="mailto:SWE@52north.org">SWE@52north.org</a><br>
&gt;&gt; &gt; <a href="http://list.52north.org/mailman/listinfo/swe" target="_blank">http://list.52north.org/mailman/listinfo/swe</a><br>
&gt;&gt; &gt; <a href="http://sensorweb.forum.52north.org" target="_blank">http://sensorweb.forum.52north.org</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SWE mailing list<br>
&gt;&gt; <a href="mailto:SWE@52north.org">SWE@52north.org</a><br>
&gt;&gt; <a href="http://list.52north.org/mailman/listinfo/swe" target="_blank">http://list.52north.org/mailman/listinfo/swe</a><br>
&gt;&gt; <a href="http://sensorweb.forum.52north.org" target="_blank">http://sensorweb.forum.52north.org</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SWE mailing list<br>
&gt; <a href="mailto:SWE@52north.org">SWE@52north.org</a><br>
&gt; <a href="http://list.52north.org/mailman/listinfo/swe" target="_blank">http://list.52north.org/mailman/listinfo/swe</a><br>
&gt; <a href="http://sensorweb.forum.52north.org" target="_blank">http://sensorweb.forum.52north.org</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
SWE mailing list<br>
<a href="mailto:SWE@52north.org">SWE@52north.org</a><br>
<a href="http://list.52north.org/mailman/listinfo/swe" target="_blank">http://list.52north.org/mailman/listinfo/swe</a><br>
<a href="http://sensorweb.forum.52north.org" target="_blank">http://sensorweb.forum.52north.org</a><br>
</div></div></blockquote></div><br>