- Categories:
ST_ GEOMFROMGEOHASH¶
Returns a GEOMETRY object for the polygon that represents the boundaries of a geohash.
地理哈希中的字符数决定了精度。从地理哈希末尾删除字符会导致地理哈希精度降低,并且标识较大的矩形区域。
The optional precision argument specifies the precision to use for the input geohash. For example, passing 5
for precision specifies that the function uses the first 5 characters of the input geohash.
- See also:
语法
实参
必填:
geohash实参必须是地理哈希。
可选:
precisionThe number of characters to use in the geohash. You can specify a value from
1to20.By default,
precisionis20, which produces a geohash that is 20 characters long.
返回
Returns a value of type GEOMETRY.
示例
以下示例返回地理哈希的 GEOMETRY 对象:
以下示例返回不太精确的地理哈希的 GEOMETRY 对象。函数使用输入地理哈希中的前 6 个字符: