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

G.Laty

Hi !


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


 SosDataFieldConvertingFunctions("urn:ogc:def:parameter:x-istsos:1.0:time:iso8601"=sosConvertTime)


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?

Thanks

Guillaume



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 = "http://ig3is.grid.unep.ch/istsos/ghg")
 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
 sos4R_0.2-11

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 = "http://ig3is.grid.unep.ch/istsos/ghg", method =
SosSupportedConnectionMethods()[["GET"]])

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,
urn:ogc:def:parameter:x-istsos:1.0:time:iso8601
2: In .valParser(values = obj[[sweValuesName]], fields = .fields,
encoding = .encoding,  :
  No converter found! Skipping field Time
No converter found! Skipping field
urn:ogc:def:parameter:x-istsos:1.0:time:iso8601

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.

/Daniel

[1] https://cran.r-project.org/web/packages/sos4R/vignettes/sos4R.pdf




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

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