1.1.1.1 计算Polygon面积
语法
•
功能
•
input
•
output
•
面积 Double
example
select
st_PolygonArea(
st_geomFromWKT(
'POLYGON (
(114.13797 22.60802,114.13213
22.60813,114.12716 2.61094,114.12928 22.61599,114.13201 22.62031, 114.13797
22.60802))'
)
)
1.1.1.2 获取基于point扩展的MBR
语法
•
功能
•
input
•
•
output
•
example
select
st_geoHashFromPoint(order_position, 6) from
common_table
1.1.1.3 获取表中某一个几何对象列集合构成的MBR
功能
•
input
•
•
output
•
example
select
st_getWholeMBR(collect_list(block)) from
polygon_table
1.1.1.4 GeoHash String 转MBR
语法
•
功能
•
input
•
output
•
example
select st_mbrFromGeoHash(geohash) from common_table_with_geohash
1.1.1.5 查询point所在的Geohash格子
语法:
st_geoHashFromPoint(point,
hashLength)
功能
•
input
•
•
output
•
example
select st_geoHashFromPoint(order_position,
6) from common_table