7 Aug
2021
7 Aug
'21
2:51 p.m.
Hallo zusammen, ich stehe gerade etwas auf dem Schlauch. Dieser QUERY gibt mir alle Polygone bei denen es innenliegende POI gibt und deren Zahl: SELECT s.site_id,count(*) FROM osm_poi_siterel_with_geom r JOIN osm_poi_siterel_with_geom s ON ST_Within(r.geom, s.geom) WHERE s.id != r.id AND s.tags -> 'tourism' = 'camp_site' group by s.site_id; Was ich aber eigentlich abfragen möchte sind alle Polygone bei denen es _nur_ innenliegende POI gibt. Wie geht das? Gruss Sven -- "If you don't make lower-resolution mapping data publicly available, there will be people with their cars and GPS devices, driving around with their laptops" (Tim Berners-Lee predicting Openstreetmap) /me is giggls@ircnet, http://sven.gegg.us/ on the Web