R
R
ruslanyugov2018-07-12 11:51:12
MySQL
ruslanyugov, 2018-07-12 11:51:12

Mysql - How to sample points in a square of terrain by coordinates?

Hello!
Tell me please. There is a table of points with coordinates in the lng and lat fields.
You need to select a list of points in a certain rectangle of the area. those. we have the coordinates of the upper left corner and the lower right corner.
If there are already ready requests, I will be very grateful.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2018-07-12
@Rsa97

And what is the difficulty to write two BETWEEN in WHERE?

I
Ivan, 2018-07-12
@LiguidCool

Yes, correct me if I'm wrong, but lng and lat are conditionally a coordinate grid. Accordingly ,
where x1,y1,x2,y2 are the coordinates of the rectangle, and   x  and   y are the coordinates of the point.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question