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

query not working on geojson #316

Open
jmpmcmanus opened this issue Apr 2, 2024 · 0 comments
Open

query not working on geojson #316

jmpmcmanus opened this issue Apr 2, 2024 · 0 comments

Comments

@jmpmcmanus
Copy link

Hi = I have not able to query geojson data. Below is an example of geojson data:
geojsonExample

When I run the query: http://localhost:8000/drf/api/pfas_in_tapwater_usgs/?query={properties{pfos,pfoa}}&format=json

it returns the following message: ["properties field is not found"]

I tested it on regular json data and it worked. Below is an example of regular json data I queried:
jsonExample

I ran: http://localhost:8000/drf/api/ahhs_dust_data/?query={pfos_concentration,pfoa_concentration}&format=json

and it returned data. It was able to access the variables under results, but could not access the variables under features in the geojson case?

Thanks!
Jim

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

No branches or pull requests

1 participant