koopjs / winnow

Deprecated
Apache License 2.0
90 stars 18 forks source link

Fix and test ST_Within. #121

Closed rgwozdz closed 5 years ago

rgwozdz commented 5 years ago

I put the ST_Within function (our custom function that gets added to alasql) under direct test and found it was not functioning as expected. It was suppose to check if a feature was completely within a target geometry (the geometry filter). But it was checking the opposite - if a filter was within a feature.

This PR fixes and demonstrates with tests.