Questions  /  Working with Data  /  PostGIS

How to assign a column value from a polygon to a point

Learn how to assign a polygon attribute to intersecting points.

Assigning column values from a polygon dataset to the points that intersect them is a very common use case. In order to achieve the desired result, a query like this one using the ST_Intersects PostGIS function is needed:

    SELECT pois.*, 
      FROM table_points pois 
INNER JOIN table_polygons polys 
        ON ST_Intersects(