-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datastream Type. #2046
Comments
Indeed, currently FROST does not validate if the encoding of Observation fits the observationType in the Datastream. FROST also doesn't validate the observationType valuecode itself. The spec states the that observationType valuecode should be the full url: https://docs.ogc.org/is/18-088/18-088.html#tab-value-codes-obstypes In STA Version 2 this will change. The ObservationType will be removed and replaced with a resultType field that uses SWE-Common to exactly describe the result. This will allow much more flexibility and precision in the description of the result and obsolete MultiDatastream. |
Interesting!!!
Status
There are only several basic types in Table 12. Multidatastream however supposes the usage of Custom Data. So I can decide how many and which columns and of which type, do I have in Multidatastream. If, the Observation in future could be "custom" to obsolete MultiDatastream, then I can not imagine,, that I must define type of my records in some webpage, like www.opengis.net and then to use some URL, provided by www.opengis.net as value for "resultType". Thank You. |
The URL http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement resolves for me, and redirects to http://defs.opengis.net/vocprez/object?uri=http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement SWE-Common is a powerful schema definition for describing scientific result values. |
Yes, Thank You. URL works now. I used really wrong URL(without '-'). I was trying other URLs in https://docs.ogc.org/is/18-088/18-088.html and they did not work. For example like this one: http://www.opengis.net/spec/iot_sensing/1.1/req/datamodel Now, all(or at least many) different URLs redirect to the main URL of the Dokument. Possibly, it was a reason, why I thought, that also ObservationType URL did not work. Regarding SWE-Common, Yes. If it will not be URL anymore and the type of record - described using some tool, like SWE-Common, then Yes, Multidatastream could be eliminated from STA. Thank You. |
The type of a variable is very important.
Example :
I create Datastream to save Temperatures. It should be double values. If someone saves some string value e g "abc" in my datastream,
I have a problem. It could also have a problem, and I really do have this problem, if someone saves me eg a string representation like "21.1" in my Datastream.
In STA, there is observationType property of a Datastream. Unfortunately, It is not obligatory Property(at least in Frost implementation). One can initialise Datastreaym with Observationtype "AbraCadabra".
Unusually, the Property is called "Observationtype", however, it is a property of the whole Datastream. so all observations. Would it not be more logical to call it DatastreamType? Otherwise would it be more Reasonable to allow Datastream with arbitrary Observationtypes, then the Observationtype should be really a property of Observation. Not of a datastream.
In STA there is Table 12 with all possible ObservationTypes. It is unclear to me, what should observationType be:
OM_Measurement
or
http://www.opengis.net/def/observationType/OGCOM/2.0/OM_Measurement
But, anyway, it would be good to check, what type of Observation, an client Application try to submitt into the Frost Database via RestAPI Request or MQTT Message. String or double.
It would be also nice to return Error, if "String" is submitted to double Datastream.
Would it be reasonable to save data in clean manner? So, if it is specified as double, then no URL or strings must be accepted?
Greetings.
Pavel
The text was updated successfully, but these errors were encountered: