Wrong variable name in _get_features_in_boundary()
In function _get_features_in_boundary() the variable where_statement is not a WHERE-statement for the SQL query. This needs to be renamed and the statement should be indented in the SQL query.
Edited by Danijel Schorlemmer