sos4r describe sensor request

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

sos4r describe sensor request


Hi !

using the converters, i manage to access the informations I needed


but I have now another problem, when  i try to get the describesensor I have an error

> mySensor <- describeSensor(sos = mySOS, procedure = procedure_choice)
Warning message:
In .handleExceptionReport(sos, .response) :
  Object of class OwsExceptionReport; version: 1.0.0; lang: en;
 1 exception(s) (code @ locator : text):
  InvalidParameterValue @ outputFormat :
    Supported "outputFormat" values are: text/xml;subtype="sensorML/1.0.1"

is there anyway to get around that?



On 12.04.2017 11:48, Daniel Nüst wrote:
Hi Guillaume,

thanks for your interest in sos4R :-)

On 12/04/17 11:14, Guillaume Laty wrote:
My name is Guillaume and I'm working for the unep GRID. I'm trying SOS4R
to get some data from itsos.

Here is what I do and what's happening as an error

mySOS <- SOS(url = "")
 off.temp <- sosOfferings(mySOS)[[1]]

obs.temp.procedure.1 <- getObservation(sos = mySOS, offering =
off.temp, procedure = sosProcedures(off.temp))
[sos4R] Received response (size: 848 bytes), parsing ...
Error in if (.subtypeIdx > 0) { : argument is of length zero
Here is the sessionInfo()

 > sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: i686-pc-linux-gnu (32-bit)
Running under: Ubuntu 14.04.5 LTS

and I use this version of SOS4R

Does anyone have any idea how can I get unstucked?
I can reproduce the error, which is good!

By using "GET" as the communication protocol instead of the default
"POST", I get a bit further.

mySOS <- SOS(url = "", method =

getObservation(sos = mySOS, offering = off.temp)
[sos4R] Received response (size: 9256 bytes), parsing ...
Error in sum(.resultLength) : invalid 'type' (list) of argument
In addition: Warning messages:
1: In .valParser(values = obj[[sweValuesName]], fields = .fields,
encoding = .encoding,  :
  No converter found for the given field Time,
2: In .valParser(values = obj[[sweValuesName]], fields = .fields,
encoding = .encoding,  :
  No converter found! Skipping field Time
No converter found! Skipping field

In the vignette [1] section 6.4 you find instructions on how to define
the missing converters.

If you switch on the verbose option, you will also see the raw requests,
which might help:

getObservation(sos = mySOS, offering = off.temp, verbose = TRUE)
This shows me that data is indeed returned.

Hope this helps for now, please keep us posted on your progress.



Geostatistics mailing list
[hidden email]
Please respect our mailing list guidelines:

Geostatistics mailing list
[hidden email]
Please respect our mailing list guidelines: