Skip to content
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

Multiple Scales of Locations (Best Practice) #104

Open
hylkevds opened this issue Jul 14, 2020 · 0 comments
Open

Multiple Scales of Locations (Best Practice) #104

hylkevds opened this issue Jul 14, 2020 · 0 comments
Labels
help wanted informational Useful information to share with the group question tbd to be discussed

Comments

@hylkevds
Copy link
Contributor

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:

  • Each NUTS region has a Thing
  • Each of these Things has 5 Locations
  • Each location has its scale stored in properties/scale

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?

@liangsteve liangsteve added help wanted informational Useful information to share with the group question tbd to be discussed labels Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted informational Useful information to share with the group question tbd to be discussed
Projects
None yet
Development

No branches or pull requests

2 participants