Skip to content

query not working on geojson #316

@jmpmcmanus

Description

@jmpmcmanus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions