Attic for polygon-query: implemented, not yet tested.