@@ -901,6 +901,40 @@ count:long | centroid:geo_point | geohexString:keywor
9019011 | POINT (13.144258903339505 32.66916951164603) | 813fbffffffffff | POLYGON ((8.974635637589913 30.254840780701706, 9.380676605201614 25.60370257696876, 13.915183885634578 23.45043771532035, 18.351304577591982 25.86678026136113, 18.343416368196834 30.62734805513404, 13.488580338198277 32.87501547725471, 8.974635637589913 30.254840780701706))
902902;
903903
904+ gridGeohexQueryBounds
905+ required_capability: spatial_grid
906+
907+ FROM airports
908+ | EVAL geohex = ST_GEOHEX(location, 1, TO_GEOSHAPE("POLYGON((0.0 30.0, 12.0 30.0, 12.0 60.0, 0.0 60.0, 0.0 30.0))"))
909+ | WHERE ST_GEOHEX_TO_STRING(geohex) == "811f3ffffffffff"
910+ | EVAL geohexString = ST_GEOHEX_TO_STRING(ST_GEOHEX(location, 1))
911+ | KEEP abbrev, location, geohexString
912+ ;
913+
914+ abbrev:keyword | location:geo_point | geohexString:keyword
915+ BRE | POINT (8.7858617703132 53.052287104156) | 811f3ffffffffff
916+ GOT | POINT (12.2938269092573 57.6857493534879) | 811f3ffffffffff
917+ CPH | POINT (12.6493508684508 55.6285017221528) | 811f3ffffffffff
918+ HAM | POINT (10.005647830925 53.6320011640866) | 811f3ffffffffff
919+ TXL | POINT (13.2903090925074 52.5544287044101) | 811f3ffffffffff
920+ ;
921+
922+ gridGeohexByBounds
923+ required_capability: spatial_grid
924+
925+ FROM airports
926+ | WHERE abbrev IN ("RTW", "TIP", "XMN")
927+ | EVAL geohex = ST_GEOHEX(location, 1, TO_GEOSHAPE("POLYGON((0.0 30.0, 12.0 30.0, 12.0 60.0, 0.0 60.0, 0.0 30.0))"))
928+ | EVAL geohexString = ST_GEOHEX_TO_STRING(geohex)
929+ | KEEP abbrev, location, geohex, geohexString
930+ ;
931+
932+ abbrev:keyword | location:geo_point | geohex:long | geohexString:keyword
933+ RTW | POINT (46.035023249891 51.5606456508842) | null | null
934+ XMN | POINT (118.12696884672 24.537192570557) | null | null
935+ TIP | POINT (13.1442589810713 32.6691695504993) | 582085853791125503 | 813fbffffffffff
936+ ;
937+
904938gridGeohexStatsByPointsBounds
905939required_capability: spatial_grid
906940
0 commit comments