[This message should be better in the OpenLayers list I think, so I'm adding it.]<br><br>That sample is based on another example in @bartvde'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'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"><<a href="mailto:a.oggioni@ise.cnr.it">a.oggioni@ise.cnr.it</a>></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 ("Stations", 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 <<a href="mailto:xmendez@udc.es">xmendez@udc.es</a>>:<br>
<div><div></div><div class="h5">> What link do you refer to? The SOS server is<br>
> '<a href="http://v-swe.uni-muenster.de:8080/WeatherSOS/sos" target="_blank">http://v-swe.uni-muenster.de:8080/WeatherSOS/sos</a>?' in both examples. What<br>
> 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>
> does is to add some parsing capabilities that the other lacks, specially in<br>
> the GetObservation request.<br>
> In addition, the code that is currently in OpenLayers for SOS had some<br>
> issues with the namespace URIs and the problem you are having may have to do<br>
> with that. Also, when you specify the parameters for the GetObservation<br>
> request, you notice that you can specify the 'resultModel', that in that<br>
> example is 'om:Measurement'. Maybe your service is returning<br>
> 'om:Observation' instances instead. Try changing it.<br>
><br>
> If you have firebug installed you can sniff the requests and try them alone<br>
> with the web client that 52North SOS server comes out-of-the-box with.<br>
><br>
> And finally please notice that the code in<br>
> <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>
> a sandbox, not even a patch in a ticket. There's a ticket in<br>
> <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>
> and additions that you can find in my sandbox example. the ticket is being<br>
> currently (I think) reviewed by Bart van den Eijnden, who is the one who has<br>
> implemented current SOS support in OpenLayers.<br>
><br>
> 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>
> 2010/11/16 Alessandro Oggioni <<a href="mailto:a.oggioni@ise.cnr.it">a.oggioni@ise.cnr.it</a>><br>
>><br>
>> Hi Xurxo,<br>
>> but the link<br>
>> <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>
>> is not the same link of OpenLayers example<br>
>> (<a href="http://openlayers.org/dev/examples/" target="_blank">http://openlayers.org/dev/examples/</a>)<br>
>> Many thanks<br>
>> Alessandro<br>
>><br>
>> 2010/11/15 Xurxo Mendez <<a href="mailto:xmendez@udc.es">xmendez@udc.es</a>>:<br>
>> > Hi,<br>
>> ><br>
>> > maybe this can help you,<br>
>> ><br>
>> > <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>
>> ><br>
>> > There are some elements in some SOS requests that OpenLayers currently<br>
>> > does<br>
>> > not support. Even in that sandbox example not all the schema is<br>
>> > supported,<br>
>> > but at least some more.<br>
>> ><br>
>> > It's a modification of OpenLayers' SOS support, treating it as a<br>
>> > separate<br>
>> > Layer instead of a Vector layer.<br>
>> ><br>
>> > I hope that can help you<br>
>> ><br>
>> > 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>
>> > 2010/11/15 Alessandro Oggioni <<a href="mailto:a.oggioni@ise.cnr.it">a.oggioni@ise.cnr.it</a>><br>
>> >><br>
>> >> Dear all users,<br>
>> >> I tried to use the example about 52North SOS in Openlayers 2.10.<br>
>> >> I have changed the url in<br>
>> >> ...<br>
>> >> var sos = new OpenLayers.SOSClient({map: map, url:<br>
>> >> ...<br>
>> >> with url of my SOS service but return an error:<br>
>> >> output.measurements[0] is undefined.<br>
>> >> If I look in firebug console I have this problem in POST request<br>
>> >> (<a href="http://localhost/cgi-bin/proxy.cgi?url=http://.../sos?" target="_blank">http://localhost/cgi-bin/proxy.cgi?url=http://.../sos?</a>):<br>
>> >> ...<br>
>> >> <ows:Exception exceptionCode="InvalidParameterValue"<br>
>> >> locator="procedureID"><br>
>> >> <ows:ExceptionText>No phenomena for procedure 'Lake_Maggiore_L11'<br>
>> >> were found!</ows:ExceptionText><br>
>> >> </ows:Exception><br>
>> >> ...<br>
>> >> I write in this list and I have sended the same message at the<br>
>> >> OpenLayers's users list because i don't know if a problem of<br>
>> >> OpenLayers or in Sensor Observation Service.<br>
>> >> If you have another example of OpenLayers with SOS, you can send them<br>
>> >> to<br>
>> >> me?<br>
>> >> If I have compound the GetCapabilities of my service and of example<br>
>> >> 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>
>> >> OperationsMetadata section is totally lacking of ows:Operation like to<br>
>> >> RegisterSensor, InsertObservation, GetFeatureOfInterestTime, GetResult<br>
>> >> and DescribeFeatureOfInterest, and of ows:Parameter like to service<br>
>> >> and version. In the <ows:Operation name="GetObservation">, I have<br>
>> >> ...<br>
>> >> <ows:Parameter name="featureOfInterest"><br>
>> >> <ows:AnyValue/><br>
>> >> </ows:Parameter><br>
>> >> ...<br>
>> >> without values.<br>
>> >> When I have added new sensor or add new observations, I have used the<br>
>> >> examples presented in SOS service.<br>
>> >> If I used ThinSweClient, everything worked very well.<br>
>> >> Thanks in advance.<br>
>> >> Alessandro Oggioni<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>
>> ><br>
>> ><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>
>> ><br>
>> ><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>
><br>
><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>
><br>
><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>