ST_GEOMFROMGEOHASH (Lakehouse v1)
返回一个 GEOMETRY 对象,表示某个 geohash 边界的多边形。
SQL 语法
Section titled “SQL 语法”ST_GEOMFROMGEOHASH(<geohash>)| 参数 | 说明 |
|---|---|
<geohash> |
参数必须是 geohash。 |
Geometry。
SQL 示例
Section titled “SQL 示例”SELECT ST_GEOMFROMGEOHASH( '9q60y60rhs' ) AS pipeline_geometry;
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐│ st_geomfromgeohash('9q60y60rhs') │├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ POLYGON((-120.66230535507202 35.30029535293579,-120.66230535507202 35.30030071735382,-120.66229462623596 35.30030071735382,-120.66229462623596 35.30029535293579,-120.66230535507202 35.30029535293579)) │└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘