Why does st_intersection return non-polygons?
问题 I have two polygon layers. I want to run st_intersection on them, to give the result of the areas where they overlap as a new layer. The new layer should contain the attributes from both input layers. I found this image which seems to illustrate my desired end results. My two input layers are both polygons: SELECT st_geometrytype(geom), COUNT(*) FROM a GROUP BY st_geometrytype(geom) -- Result is 1368 st_polygons SELECT st_geometrytype(geom), COUNT(*) FROM b GROUP BY st_geometrytype(geom) --