MySQL GeoSpatial function for ST_Distance_Spheroid? Metric used in return Type of GLength?

醉酒当歌 提交于 2019-12-08 06:55:28

Since MySql 5.1 there are provided GIS functions distance_sphere() and distance_spheroid() functions. There is an explanation of the parametres and how to use them.

The length that is returned by GLength() function can be in either unit the coordinates have. So if the coordinates are in terms of degree there is no meaning of a length metric in degrees. To fix this problem the projections are used.

For WGS84 projection SRID = 4326 but for Spherical Mercator projection, SRID = 900913, which is compatible with the projection used by Google Maps. Spherical Mercator projection Mercator projection uses meters so the GLength function will return the length in terms of meters. This passage is helpful for projections in MySql.

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