Answer the question
In order to leave comments, you need to log in
How to determine whether a point belongs to a polygon in postgresql?
Good afternoon. A difficulty arose. Help decide. I have a table (point) in which the coordinates of points (geometry) are stored. There is also a second table (borough) that stores the coordinates of the polygons (geom). The next question is: Calculate for each polygon, the number of points lying in it. I know to use one of the following ST_Within or ST_Contains functions. But unfortunately I can not figure it out ((
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question