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.
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.