Wie kann ich diese SQL-Abfrage in Ruby Sequel schreiben:Spatial where-Klausel in Ruby Sequel
SELECT
polygon.geometry, count(line)
FROM
polygon, line
WHERE
st_intersects(line.geometry, polygon.geometry)
GROUP BY
polygon.geometry