Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. SELECT atlas_polygon.name, points.class, SUM(points.number) AS number, COUNT(points.class) AS location, atlas_polygon.geometry
  2. FROM points
  3. INNER JOIN
  4. atlas_polygon
  5. ON
  6. st_intersects(points.geometry, atlas_polygon.geometry)
  7. GROUP BY atlas_polygon.name, points.class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement