planetfederal / geodroid-server

Apache License 2.0
3 stars 4 forks source link

filter testing app #47

Closed ischneider closed 10 years ago

ischneider commented 10 years ago

@jdeolive, first cut at this. Some filters are hard-coded to demonstrate specific functionality. For the spatial filters, I found it hard to get quality examples and thought it would be more fun/enlightening to allow user-entered geometries. So for the spatial filters, select a tool and draw a feature. Then change the spatial filter and see what happens.

I took the other examples straight from the geoserver page. Two don't work:

  1. UNEMPLOY / (EMPLOYED + UNEMPLOY) > 0.07
  2. IN ('states.1', 'states.12')

For (1), looks like math is totally not implemented. For (2), IIRC, geojson yields no id for features

Obviously it would be hard to test 'equals' without having the example geometry but I figured one approach would be to use the features endpoint to get it.

Thoughts?

jdeolive commented 10 years ago

Nice! Looks good to me.

Re math filters what do you think that will take to implement? I imagine not too much work?

For (2) I thought we were including id's as just the current index the cursor is at. Could be wrong. Perhaps we want to use shapefile or another format that has reliable identifiers.

jdeolive commented 10 years ago

Ha, nevermind re math filters, you already did it :)