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

GeoJSON to SLF attribute conversion #149

Open
c0c0n3 opened this issue Jan 29, 2019 · 3 comments
Open

GeoJSON to SLF attribute conversion #149

c0c0n3 opened this issue Jan 29, 2019 · 3 comments
Assignees
Labels
enhancement ideas food for thought

Comments

@c0c0n3
Copy link
Member

c0c0n3 commented Jan 29, 2019

The location attribute gets stored as GeoJSON. When a client queries the attribute, QL returns GeoJSON. We discussed the possibility of having clients specify the format of the returned location value which could be either GeoJSON or NGSI SLF. This would work as follows:

  1. Client specifies format through header or query param.
  2. If specified format = GeoJSON, QL simply returns the content as is.
  3. If specified format = SLF and stored location GeoJSON can be converted to SLF, QL converts the value on the fly before returning it.
  4. If specified format = SLF and stored location GeoJSON cannot be converted to SLF, QL returns the GeoJSON content as is.

Note we need (4) since SLF only offers a subset of the geographical features supported by GeoJSON.

@c0c0n3 c0c0n3 added the ideas food for thought label Jan 30, 2019
@github-actions
Copy link
Contributor

Stale issue message

@daminichopra
Copy link
Contributor

daminichopra commented Oct 11, 2021

Hi @c0c0n3 @chicco785 , I would to investigate on this issue. Please assign. Also, if any reference related to NGSI SLF. Thank you !!

@c0c0n3
Copy link
Member Author

c0c0n3 commented Jan 4, 2022

Hi @daminichopra thanks for offering to work on this!

any reference related to NGSI SLF.

You should read the "Geospatial properties of entities" section of the v2 spec.

Also our SLF implementation comes w/ lots of Python docs and diagrams if memory serves, so you could have a look at that too if it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ideas food for thought
Projects
None yet
Development

No branches or pull requests

3 participants