-
Notifications
You must be signed in to change notification settings - Fork 90
Question: How to properly encode a JEXL Geo:Point #1150
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
Comments
I've had a thought - maybe the mandatory GeoJSON conversions defined for NGSI-LD could be exposed within the JEXL parser, resulting in an expression like: "expression": "longitude + \",\" + latitude | toGeoJSON" That would make #1020 obsolete. |
Try this PLAYGROUND
I Agree. Now finally JEXL is able to control explicitly every casting needed. But do we want to force to use JEXL to every user? |
Having into account @mrutid answer, can we close this issue? |
The question is answered, but personally I'd update the documentation with PR #1152 first before closing, but that is just purely a personal preference. Much better to have all this information in the public documentation than just an closed issue IMHO. The real question (for me) is whether Telefónica agree JEXL parsing properly implemented is sufficient to close #1020 unmerged - my thought here is that #1020 becomes unnecessary (and should be withdrawn) if there is sufficient documentation to cover the workaround using JEXL there is no need for an additional flag just to be able to do the same thing using the legacy parser. |
We can keep this issue opened until PR #1152 gets merged. |
I've been looking at the documentation, and there is no complete working example of a GeoJSON
Point
encoding for the JEXL parser:I currently have the following:
Which results in the following:
But instead of:
I would like to have
and I can't see how to encode the quotation marks within the provisioning statement. The closest I can get in the JEXL Playground is single quote which won't work with a
jsonparse
function.The text was updated successfully, but these errors were encountered: