What is the unit of measurement used in MySQL's spatial Buffer call?

对着背影说爱祢 提交于 2019-12-12 10:10:45

问题


The Buffer call is formatted Buffer(g,d).

g is a geometry value (e.g. point, linestring, and polygon).

d is a distance.

What unit of measurement is d using? Meters? Miles? Kilometers?


回答1:


There aren't units here, or in any of the spatial analysis functions.

These functions are commonly used with geometriy values with coordinates using degrees latitude and longitude, but the spatial capabilities can be used with data from any arbitrary grid coordinate system, and the server's capabilities don't have any awareness of the nature of the particular "space" being mapped.

The distance, then, would be in "units."

The units would be whatever units your coordinates are also using. If the coordinates are in feet, the distance is expressed in feet; if the distance is in degrees lat/long, you'd need to express the desired buffer distance in degrees.



来源:https://stackoverflow.com/questions/26947376/what-is-the-unit-of-measurement-used-in-mysqls-spatial-buffer-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!