Created
January 28, 2018 17:50
-
-
Save gannebamm/5aa8cd856ce8a3d53848a39258a62df2 to your computer and use it in GitHub Desktop.
Query for getting the number of red lines which are crossed by each black line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select SUM(red.n), black.* | |
from red, black | |
where st_crosses(red.geometry, black.geometry) | |
group by black.ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment