Reverted the change to the intersects function. Testing what happens when we remove the AsEWKB call. Currently the issue is that ST_Intersects is defined for both geometry and geography types, so ST_Intersects(ST_AsEWKB(blah),ST_AsEWKB(blah2)) throws an ambiguous function exception As ST_AsEWKB returns a bytea and bytea can be autocasted to both geometry and geography types.
reverted and trying casting.
Fixed quotes. Note that these commits are for testing purposes as I don't have a local environment to test just geoslick. Rather it\'s getting tested on a remote machine with play. If this still doesn\'t work, then I'm going to setup a proper environment.
remove As_EWKB in where clause. should be handled differently.