Problem using SOS-JS as a client of istSOS

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem using SOS-JS as a client of istSOS

Òscar Chic
Hi,

It seems to me that istSOS it is a great SOS server and SOS-JS (http://blog.52north.org/2014/02/21/sos-js/) of Paul Breen from British Antartic Survey.great SOS client to visualize easily and powerful the data.

I have a problem configuring SOS-JS to attack our istSOS server.

Following the documentation it is easy to connect to a SOS Server. I could do easily (line url commented out) to connect to our 52n SOS v3.5 server doing this:

      function init() {
        var options = {
          /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'  */
          url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
          /** url: 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS' */
        };
        var app = new SOS.App(options);
        app.display();

But, when I try to connect to istSOS. I try this code:

     function init() {
        var options = {
          /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'  */
          /** url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos' */
          url: 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
        };
        var app = new SOS.App(options);
        app.display();


but it doesn't work. I get the error:

SOSGetCapabilitiesErrorMessagehttp://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS&service=SOS&request=GetCapabilities&AcceptVersions=1.0.0

Do you know which url must I put there?

I don't know if anybody has know-how with sos-js and istSOS

Thanks a lot in advance,
Òscar
Institut de Ciències del Mar (CSIC) at Barcelona
Passeig Marítim de la Barceloneta, 37-49
08003 Barcelona (Catalonia)
SPAIN
Reply | Threaded
Open this post in threaded view
|

Re: Problem using SOS-JS as a client of istSOS

Paul Breen
Hi Òscar,

I have to admit, I've never tested the SOS-JS client against an istSOS
server, but if it conforms to the SOS 1.0.0 standard, then I would hope
it would work!  Also, I can't access port 80 on your server
(silurico.cmima.csic.es), so it's difficult for me to test this.

That said, on a first look at the code you posted, it seems that you've
included the getCapabilities parameters in the service URL.  Try using just:

url: 'http://silurico.cmima.csic.es/istsos/meteocoo'

instead, and see how you get on.  When SOS-JS does a getCapabilites
call, it will add the parameters '?request=getCapabilities&service=SOS'
to the service URL, so you don't need them on there.

Cheers,
Paul.

On 10/02/17 09:31, Òscar Chic wrote:

> Hi,
>
> It seems to me that istSOS it is a great SOS server and SOS-JS
> (http://blog.52north.org/2014/02/21/sos-js/) of Paul Breen from British
> Antartic Survey.great SOS client to visualize easily and powerful the data.
>
> I have a problem configuring SOS-JS to attack our istSOS server.
>
> Following the documentation it is easy to connect to a SOS Server. I could
> do easily (line url commented out) to connect to our 52n SOS v3.5 server
> doing this:
>
>       function init() {
>         var options = {
>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'  */
>           url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
>           /** url:
> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
> */
>         };
>         var app = new SOS.App(options);
>         app.display();
>
> But, when I try to connect to istSOS. I try this code:
>
>      function init() {
>         var options = {
>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'  */
>           /** url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos' */
>           url:
> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
>         };
>         var app = new SOS.App(options);
>         app.display();
>
>
> but it doesn't work. I get the error:
>
> SOSGetCapabilitiesErrorMessagehttp://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS&service=SOS&request=GetCapabilities&AcceptVersions=1.0.0
>
> Do you know which url must I put there?
>
> I don't know if anybody has know-how with sos-js and istSOS
>
> Thanks a lot in advance,
> Òscar
>
>
>
> -----
> Institut de Ciències del Mar (CSIC) at Barcelona
> Passeig Marítim de la Barceloneta, 37-49
> 08003 Barcelona (Catalonia)
> SPAIN
> --
> View this message in context: http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854.html
> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>
________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Problem using SOS-JS as a client of istSOS

Òscar Chic
Paul,

I try:

url: 'http://silurico.cmima.csic.es/istsos/meteo'

and I get nothing but:

:


It seems istSOS server is working ok:



I don't know if this could help. Firefox in debug mode shows this:

---
***** post instantiation tests *****  sos-core-test.html:28:9
sos =   sos-core-test.html:30:9
Object { url: "http://silurico.cmima.csic.es/istsos/meteo", events: Object, capsFormatter: Object, obsFormatter: Object, foiFormatter: Object, foiTimeFormatter: Object, sensorDescFormatter: Object, config: Object }  sos-core-test.html:31:9
Object { version: "1.0.0", async: true, observation: Object, post: Object }  sos-core-test.html:32:9
TypeError: c is undefined[Més informació]  OpenLayers.js:393:1
    OpenLayers.Format.GML.v3<.readers.gml<.Envelope http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:393:1
    OpenLayers.Format.XML<.readNode http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
    OpenLayers.Format.XML<.readChildNodes http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
    OpenLayers.Format.GML.Base<.readers.gml.boundedBy http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:376:413
    OpenLayers.Format.XML<.readNode http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
    OpenLayers.Format.XML<.readChildNodes http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
    OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.ObservationOffering http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:355
    OpenLayers.Format.XML<.readNode http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
    OpenLayers.Format.XML<.readChildNodes http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
    OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.ObservationOfferingList http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:109
    OpenLayers.Format.XML<.readNode http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
    OpenLayers.Format.XML<.readChildNodes http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
    OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.Contents http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:18
    OpenLayers.Format.XML<.readNode http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
    OpenLayers.Format.XML<.readChildNodes http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
    OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.Capabilities http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1130:467
    OpenLayers.Format.XML<.readNode http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
    OpenLayers.Format.SOSCapabilities.v1_0_0<.read http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1130:56
    OpenLayers.Format.XML.VersionedOGC<.read http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:136:145
    SOS<._parseCapabilities http://basmet.nerc-bas.ac.uk/js/sos/SOS/SOS.js:184:32
    OpenLayers.Function.bind/< http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:62:270
    OpenLayers.Request.runCallbacks http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:487:501
    OpenLayers.Request.issue/d.onreadystatechange http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:486:413
    b.prototype.dispatchEvent http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:737:79
    c http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:730:586
    b.prototype.open/this._object.onreadystatechange http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:734:18
---

Thanks a lot,
Òscar


El 10/2/17 a les 11:01, Paul Breen [via 52° North - Sensor Web Community Forum] ha escrit:
Hi Òscar,

I have to admit, I've never tested the SOS-JS client against an istSOS
server, but if it conforms to the SOS 1.0.0 standard, then I would hope
it would work!  Also, I can't access port 80 on your server
(silurico.cmima.csic.es), so it's difficult for me to test this.

That said, on a first look at the code you posted, it seems that you've
included the getCapabilities parameters in the service URL.  Try using just:

url: 'http://silurico.cmima.csic.es/istsos/meteocoo'

instead, and see how you get on.  When SOS-JS does a getCapabilites
call, it will add the parameters '?request=getCapabilities&service=SOS'
to the service URL, so you don't need them on there.

Cheers,
Paul.

On 10/02/17 09:31, Òscar Chic wrote:

> Hi,
>
> It seems to me that istSOS it is a great SOS server and SOS-JS
> (http://blog.52north.org/2014/02/21/sos-js/) of Paul Breen from British
> Antartic Survey.great SOS client to visualize easily and powerful the data.
>
> I have a problem configuring SOS-JS to attack our istSOS server.
>
> Following the documentation it is easy to connect to a SOS Server. I could
> do easily (line url commented out) to connect to our 52n SOS v3.5 server
> doing this:
>
>       function init() {
>         var options = {
>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'  */
>           url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
>           /** url:
> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
> */
>         };
>         var app = new SOS.App(options);
>         app.display();
>
> But, when I try to connect to istSOS. I try this code:
>
>      function init() {
>         var options = {
>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'  */
>           /** url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos' */
>           url:
> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
>         };
>         var app = new SOS.App(options);
>         app.display();
>
>
> but it doesn't work. I get the error:
>
> SOSGetCapabilitiesErrorMessagehttp://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS&service=SOS&request=GetCapabilities&AcceptVersions=1.0.0
>
> Do you know which url must I put there?
>
> I don't know if anybody has know-how with sos-js and istSOS
>
> Thanks a lot in advance,
> Òscar
>
>
>
> -----
> Institut de Ciències del Mar (CSIC) at Barcelona
> Passeig Marítim de la Barceloneta, 37-49
> 08003 Barcelona (Catalonia)
> SPAIN
> --
> View this message in context: http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854.html
> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>
________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines


If you reply to this email, your message will be added to the discussion below:
http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854p4028855.html
To unsubscribe from Problem using SOS-JS as a client of istSOS, click here.
NAML

-- 
Oscar Chic
Sotsdirector Tècnic
Institut de Ciències del Mar (ICM-CSIC)    Tel:   +34 932309529
Pg. Marítim de la Barceloneta, 37-49       Fax:   +34 932309555
08003 Barcelona, Spain                     email: [hidden email]
_______________________________________________________________________
Institut de Ciències del Mar (CSIC) at Barcelona
Passeig Marítim de la Barceloneta, 37-49
08003 Barcelona (Catalonia)
SPAIN
Reply | Threaded
Open this post in threaded view
|

Re: Problem using SOS-JS as a client of istSOS

Paul Breen
Hi Òscar,

It looks like the OpenLayers getCapabilites parsing code (of which I am
most definitely not an expert!) is failing to find an attribute that it
needs.

I think it's the srsName attribute for an offering; here's an example
snippet from our SOS capabilities:

<sos:ObservationOffering gml:id="HalleyMet">
   <gml:name>Halley Met</gml:name>
   <gml:boundedBy>
     <gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326">
       <gml:lowerCorner>-75.58 -26.7</gml:lowerCorner>
       <gml:upperCorner>-75.58 -26.7</gml:upperCorner>
     </gml:Envelope>
   </gml:boundedBy>

Can you check if this attribute is present in your capabilities?  If
not, then can it be added?

As to whether or not this is mandatory according to the standard, I'll
leave that question to others who are far more knowledgeable than me.

Cheers,
Paul.

On 10/02/17 12:01, Òscar Chic wrote:

> Paul,
>
> I try:
>
> url: 'http://silurico.cmima.csic.es/istsos/meteo'
>
> and I get nothing but:
>
> :
>
>
> It seems istSOS server is working ok:
>
>
>
> I don't know if this could help. Firefox in debug mode shows this:
>
> ---
> ***** post instantiation tests *****  sos-core-test.html:28:9
> sos =   sos-core-test.html:30:9
> Object { url: "http://silurico.cmima.csic.es/istsos/meteo", events:
> Object, capsFormatter: Object, obsFormatter: Object, foiFormatter:
> Object, foiTimeFormatter: Object, sensorDescFormatter: Object, config:
> Object }  sos-core-test.html:31:9
> Object { version: "1.0.0", async: true, observation: Object, post:
> Object }  sos-core-test.html:32:9
> TypeError: c is undefined[Més informació]  OpenLayers.js:393:1
>      OpenLayers.Format.GML.v3<.readers.gml<.Envelope
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:393:1
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
>      OpenLayers.Format.GML.Base<.readers.gml.boundedBy
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:376:413
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.ObservationOffering
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:355
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.ObservationOfferingList
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:109
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.Contents
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:18
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.Capabilities
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1130:467
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.SOSCapabilities.v1_0_0<.read
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1130:56
>      OpenLayers.Format.XML.VersionedOGC<.read
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:136:145
>      SOS<._parseCapabilities
> http://basmet.nerc-bas.ac.uk/js/sos/SOS/SOS.js:184:32
>      OpenLayers.Function.bind/<
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:62:270
>      OpenLayers.Request.runCallbacks
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:487:501
>      OpenLayers.Request.issue/d.onreadystatechange
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:486:413
>      b.prototype.dispatchEvent
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:737:79
>      c http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:730:586
>      b.prototype.open/this._object.onreadystatechange
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:734:18
> ---
>
> Thanks a lot,
> Òscar
>
>
> El 10/2/17 a les 11:01, Paul Breen [via 52° North - Sensor Web Community
> Forum] ha escrit:
>> Hi Òscar,
>>
>> I have to admit, I've never tested the SOS-JS client against an istSOS
>> server, but if it conforms to the SOS 1.0.0 standard, then I would hope
>> it would work!  Also, I can't access port 80 on your server
>> (silurico.cmima.csic.es), so it's difficult for me to test this.
>>
>> That said, on a first look at the code you posted, it seems that you've
>> included the getCapabilities parameters in the service URL.  Try using
>> just:
>>
>> url: 'http://silurico.cmima.csic.es/istsos/meteocoo'
>> <http://silurico.cmima.csic.es/istsos/meteocoo%27>
>>
>> instead, and see how you get on.  When SOS-JS does a getCapabilites
>> call, it will add the parameters '?request=getCapabilities&service=SOS'
>> to the service URL, so you don't need them on there.
>>
>> Cheers,
>> Paul.
>>
>> On 10/02/17 09:31, Òscar Chic wrote:
>>
>>> Hi,
>>>
>>> It seems to me that istSOS it is a great SOS server and SOS-JS
>>> (http://blog.52north.org/2014/02/21/sos-js/) of Paul Breen from British
>>> Antartic Survey.great SOS client to visualize easily and powerful
>> the data.
>>>
>>> I have a problem configuring SOS-JS to attack our istSOS server.
>>>
>>> Following the documentation it is easy to connect to a SOS Server. I
>> could
>>> do easily (line url commented out) to connect to our 52n SOS v3.5
>> server
>>> doing this:
>>>
>>>       function init() {
>>>         var options = {
>>>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'
>> <http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos%27> */
>>>           url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
>> <http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos%27>
>>>           /** url:
>>>
>> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
>> <http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS%27>
>>> */
>>>         };
>>>         var app = new SOS.App(options);
>>>         app.display();
>>>
>>> But, when I try to connect to istSOS. I try this code:
>>>
>>>      function init() {
>>>         var options = {
>>>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'
>> <http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos%27> */
>>>           /** url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
>> <http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos%27> */
>>>           url:
>>>
>> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
>> <http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS%27>
>>>         };
>>>         var app = new SOS.App(options);
>>>         app.display();
>>>
>>>
>>> but it doesn't work. I get the error:
>>>
>>>
>> SOSGetCapabilitiesErrorMessagehttp://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS&service=SOS&request=GetCapabilities&AcceptVersions=1.0.0
>>>
>>> Do you know which url must I put there?
>>>
>>> I don't know if anybody has know-how with sos-js and istSOS
>>>
>>> Thanks a lot in advance,
>>> Òscar
>>>
>>>
>>>
>>> -----
>>> Institut de Ciències del Mar (CSIC) at Barcelona
>>> Passeig Marítim de la Barceloneta, 37-49
>>> 08003 Barcelona (Catalonia)
>>> SPAIN
>>> --
>>> View this message in context:
>> http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854.html
>>> Sent from the 52° North - Sensor Web Community Forum mailing list
>> archive at Nabble.com.
>>> _______________________________________________
>>> SWE mailing list
>>> [hidden email] </user/SendEmail.jtp?type=node&node=4028855&i=0>
>>> http://list.52north.org/mailman/listinfo/swe
>>> http://sensorweb.forum.52north.org
>>> Please respect our mailing list guidelines:
>>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>>>
>> ________________________________
>>  This message (and any attachments) is for the recipient only. NERC is
>> subject to the Freedom of Information Act 2000 and the contents of
>> this email and any reply you make may be disclosed by NERC unless it
>> is exempt from release under the Act. Any material supplied to NERC
>> may be stored in an electronic records management system.
>> ________________________________
>> _______________________________________________
>> SWE mailing list
>> [hidden email] </user/SendEmail.jtp?type=node&node=4028855&i=1>
>> http://list.52north.org/mailman/listinfo/swe
>> http://sensorweb.forum.52north.org
>> Please respect our mailing list guidelines:
>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>> http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854p4028855.html
>>
>> To unsubscribe from Problem using SOS-JS as a client of istSOS, click
>> here
>> <
>> NAML
>> <
http://sensorweb.forum.52north.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Problem using SOS-JS as a client of istSOS

Òscar Chic
Hi Paul,

I greatly appreciate your help.

GetCapabilities is here:

---
<?xml version="1.0" encoding="UTF-8"?>
    <Capabilities
      xmlns:gml="http://www.opengis.net/gml"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xmlns:swe="http://www.opengis.net/swe/1.0.1"
      xmlns:om="http://www.opengis.net/om/1.0"
      xmlns="http://www.opengis.net/sos/1.0"
      xmlns:sos="http://www.opengis.net/sos/1.0"
      xmlns:ows="http://www.opengis.net/ows/1.1"
      xmlns:ogc="http://www.opengis.net/ogc"
      xmlns:tml="http://www.opengis.net/tml"
      xmlns:sml="http://www.opengis.net/sensorML/1.0.1"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosGetCapabilities.xsd"
      version="1.0.0">
  <ows:ServiceIdentification>
    <ows:Title>ICM Sensor Observation Service</ows:Title>
    <ows:Abstract>monitoring network</ows:Abstract>
    <ows:Keywords>
      <ows:Keyword>SOS</ows:Keyword>
      <ows:Keyword>SENSOR</ows:Keyword>
      <ows:Keyword>NETWORK</ows:Keyword>
    </ows:Keywords>
    <ows:ServiceType codeSpace="http://opengeospatial.net">OGC:SOS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
    <ows:Fees>NONE</ows:Fees>
    <ows:AccessConstraints>NONE</ows:AccessConstraints>
  </ows:ServiceIdentification>
  <ows:ServiceProvider>
    <ows:ProviderName>Marine Science Institut ICM-CSIC</ows:ProviderName>
    <ows:ProviderSite xlink:href="http://www.icm.csic.es"/>
    <ows:ServiceContact>
      <ows:IndividualName>Team Geomatica</ows:IndividualName>
      <ows:PositionName>Data manager</ows:PositionName>
      <ows:ContactInfo>
        <ows:Phone>
          <ows:Voice>+34932309500</ows:Voice>
          <ows:Facsimile>+34932309555</ows:Facsimile>
        </ows:Phone>
        <ows:Address>
          <ows:DeliveryPoint>Passeig maritim de la barceloneta</ows:DeliveryPoint>
          <ows:City>Barcelona</ows:City>
          <ows:AdministrativeArea>Catalunya</ows:AdministrativeArea>
          <ows:PostalCode>08003</ows:PostalCode>
          <ows:Country>Spain</ows:Country>
          <ows:ElectronicMailAddress>[hidden email]</ows:ElectronicMailAddress>
        </ows:Address>
      </ows:ContactInfo>
    </ows:ServiceContact>
  </ows:ServiceProvider>
  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
          <ows:Post xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
        </ows:HTTP>
      </ows:DCP>
    <ows:Parameter name="service">
      <ows:AllowedValues>
        <ows:Value>SOS</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="version">
      <ows:AllowedValues>
        <ows:Value>1.0.0</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="section">
      <ows:AllowedValues>
        <ows:Value>serviceidentification</ows:Value>
        <ows:Value>serviceprovider</ows:Value>
        <ows:Value>operationsmetadata</ows:Value>
        <ows:Value>contents</ows:Value>
        <ows:Value>all</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    </ows:Operation>
    <ows:Operation name="DescribeSensor">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
          <ows:Post xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
        </ows:HTTP>
      </ows:DCP>
    <ows:Parameter name="service">
      <ows:AllowedValues>
        <ows:Value>SOS</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="version">
      <ows:AllowedValues>
        <ows:Value>1.0.0</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="procedure">
      <ows:AllowedValues>
        <ows:Value>urn:ogc:def:procedure:x-istsos:1.0:ICMMETEO</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="outputFormat">
      <ows:AllowedValues>
        <ows:Value>text/xml;subtype="sensorML/1.0.1"</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    </ows:Operation>
    <ows:Operation name="GetObservation">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
          <ows:Post xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
        </ows:HTTP>
      </ows:DCP>
    <ows:Parameter name="service">
      <ows:AllowedValues>
        <ows:Value>SOS</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="version">
      <ows:AllowedValues>
        <ows:Value>1.0.0</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="srsName">
      <ows:AllowedValues>
        <ows:Value>urn:ogc:crs:EPSG:4326</ows:Value>
        <ows:Value>urn:ogc:crs:EPSG:3857</ows:Value>
        <ows:Value>urn:ogc:crs:EPSG:21781</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="offering">
      <ows:AllowedValues>
        <ows:Value>urn:ogc:def:offering:x-istsos:1.0:icmsensors</ows:Value>
        <ows:Value>urn:ogc:def:offering:x-istsos:1.0:temporary</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="eventTime">
      <ows:AllowedValues>
        <ows:Range>
          <ows:MinimumValue>2015-01-01T00:10:00Z</ows:MinimumValue>
          <ows:MaximumValue>2016-01-01T00:00:00Z</ows:MaximumValue>
        </ows:Range>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="procedure">
      <ows:AllowedValues>
        <ows:Value>urn:ogc:def:procedure:x-istsos:1.0:ICMMETEO</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="observedProperty">
      <ows:AllowedValues>
        <ows:Value>urn:ogc:def:parameter:x-istsos:1.0:air:temperature:outside</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="featureOfInterest">
      <ows:AllowedValues>
        <ows:Value>urn:ogc:def:feature:x-istsos:1.0:Point:ICMMETEO</ows:Value>
        <ows:Value>urn:ogc:def:feature:x-istsos:1.0:Point:meteoicm</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="responseFormat">
      <ows:AllowedValues>
        <ows:Value>text/xml;subtype="om/1.0.0"</ows:Value>
        <ows:Value>application/json</ows:Value>
        <ows:Value>text/plain</ows:Value>
        <ows:Value>text/xml</ows:Value>
        <ows:Value>text/x-json</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="resultModel">
      <ows:AllowedValues>
        <ows:Value>om:Observation</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="responseMode">
      <ows:AllowedValues>
        <ows:Value>inline</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    </ows:Operation>
    <ows:Operation name="GetFeatureOfInterest">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
          <ows:Post xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
        </ows:HTTP>
      </ows:DCP>
    <ows:Parameter name="service">
      <ows:AllowedValues>
        <ows:Value>SOS</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="version">
      <ows:AllowedValues>
        <ows:Value>1.0.0</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="featureOfInterest">
      <ows:AllowedValues>
        <ows:Value>urn:ogc:def:feature:x-istsos:1.0:Point:ICMMETEO</ows:Value>
        <ows:Value>urn:ogc:def:feature:x-istsos:1.0:Point:meteoicm</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="srsName">
      <ows:AllowedValues>
        <ows:Value>urn:ogc:crs:EPSG:4326</ows:Value>
        <ows:Value>urn:ogc:crs:EPSG:3857</ows:Value>
        <ows:Value>urn:ogc:crs:EPSG:21781</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    </ows:Operation>
    <ows:Operation name="RegisterSensor">
      <ows:DCP>
        <ows:HTTP>
          <ows:Post xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
        </ows:HTTP>
      </ows:DCP>
    <ows:Parameter name="service">
      <ows:AllowedValues>
        <ows:Value>SOS</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="version">
      <ows:AllowedValues>
        <ows:Value>1.0.0</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="SensorDescription">
      <ows:AllowedValues>
        <ows:Value>Any SensorML</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="ObservationTemplate">
      <ows:AllowedValues>
        <ows:Value>Any om:Observation</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    </ows:Operation>
    <ows:Operation name="InsertObservation">
      <ows:DCP>
        <ows:HTTP>
          <ows:Post xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
        </ows:HTTP>
      </ows:DCP>
    <ows:Parameter name="service">
      <ows:AllowedValues>
        <ows:Value>SOS</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="version">
      <ows:AllowedValues>
        <ows:Value>1.0.0</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="AssignedSensorId">
      <ows:AllowedValues>
        <ows:Value>Any registered sensorID</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    <ows:Parameter name="Observation">
      <ows:AllowedValues>
        <ows:Value>Any om:Observation</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
    </ows:Operation>
  </ows:OperationsMetadata>
  <Contents>
    <ObservationOfferingList>
      <ObservationOffering gml:id="icmsensors">
        <gml:description>sensor data from ICM</gml:description>
        <gml:name>urn:ogc:def:offering:x-istsos:1.0:icmsensors</gml:name>
        <gml:boundedBy>
          <gml:Envelope>
            <gml:coordinates>2.1957,41.385599999999997</gml:coordinates>
          </gml:Envelope>
        </gml:boundedBy>
        <time>
          <gml:TimePeriod>
            <gml:beginPosition>2015-01-01T00:10:00Z</gml:beginPosition>
            <gml:endPosition>2016-01-01T00:00:00Z</gml:endPosition>
          </gml:TimePeriod>
        </time>
        <sos:procedure xlink:href="urn:ogc:def:procedure:x-istsos:1.0:ICMMETEO" />
        <sos:observedProperty xlink:href="urn:ogc:def:parameter:x-istsos:1.0:air:temperature:outside" />
        <sos:featureOfInterest xlink:href="urn:ogc:def:feature:x-istsos:1.0:Point:ICMMETEO" />
        <sos:responseFormat>text/xml;subtype="om/1.0.0"</sos:responseFormat>
        <sos:responseFormat>application/json</sos:responseFormat>
        <sos:responseFormat>text/plain</sos:responseFormat>
        <sos:responseFormat>text/xml</sos:responseFormat>
        <sos:responseFormat>text/x-json</sos:responseFormat>
        <sos:resultModel>om:Observation</sos:resultModel>
        <sos:responseMode>inline</sos:responseMode>
        </ObservationOffering>
      <ObservationOffering gml:id="temporary">
        <gml:description>temporary offering to hold self-registered procedures/sensors waiting for service adimistration acceptance</gml:description>
        <gml:name>urn:ogc:def:offering:x-istsos:1.0:temporary</gml:name>
        <gml:boundedBy>
          <gml:Envelope>
            <gml:coordinates>2.1957,41.385599999999997</gml:coordinates>
          </gml:Envelope>
        </gml:boundedBy>
        <time>
          <gml:TimePeriod>
            <gml:beginPosition>2015-01-01T00:10:00Z</gml:beginPosition>
            <gml:endPosition>2016-01-01T00:00:00Z</gml:endPosition>
          </gml:TimePeriod>
        </time>
        <sos:procedure xlink:href="urn:ogc:def:procedure:x-istsos:1.0:ICMMETEO" />
        <sos:observedProperty xlink:href="urn:ogc:def:parameter:x-istsos:1.0:air:temperature:outside" />
        <sos:featureOfInterest xlink:href="urn:ogc:def:feature:x-istsos:1.0:Point:ICMMETEO" />
        <sos:responseFormat>text/xml;subtype="om/1.0.0"</sos:responseFormat>
        <sos:responseFormat>application/json</sos:responseFormat>
        <sos:responseFormat>text/plain</sos:responseFormat>
        <sos:responseFormat>text/xml</sos:responseFormat>
        <sos:responseFormat>text/x-json</sos:responseFormat>
        <sos:resultModel>om:Observation</sos:resultModel>
        <sos:responseMode>inline</sos:responseMode>
        </ObservationOffering>
      </ObservationOfferingList>
      </Contents>
    </Capabilities>

---

I saw 2 srsName but not sure if meets all the standards

Cheers,
Òscar

El 10/2/17 a les 15:17, Paul Breen [via 52° North - Sensor Web Community Forum] ha escrit:
Hi Òscar,

It looks like the OpenLayers getCapabilites parsing code (of which I am
most definitely not an expert!) is failing to find an attribute that it
needs.

I think it's the srsName attribute for an offering; here's an example
snippet from our SOS capabilities:

<sos:ObservationOffering gml:id="HalleyMet">
   <gml:name>Halley Met</gml:name>
   <gml:boundedBy>
     <gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326">
       <gml:lowerCorner>-75.58 -26.7</gml:lowerCorner>
       <gml:upperCorner>-75.58 -26.7</gml:upperCorner>
     </gml:Envelope>
   </gml:boundedBy>

Can you check if this attribute is present in your capabilities?  If
not, then can it be added?

As to whether or not this is mandatory according to the standard, I'll
leave that question to others who are far more knowledgeable than me.

Cheers,
Paul.

On 10/02/17 12:01, Òscar Chic wrote:

> Paul,
>
> I try:
>
> url: 'http://silurico.cmima.csic.es/istsos/meteo'
>
> and I get nothing but:
>
> :
>
>
> It seems istSOS server is working ok:
>
>
>
> I don't know if this could help. Firefox in debug mode shows this:
>
> ---
> ***** post instantiation tests *****  sos-core-test.html:28:9
> sos =   sos-core-test.html:30:9
> Object { url: "http://silurico.cmima.csic.es/istsos/meteo", events:
> Object, capsFormatter: Object, obsFormatter: Object, foiFormatter:
> Object, foiTimeFormatter: Object, sensorDescFormatter: Object, config:
> Object }  sos-core-test.html:31:9
> Object { version: "1.0.0", async: true, observation: Object, post:
> Object }  sos-core-test.html:32:9
> TypeError: c is undefined[Més informació]  OpenLayers.js:393:1
>      OpenLayers.Format.GML.v3<.readers.gml<.Envelope
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:393:1
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
>      OpenLayers.Format.GML.Base<.readers.gml.boundedBy
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:376:413
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.ObservationOffering
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:355
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.ObservationOfferingList
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:109
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.Contents
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:18
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.XML<.readChildNodes
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.Capabilities
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1130:467
>      OpenLayers.Format.XML<.readNode
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>      OpenLayers.Format.SOSCapabilities.v1_0_0<.read
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1130:56
>      OpenLayers.Format.XML.VersionedOGC<.read
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:136:145
>      SOS<._parseCapabilities
> http://basmet.nerc-bas.ac.uk/js/sos/SOS/SOS.js:184:32
>      OpenLayers.Function.bind/<
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:62:270
>      OpenLayers.Request.runCallbacks
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:487:501
>      OpenLayers.Request.issue/d.onreadystatechange
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:486:413
>      b.prototype.dispatchEvent
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:737:79
>      c http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:730:586
>      b.prototype.open/this._object.onreadystatechange
> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:734:18
> ---
>
> Thanks a lot,
> Òscar
>
>
> El 10/2/17 a les 11:01, Paul Breen [via 52° North - Sensor Web Community
> Forum] ha escrit:
>> Hi Òscar,
>>
>> I have to admit, I've never tested the SOS-JS client against an istSOS
>> server, but if it conforms to the SOS 1.0.0 standard, then I would hope
>> it would work!  Also, I can't access port 80 on your server
>> (silurico.cmima.csic.es), so it's difficult for me to test this.
>>
>> That said, on a first look at the code you posted, it seems that you've
>> included the getCapabilities parameters in the service URL.  Try using
>> just:
>>
>> url: 'http://silurico.cmima.csic.es/istsos/meteocoo'
>> <http://silurico.cmima.csic.es/istsos/meteocoo%27>
>>
>> instead, and see how you get on.  When SOS-JS does a getCapabilites
>> call, it will add the parameters '?request=getCapabilities&service=SOS'
>> to the service URL, so you don't need them on there.
>>
>> Cheers,
>> Paul.
>>
>> On 10/02/17 09:31, Òscar Chic wrote:
>>
>>> Hi,
>>>
>>> It seems to me that istSOS it is a great SOS server and SOS-JS
>>> (http://blog.52north.org/2014/02/21/sos-js/) of Paul Breen from British
>>> Antartic Survey.great SOS client to visualize easily and powerful
>> the data.
>>>
>>> I have a problem configuring SOS-JS to attack our istSOS server.
>>>
>>> Following the documentation it is easy to connect to a SOS Server. I
>> could
>>> do easily (line url commented out) to connect to our 52n SOS v3.5
>> server
>>> doing this:
>>>
>>>       function init() {
>>>         var options = {
>>>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'
>> <http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos%27> */
>>>           url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
>> <http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos%27>
>>>           /** url:
>>>
>> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
>> <http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS%27>
>>> */
>>>         };
>>>         var app = new SOS.App(options);
>>>         app.display();
>>>
>>> But, when I try to connect to istSOS. I try this code:
>>>
>>>      function init() {
>>>         var options = {
>>>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'
>> <http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos%27> */
>>>           /** url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
>> <http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos%27> */
>>>           url:
>>>
>> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
>> <http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS%27>
>>>         };
>>>         var app = new SOS.App(options);
>>>         app.display();
>>>
>>>
>>> but it doesn't work. I get the error:
>>>
>>>
>> SOSGetCapabilitiesErrorMessagehttp://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS&service=SOS&request=GetCapabilities&AcceptVersions=1.0.0
>>>
>>> Do you know which url must I put there?
>>>
>>> I don't know if anybody has know-how with sos-js and istSOS
>>>
>>> Thanks a lot in advance,
>>> Òscar
>>>
>>>
>>>
>>> -----
>>> Institut de Ciències del Mar (CSIC) at Barcelona
>>> Passeig Marítim de la Barceloneta, 37-49
>>> 08003 Barcelona (Catalonia)
>>> SPAIN
>>> --
>>> View this message in context:
>> http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854.html
>>> Sent from the 52° North - Sensor Web Community Forum mailing list
>> archive at Nabble.com.
>>> _______________________________________________
>>> SWE mailing list
>>> [hidden email] </user/SendEmail.jtp?type=node&node=4028855&i=0>
>>> http://list.52north.org/mailman/listinfo/swe
>>> http://sensorweb.forum.52north.org
>>> Please respect our mailing list guidelines:
>>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>>>
>> ________________________________
>>  This message (and any attachments) is for the recipient only. NERC is
>> subject to the Freedom of Information Act 2000 and the contents of
>> this email and any reply you make may be disclosed by NERC unless it
>> is exempt from release under the Act. Any material supplied to NERC
>> may be stored in an electronic records management system.
>> ________________________________
>> _______________________________________________
>> SWE mailing list
>> [hidden email] </user/SendEmail.jtp?type=node&node=4028855&i=1>
>> http://list.52north.org/mailman/listinfo/swe
>> http://sensorweb.forum.52north.org
>> Please respect our mailing list guidelines:
>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>> http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854p4028855.html
>>
>> To unsubscribe from Problem using SOS-JS as a client of istSOS, click
>> here
>> <
>> NAML
>> <
http://sensorweb.forum.52north.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines


If you reply to this email, your message will be added to the discussion below:
http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854p4028857.html
To unsubscribe from Problem using SOS-JS as a client of istSOS, click here.
NAML

-- 
Oscar Chic
Sotsdirector Tècnic
Institut de Ciències del Mar (ICM-CSIC)    Tel:   +34 932309529
Pg. Marítim de la Barceloneta, 37-49       Fax:   +34 932309555
08003 Barcelona, Spain                     email: [hidden email]
_______________________________________________________________________
Institut de Ciències del Mar (CSIC) at Barcelona
Passeig Marítim de la Barceloneta, 37-49
08003 Barcelona (Catalonia)
SPAIN
Reply | Threaded
Open this post in threaded view
|

Re: Problem using SOS-JS as a client of istSOS

Paul Breen
Hi Òscar,

I think the OpenLayers parsing fails because of the missing srsName
attribute in gml:Envelope.  Compare yours:

<gml:Envelope>
   <gml:coordinates>2.1957,41.385599999999997</gml:coordinates>
</gml:Envelope>

to ours (from 52N SOS):

<gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326">
   <gml:lowerCorner>-75.58 -26.7</gml:lowerCorner>
   <gml:upperCorner>-75.58 -26.7</gml:upperCorner>
</gml:Envelope>

As I mentioned, I'm not sure if this attribute is required by the SOS
1.0.0 standard; maybe others could comment.  I assume it does, because
the OL parsing requires it, but it could just be a bug in OL.

Do you have any control over the capabilities document that is returned
by your SOS?  If so, it might be worth seeing if you can add that
missing attribute in.

Cheers,
Paul.

On 10/02/17 15:38, Òscar Chic wrote:

> Hi Paul,
>
> I greatly appreciate your help.
>
> GetCapabilities is here:
>
> ---
> <?xml version="1.0" encoding="UTF-8"?>
>      <Capabilities
>        xmlns:gml="http://www.opengis.net/gml"
>        xmlns:xlink="http://www.w3.org/1999/xlink"
>        xmlns:swe="http://www.opengis.net/swe/1.0.1"
>        xmlns:om="http://www.opengis.net/om/1.0"
>        xmlns="http://www.opengis.net/sos/1.0"
>        xmlns:sos="http://www.opengis.net/sos/1.0"
>        xmlns:ows="http://www.opengis.net/ows/1.1"
>        xmlns:ogc="http://www.opengis.net/ogc"
>        xmlns:tml="http://www.opengis.net/tml"
>        xmlns:sml="http://www.opengis.net/sensorML/1.0.1"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://www.opengis.net/sos/1.0
> http://schemas.opengis.net/sos/1.0.0/sosGetCapabilities.xsd"
>        version="1.0.0">
>    <ows:ServiceIdentification>
>      <ows:Title>ICM Sensor Observation Service</ows:Title>
>      <ows:Abstract>monitoring network</ows:Abstract>
>      <ows:Keywords>
>        <ows:Keyword>SOS</ows:Keyword>
>        <ows:Keyword>SENSOR</ows:Keyword>
>        <ows:Keyword>NETWORK</ows:Keyword>
>      </ows:Keywords>
>      <ows:ServiceType
> codeSpace="http://opengeospatial.net">OGC:SOS</ows:ServiceType>
> <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
>      <ows:Fees>NONE</ows:Fees>
>      <ows:AccessConstraints>NONE</ows:AccessConstraints>
>    </ows:ServiceIdentification>
>    <ows:ServiceProvider>
>      <ows:ProviderName>Marine Science Institut ICM-CSIC</ows:ProviderName>
>      <ows:ProviderSite xlink:href="http://www.icm.csic.es"/>
>      <ows:ServiceContact>
>        <ows:IndividualName>Team Geomatica</ows:IndividualName>
>        <ows:PositionName>Data manager</ows:PositionName>
>        <ows:ContactInfo>
>          <ows:Phone>
>            <ows:Voice>+34932309500</ows:Voice>
>            <ows:Facsimile>+34932309555</ows:Facsimile>
>          </ows:Phone>
>          <ows:Address>
>            <ows:DeliveryPoint>Passeig maritim de la
> barceloneta</ows:DeliveryPoint>
>            <ows:City>Barcelona</ows:City>
> <ows:AdministrativeArea>Catalunya</ows:AdministrativeArea>
>            <ows:PostalCode>08003</ows:PostalCode>
>            <ows:Country>Spain</ows:Country>
> <ows:ElectronicMailAddress>[hidden email]</ows:ElectronicMailAddress>
>          </ows:Address>
>        </ows:ContactInfo>
>      </ows:ServiceContact>
>    </ows:ServiceProvider>
>    <ows:OperationsMetadata>
>      <ows:Operation name="GetCapabilities">
>        <ows:DCP>
>          <ows:HTTP>
>            <ows:Get
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>            <ows:Post
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>          </ows:HTTP>
>        </ows:DCP>
>      <ows:Parameter name="service">
>        <ows:AllowedValues>
>          <ows:Value>SOS</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="version">
>        <ows:AllowedValues>
>          <ows:Value>1.0.0</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="section">
>        <ows:AllowedValues>
>          <ows:Value>serviceidentification</ows:Value>
>          <ows:Value>serviceprovider</ows:Value>
>          <ows:Value>operationsmetadata</ows:Value>
>          <ows:Value>contents</ows:Value>
>          <ows:Value>all</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      </ows:Operation>
>      <ows:Operation name="DescribeSensor">
>        <ows:DCP>
>          <ows:HTTP>
>            <ows:Get
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>            <ows:Post
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>          </ows:HTTP>
>        </ows:DCP>
>      <ows:Parameter name="service">
>        <ows:AllowedValues>
>          <ows:Value>SOS</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="version">
>        <ows:AllowedValues>
>          <ows:Value>1.0.0</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="procedure">
>        <ows:AllowedValues>
> <ows:Value>urn:ogc:def:procedure:x-istsos:1.0:ICMMETEO</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="outputFormat">
>        <ows:AllowedValues>
> <ows:Value>text/xml;subtype="sensorML/1.0.1"</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      </ows:Operation>
>      <ows:Operation name="GetObservation">
>        <ows:DCP>
>          <ows:HTTP>
>            <ows:Get
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>            <ows:Post
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>          </ows:HTTP>
>        </ows:DCP>
>      <ows:Parameter name="service">
>        <ows:AllowedValues>
>          <ows:Value>SOS</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="version">
>        <ows:AllowedValues>
>          <ows:Value>1.0.0</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="srsName">
>        <ows:AllowedValues>
>          <ows:Value>urn:ogc:crs:EPSG:4326</ows:Value>
>          <ows:Value>urn:ogc:crs:EPSG:3857</ows:Value>
>          <ows:Value>urn:ogc:crs:EPSG:21781</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="offering">
>        <ows:AllowedValues>
> <ows:Value>urn:ogc:def:offering:x-istsos:1.0:icmsensors</ows:Value>
> <ows:Value>urn:ogc:def:offering:x-istsos:1.0:temporary</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="eventTime">
>        <ows:AllowedValues>
>          <ows:Range>
> <ows:MinimumValue>2015-01-01T00:10:00Z</ows:MinimumValue>
> <ows:MaximumValue>2016-01-01T00:00:00Z</ows:MaximumValue>
>          </ows:Range>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="procedure">
>        <ows:AllowedValues>
> <ows:Value>urn:ogc:def:procedure:x-istsos:1.0:ICMMETEO</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="observedProperty">
>        <ows:AllowedValues>
> <ows:Value>urn:ogc:def:parameter:x-istsos:1.0:air:temperature:outside</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="featureOfInterest">
>        <ows:AllowedValues>
> <ows:Value>urn:ogc:def:feature:x-istsos:1.0:Point:ICMMETEO</ows:Value>
> <ows:Value>urn:ogc:def:feature:x-istsos:1.0:Point:meteoicm</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="responseFormat">
>        <ows:AllowedValues>
> <ows:Value>text/xml;subtype="om/1.0.0"</ows:Value>
>          <ows:Value>application/json</ows:Value>
>          <ows:Value>text/plain</ows:Value>
>          <ows:Value>text/xml</ows:Value>
>          <ows:Value>text/x-json</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="resultModel">
>        <ows:AllowedValues>
>          <ows:Value>om:Observation</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="responseMode">
>        <ows:AllowedValues>
>          <ows:Value>inline</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      </ows:Operation>
>      <ows:Operation name="GetFeatureOfInterest">
>        <ows:DCP>
>          <ows:HTTP>
>            <ows:Get
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>            <ows:Post
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>          </ows:HTTP>
>        </ows:DCP>
>      <ows:Parameter name="service">
>        <ows:AllowedValues>
>          <ows:Value>SOS</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="version">
>        <ows:AllowedValues>
>          <ows:Value>1.0.0</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="featureOfInterest">
>        <ows:AllowedValues>
> <ows:Value>urn:ogc:def:feature:x-istsos:1.0:Point:ICMMETEO</ows:Value>
> <ows:Value>urn:ogc:def:feature:x-istsos:1.0:Point:meteoicm</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="srsName">
>        <ows:AllowedValues>
>          <ows:Value>urn:ogc:crs:EPSG:4326</ows:Value>
>          <ows:Value>urn:ogc:crs:EPSG:3857</ows:Value>
>          <ows:Value>urn:ogc:crs:EPSG:21781</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      </ows:Operation>
>      <ows:Operation name="RegisterSensor">
>        <ows:DCP>
>          <ows:HTTP>
>            <ows:Post
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>          </ows:HTTP>
>        </ows:DCP>
>      <ows:Parameter name="service">
>        <ows:AllowedValues>
>          <ows:Value>SOS</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="version">
>        <ows:AllowedValues>
>          <ows:Value>1.0.0</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="SensorDescription">
>        <ows:AllowedValues>
>          <ows:Value>Any SensorML</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="ObservationTemplate">
>        <ows:AllowedValues>
>          <ows:Value>Any om:Observation</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      </ows:Operation>
>      <ows:Operation name="InsertObservation">
>        <ows:DCP>
>          <ows:HTTP>
>            <ows:Post
> xlink:href="http://silurico.cmima.csic.es/istsos/meteo"/>
>          </ows:HTTP>
>        </ows:DCP>
>      <ows:Parameter name="service">
>        <ows:AllowedValues>
>          <ows:Value>SOS</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="version">
>        <ows:AllowedValues>
>          <ows:Value>1.0.0</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="AssignedSensorId">
>        <ows:AllowedValues>
>          <ows:Value>Any registered sensorID</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      <ows:Parameter name="Observation">
>        <ows:AllowedValues>
>          <ows:Value>Any om:Observation</ows:Value>
>        </ows:AllowedValues>
>      </ows:Parameter>
>      </ows:Operation>
>    </ows:OperationsMetadata>
>    <Contents>
>      <ObservationOfferingList>
>        <ObservationOffering gml:id="icmsensors">
>          <gml:description>sensor data from ICM</gml:description>
> <gml:name>urn:ogc:def:offering:x-istsos:1.0:icmsensors</gml:name>
>          <gml:boundedBy>
>            <gml:Envelope>
> <gml:coordinates>2.1957,41.385599999999997</gml:coordinates>
>            </gml:Envelope>
>          </gml:boundedBy>
>          <time>
>            <gml:TimePeriod>
> <gml:beginPosition>2015-01-01T00:10:00Z</gml:beginPosition>
> <gml:endPosition>2016-01-01T00:00:00Z</gml:endPosition>
>            </gml:TimePeriod>
>          </time>
>          <sos:procedure
> xlink:href="urn:ogc:def:procedure:x-istsos:1.0:ICMMETEO" />
>          <sos:observedProperty
> xlink:href="urn:ogc:def:parameter:x-istsos:1.0:air:temperature:outside" />
>          <sos:featureOfInterest
> xlink:href="urn:ogc:def:feature:x-istsos:1.0:Point:ICMMETEO" />
> <sos:responseFormat>text/xml;subtype="om/1.0.0"</sos:responseFormat>
> <sos:responseFormat>application/json</sos:responseFormat>
> <sos:responseFormat>text/plain</sos:responseFormat>
> <sos:responseFormat>text/xml</sos:responseFormat>
> <sos:responseFormat>text/x-json</sos:responseFormat>
> <sos:resultModel>om:Observation</sos:resultModel>
>          <sos:responseMode>inline</sos:responseMode>
>          </ObservationOffering>
>        <ObservationOffering gml:id="temporary">
>          <gml:description>temporary offering to hold self-registered
> procedures/sensors waiting for service adimistration
> acceptance</gml:description>
> <gml:name>urn:ogc:def:offering:x-istsos:1.0:temporary</gml:name>
>          <gml:boundedBy>
>            <gml:Envelope>
> <gml:coordinates>2.1957,41.385599999999997</gml:coordinates>
>            </gml:Envelope>
>          </gml:boundedBy>
>          <time>
>            <gml:TimePeriod>
> <gml:beginPosition>2015-01-01T00:10:00Z</gml:beginPosition>
> <gml:endPosition>2016-01-01T00:00:00Z</gml:endPosition>
>            </gml:TimePeriod>
>          </time>
>          <sos:procedure
> xlink:href="urn:ogc:def:procedure:x-istsos:1.0:ICMMETEO" />
>          <sos:observedProperty
> xlink:href="urn:ogc:def:parameter:x-istsos:1.0:air:temperature:outside" />
>          <sos:featureOfInterest
> xlink:href="urn:ogc:def:feature:x-istsos:1.0:Point:ICMMETEO" />
> <sos:responseFormat>text/xml;subtype="om/1.0.0"</sos:responseFormat>
> <sos:responseFormat>application/json</sos:responseFormat>
> <sos:responseFormat>text/plain</sos:responseFormat>
> <sos:responseFormat>text/xml</sos:responseFormat>
> <sos:responseFormat>text/x-json</sos:responseFormat>
> <sos:resultModel>om:Observation</sos:resultModel>
>          <sos:responseMode>inline</sos:responseMode>
>          </ObservationOffering>
>        </ObservationOfferingList>
>        </Contents>
>      </Capabilities>
>
> ---
>
> I saw 2 srsName but not sure if meets all the standards
>
> Cheers,
> Òscar
>
> El 10/2/17 a les 15:17, Paul Breen [via 52° North - Sensor Web Community
> Forum] ha escrit:
>> Hi Òscar,
>>
>> It looks like the OpenLayers getCapabilites parsing code (of which I am
>> most definitely not an expert!) is failing to find an attribute that it
>> needs.
>>
>> I think it's the srsName attribute for an offering; here's an example
>> snippet from our SOS capabilities:
>>
>> <sos:ObservationOffering gml:id="HalleyMet">
>>    <gml:name>Halley Met</gml:name>
>>    <gml:boundedBy>
>>      <gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326">
>>        <gml:lowerCorner>-75.58 -26.7</gml:lowerCorner>
>>        <gml:upperCorner>-75.58 -26.7</gml:upperCorner>
>>      </gml:Envelope>
>>    </gml:boundedBy>
>>
>> Can you check if this attribute is present in your capabilities?  If
>> not, then can it be added?
>>
>> As to whether or not this is mandatory according to the standard, I'll
>> leave that question to others who are far more knowledgeable than me.
>>
>> Cheers,
>> Paul.
>>
>> On 10/02/17 12:01, Òscar Chic wrote:
>>
>>> Paul,
>>>
>>> I try:
>>>
>>> url: 'http://silurico.cmima.csic.es/istsos/meteo'
>> <http://silurico.cmima.csic.es/istsos/meteo%27>
>>>
>>> and I get nothing but:
>>>
>>> :
>>>
>>>
>>> It seems istSOS server is working ok:
>>>
>>>
>>>
>>> I don't know if this could help. Firefox in debug mode shows this:
>>>
>>> ---
>>> ***** post instantiation tests *****  sos-core-test.html:28:9
>>> sos =   sos-core-test.html:30:9
>>> Object { url: "http://silurico.cmima.csic.es/istsos/meteo", events:
>>> Object, capsFormatter: Object, obsFormatter: Object, foiFormatter:
>>> Object, foiTimeFormatter: Object, sensorDescFormatter: Object, config:
>>> Object }  sos-core-test.html:31:9
>>> Object { version: "1.0.0", async: true, observation: Object, post:
>>> Object }  sos-core-test.html:32:9
>>> TypeError: c is undefined[Més informació]  OpenLayers.js:393:1
>>>      OpenLayers.Format.GML.v3<.readers.gml<.Envelope
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:393:1
>>>      OpenLayers.Format.XML<.readNode
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>>>      OpenLayers.Format.XML<.readChildNodes
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
>>>      OpenLayers.Format.GML.Base<.readers.gml.boundedBy
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:376:413
>>>      OpenLayers.Format.XML<.readNode
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>>>      OpenLayers.Format.XML<.readChildNodes
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
>>>
>> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.ObservationOffering
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:355
>>>      OpenLayers.Format.XML<.readNode
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>>>      OpenLayers.Format.XML<.readChildNodes
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
>>>
>> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.ObservationOfferingList
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:109
>>>      OpenLayers.Format.XML<.readNode
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>>>      OpenLayers.Format.XML<.readChildNodes
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
>>> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.Contents
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1131:18
>>>      OpenLayers.Format.XML<.readNode
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>>>      OpenLayers.Format.XML<.readChildNodes
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:129:127
>>> OpenLayers.Format.SOSCapabilities.v1_0_0<.readers.sos.Capabilities
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1130:467
>>>      OpenLayers.Format.XML<.readNode
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:128:499
>>>      OpenLayers.Format.SOSCapabilities.v1_0_0<.read
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:1130:56
>>>      OpenLayers.Format.XML.VersionedOGC<.read
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:136:145
>>>      SOS<._parseCapabilities
>>> http://basmet.nerc-bas.ac.uk/js/sos/SOS/SOS.js:184:32
>>>      OpenLayers.Function.bind/<
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:62:270
>>>      OpenLayers.Request.runCallbacks
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:487:501
>>>      OpenLayers.Request.issue/d.onreadystatechange
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:486:413
>>>      b.prototype.dispatchEvent
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:737:79
>>>      c
>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:730:586
>>>      b.prototype.open/this._object.onreadystatechange
>>> http://basmet.nerc-bas.ac.uk/js/sos/OpenLayers/OpenLayers.js:734:18
>>> ---
>>>
>>> Thanks a lot,
>>> Òscar
>>>
>>>
>>> El 10/2/17 a les 11:01, Paul Breen [via 52° North - Sensor Web
>> Community
>>> Forum] ha escrit:
>>>> Hi Òscar,
>>>>
>>>> I have to admit, I've never tested the SOS-JS client against an istSOS
>>>> server, but if it conforms to the SOS 1.0.0 standard, then I would
>> hope
>>>> it would work!  Also, I can't access port 80 on your server
>>>> (silurico.cmima.csic.es), so it's difficult for me to test this.
>>>>
>>>> That said, on a first look at the code you posted, it seems that
>> you've
>>>> included the getCapabilities parameters in the service URL.  Try using
>>>> just:
>>>>
>>>> url: 'http://silurico.cmima.csic.es/istsos/meteocoo'
>> <http://silurico.cmima.csic.es/istsos/meteocoo%27>
>>>> <http://silurico.cmima.csic.es/istsos/meteocoo%27>
>>>>
>>>> instead, and see how you get on.  When SOS-JS does a getCapabilites
>>>> call, it will add the parameters
>> '?request=getCapabilities&service=SOS'
>>>> to the service URL, so you don't need them on there.
>>>>
>>>> Cheers,
>>>> Paul.
>>>>
>>>> On 10/02/17 09:31, Òscar Chic wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> It seems to me that istSOS it is a great SOS server and SOS-JS
>>>>> (http://blog.52north.org/2014/02/21/sos-js/) of Paul Breen from
>> British
>>>>> Antartic Survey.great SOS client to visualize easily and powerful
>>>> the data.
>>>>>
>>>>> I have a problem configuring SOS-JS to attack our istSOS server.
>>>>>
>>>>> Following the documentation it is easy to connect to a SOS Server. I
>>>> could
>>>>> do easily (line url commented out) to connect to our 52n SOS v3.5
>>>> server
>>>>> doing this:
>>>>>
>>>>>       function init() {
>>>>>         var options = {
>>>>>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'
>> <http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos%27>
>>>> <http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos%27> */
>>>>>           url: 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
>> <http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos%27>
>>>> <http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos%27>
>>>>>           /** url:
>>>>>
>>>>
>> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
>> <http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS%27>
>>>>
>> <http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS%27>
>>
>>>>> */
>>>>>         };
>>>>>         var app = new SOS.App(options);
>>>>>         app.display();
>>>>>
>>>>> But, when I try to connect to istSOS. I try this code:
>>>>>
>>>>>      function init() {
>>>>>         var options = {
>>>>>           /** url: 'http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos'
>> <http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos%27>
>>>> <http://sosmet.nerc-bas.ac.uk:8080/sosmet/sos%27> */
>>>>>           /** url:
>> 'http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos'
>> <http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos%27>
>>>> <http://ide.cmima.csic.es:8080/52nSOSv3.5.0/sos%27> */
>>>>>           url:
>>>>>
>>>>
>> 'http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS'
>> <http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS%27>
>>>>
>> <http://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS%27>
>>
>>>>>         };
>>>>>         var app = new SOS.App(options);
>>>>>         app.display();
>>>>>
>>>>>
>>>>> but it doesn't work. I get the error:
>>>>>
>>>>>
>>>>
>> SOSGetCapabilitiesErrorMessagehttp://silurico.cmima.csic.es/istsos/meteocoo?request=getCapabilities&service=SOS&service=SOS&request=GetCapabilities&AcceptVersions=1.0.0
>>>>>
>>>>> Do you know which url must I put there?
>>>>>
>>>>> I don't know if anybody has know-how with sos-js and istSOS
>>>>>
>>>>> Thanks a lot in advance,
>>>>> Òscar
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> Institut de Ciències del Mar (CSIC) at Barcelona
>>>>> Passeig Marítim de la Barceloneta, 37-49
>>>>> 08003 Barcelona (Catalonia)
>>>>> SPAIN
>>>>> --
>>>>> View this message in context:
>>>>
>> http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854.html
>>>>> Sent from the 52° North - Sensor Web Community Forum mailing list
>>>> archive at Nabble.com.
>>>>> _______________________________________________
>>>>> SWE mailing list
>>>>> [hidden email] </user/SendEmail.jtp?type=node&node=4028855&i=0>
>>>>> http://list.52north.org/mailman/listinfo/swe
>>>>> http://sensorweb.forum.52north.org
>>>>> Please respect our mailing list guidelines:
>>>>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>>>>>
>>>> ________________________________
>>>>  This message (and any attachments) is for the recipient only. NERC is
>>>> subject to the Freedom of Information Act 2000 and the contents of
>>>> this email and any reply you make may be disclosed by NERC unless it
>>>> is exempt from release under the Act. Any material supplied to NERC
>>>> may be stored in an electronic records management system.
>>>> ________________________________
>>>> _______________________________________________
>>>> SWE mailing list
>>>> [hidden email] </user/SendEmail.jtp?type=node&node=4028855&i=1>
>>>> http://list.52north.org/mailman/listinfo/swe
>>>> http://sensorweb.forum.52north.org
>>>> Please respect our mailing list guidelines:
>>>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>>>>
>>>>
>> ------------------------------------------------------------------------
>>>> If you reply to this email, your message will be added to the
>>>> discussion below:
>>>>
>> http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854p4028855.html
>>>>
>>>> To unsubscribe from Problem using SOS-JS as a client of istSOS, click
>>>> here
>>>> <
>>>> NAML
>>>>
>> <http://sensorweb.forum.52north.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>>>>
>>>
>> ________________________________
>>  This message (and any attachments) is for the recipient only. NERC is
>> subject to the Freedom of Information Act 2000 and the contents of
>> this email and any reply you make may be disclosed by NERC unless it
>> is exempt from release under the Act. Any material supplied to NERC
>> may be stored in an electronic records management system.
>> ________________________________
>> _______________________________________________
>> SWE mailing list
>> [hidden email] </user/SendEmail.jtp?type=node&node=4028857&i=0>
>> http://list.52north.org/mailman/listinfo/swe
>> http://sensorweb.forum.52north.org
>> Please respect our mailing list guidelines:
>> http://52north.org/resources/mailing-lists-and-forums/guidelines
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>> http://sensorweb.forum.52north.org/Problem-using-SOS-JS-as-a-client-of-istSOS-tp4028854p4028857.html
>>
>> To unsubscribe from Problem using SOS-JS as a client of istSOS, click
>> here
>> <
>> NAML
>> <
http://sensorweb.forum.52north.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________

_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines