-
Notifications
You must be signed in to change notification settings - Fork 6
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
Questions about conversion from SOS to SensorThings #79
Comments
The SensorThings API is more navigation-oriented but has many other possibilities. As to start capturing some SmartEmission-specific use of STA and best-practices, I've started a Cookbook as a chapter in the documentation. Not yet finished but may give initial guidance: http://smartplatform.readthedocs.io/en/latest/cookbook.html#sensorthings-api The main three Entities to play with are Getting the last results ( |
I think the scenario can be realized with STA as follows, see also the SE STA Cookbook: Get All Stations with LocationsLong version, with http://data.smartemission.nl/gost/v1.0/Things?$expand=Locations,Datastreams Compact version, only attributes relevant for plotting icons on map. http://data.smartemission.nl/gost/v1.0/Things?$expand=Locations($select=location)&$select=id,name) To get all Stations: repeat the Get Last Observations Per StationGet the last http://data.smartemission.nl/gost/v1.0/Things(131)?$expand=Datastreams/Observations($top=1) Get the Note that we are using GOST STA v0.5. In the upcoming v0.6 many fixes went in for queries. e.g. specifying ISO 8601 time periods may work. |
I'm comparing the SOS and SensorThings API and am quite surprised about the differences. Aren't they supposed to render the same result? http://data.smartemission.nl/sos52n/api/v1/stations http://data.smartemission.nl/gost/v1.0/Locations What I notice that the according to Locations almost all sensors are in Helmond, 1 is in Bilthoven and 4 sensors are at [-2.048575,-2.048575] |
Yes, locations are supposed to be the same and I think they are. Have you read the Cookbook in particular the Paging feature, how objects from SE are mapped to STA Entities and how to query stations (via There are about 181 stations, many not active, many last seen in Helmond. Some give invalid GPS coordinates or no location at all. With STA: each time that sensors vals are updated, its Location is updated as well. |
I know about the paging. I'm doing these 2 requests (so without filtering on project_id's, because I don't know about those): http://data.smartemission.nl/gost/v1.0/Things?$expand=Datastreams,Locations The results of these are attached to this post. |
Confirmed: indeed if I request just the It looks indeed like it counts all Entities returned when expanding both Locations and Datastreams. Will look further into... |
According to the standard The count annotation represents the number of entities in the collection. : http://docs.opengeospatial.org/is/15-078r6/15-078r6.html#37 Looks like the
Opened issue at GOST STA project: gost/server#146. |
The workaround to keep increasing the $skip until no results are returned appears to work. |
@haayman @Hans-Nouwens |
I'm trying to convert from SOS to SensorThings, but some things puzzle me.
Old situation:
What's the SensorThings equivalent for the timeseries/getData call?
The text was updated successfully, but these errors were encountered: