Ir al contenido

Devuelve un objeto GEOMETRY para el polígono que representa los límites de un geohash.

ST_GEOMFROMGEOHASH(<geohash>)
Argumentos Descripción
<geohash> El argumento debe ser un geohash.

Geometría.

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)) │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘