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

odata geospatial properties #48

Closed
srepmub opened this issue Nov 13, 2023 · 3 comments
Closed

odata geospatial properties #48

srepmub opened this issue Nov 13, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@srepmub
Copy link
Contributor

srepmub commented Nov 13, 2023

hi!

we are trying to make use of geospatial queries, as described here:

https://www.odata.org/blog/geospatial-properties/

it seems though that the "geography'..'" syntax is not yet accepted, resulting in:

odata_query.exceptions.ParsingException: Failed to parse at: Token(type='STRING', value=String(val=''), lineno=1, index=38)

working around this, calling geo.intersects() in a query results in the following:

odata_query.exceptions.UnknownFunctionException: Unknown function: 'intersects'

(in grammar.py it compares 'intersects' with 'geo.intersects', so no match..?)

working around this as well, it appears there is no conversion to django geo calls as of yet (no djangofunc_intersects?).

is it correct to say that geospatial queries are not really supported at the moment? :)

@srepmub
Copy link
Contributor Author

srepmub commented Nov 13, 2023

(I'd be interested in working on a PR, but thought I'd check first ;))

@OliverHofkens
Copy link
Member

Hi @srepmub!
Indeed, geospatial syntax and queries aren't implemented yet.
Feel free to give it a shot, we appreciate it!

@OliverHofkens
Copy link
Member

Merged and released! Currently still under a beta version 0.10.0b1 since I'm a bit paranoid about breaking people's code with the system library stuff. But at least we can start testing this live now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants