hobuinc / greyhound

Greyhound is a point cloud streaming server. It should be considered deprecated for now. Use Entwine and Entwine Point Tile directly if you just want to serve point cloud web services.
https://greyhound.io
Apache License 2.0
131 stars 51 forks source link

Filter argument sensative to quote type #56

Closed Hisol closed 6 years ago

Hisol commented 6 years ago

I am passing a filter in the Greyhound query to select just a subset of point classifications. If the URL is sent as

&filter={'Classification': {'$in': [1, 2]}}

I get a 400 error

Error during parsing: * Line 1, Column 21 Missing '}' or object member name

But if I change the quotes around the operator to double quotes, it is happy

filter={"Classification": {"$in": [1, 2]}}

connormanning commented 6 years ago

The filter parameter must be valid JSON, which does require double quotes around strings. This should probably be stated in the docs - will add.

Hisol commented 6 years ago

thanks for the update