opengeospatial / sensorthings

The official web site of the OGC SensorThings API standard specification.
135 stars 29 forks source link

Multiple Scales of Locations (Best Practice) #104

Open hylkevds opened 4 years ago

hylkevds commented 4 years ago

Hi All,

Recently I've been experimenting with the NUTS regions from eurostat. These regions are available in 5 different scales: 1:60M to 1:1M, the lowest resolution is only about 1.1MB for the entire data set, the highest is about 40MB. Since, depending on the use case and zoom level, one might want a different scale I figured it would make sense to have them all available.

How I currently have it set it up:

When displaying the regions on a map, I fetch the Things, with a filtered expand on the Locations, based on the scale:

https://lubw-frost.docker01.ilt-dmz.iosb.fraunhofer.de/v1.1/Things?
    $count=true&
    $filter=properties/type eq 'NUTS' and properties/level eq 0&
    $expand=Locations($filter=properties/scale eq 60;$select=name,properties,encodingType,location)

To view this on a map, have a look at: https://wg-brgm.docker01.ilt-dmz.iosb.fraunhofer.de/servlet/is/216/

Has anyone else experimented with Locations with multiple scales?