Select all geospatial points inside a bounding box

前端 未结 2 683
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 09:46

I have a table called \'flags\' in a MySQL database with 400,000 rows. This table is made up of geospatial points that represent different positions around the UK.

The a

2条回答
  •  梦如初夏
    2021-02-01 10:45

    You can use a quadkey. It reduces the dimensions and make a spatial search easier. I have wrote a php class hilbert-curve @ phpclasses.org. You can also read about quadkey from Microsoft Bing maps tiling. Basically a quadkey helps to find the tile at x,y,z coordinate.Source:http://msdn.microsoft.com/en-us/library/bb259689.aspx.

提交回复
热议问题