douque8855 2011-07-12 19:14
浏览 262

使用多边形或圆形作为搜索来查找纬度/经度

I'm out of my element here so please forgive me if I dont ask this correctly/clearly.

I have a table of users with lat/long for each one.

I get a query from a federal agency that provides either a polygon or a circle like this:

<polygon>38.47,-120.14 38.34,-119.95 38.52,-119.74 38.62,-119.89 38.47,-120.14</polygon>
<circle>32.9525,-115.5527 0</circle>

Given either of these two inputs, I need to return all users within the polygon or circle.

I've looked all over, read all the mysql spatial docs etc. and I am either missing a step or just not grokking the query method.

ANY help would be appreciated!

  • 写回答

3条回答 默认 最新

  • dragonsun00000 2011-07-12 19:36
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大