Skip to content

Commit 8af276b

Browse files
committed
Remove support for geo_point defined bounds
Now only geo_shape bounds are supported
1 parent aa36091 commit 8af276b

File tree

18 files changed

+41
-233
lines changed

18 files changed

+41
-233
lines changed

docs/reference/query-languages/esql/_snippets/functions/parameters/st_geohash.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/parameters/st_geohex.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/parameters/st_geotile.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/types/st_geohash.md

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/types/st_geohex.md

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/types/st_geotile.md

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/kibana/definition/functions/st_geohash.json

Lines changed: 1 addition & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/kibana/definition/functions/st_geohex.json

Lines changed: 1 addition & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/kibana/definition/functions/st_geotile.json

Lines changed: 1 addition & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/qa/testFixtures/src/main/resources/spatial-grid.csv-spec

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -169,36 +169,6 @@ count:long | centroid:geo_point | geohashString:keywo
169169
2 | POINT (16.706149326637387 32.37822346854955) | sm
170170
;
171171

172-
gridGeohashStatsByPointsBounds
173-
required_capability: spatial_grid
174-
175-
FROM airports
176-
| EVAL points = ["POINT(0.0 30.0)", "POINT(12.0 60.0)"]
177-
| EVAL geohash = ST_GEOHASH(location, 2, TO_GEOPOINT(points))
178-
| WHERE geohash IS NOT NULL
179-
| STATS
180-
count = COUNT(*),
181-
centroid = ST_CENTROID_AGG(location)
182-
BY geohash
183-
| EVAL geohashString = ST_GEOHASH_TO_STRING(geohash)
184-
| KEEP count, centroid, geohashString
185-
| SORT count DESC, geohashString ASC
186-
;
187-
188-
count:long | centroid:geo_point | geohashString:keyword
189-
19 | POINT (6.360728044651057 47.94084087577894) | u0
190-
10 | POINT (15.350638423115015 47.80751353036612) | u2
191-
9 | POINT (18.5217544157058 42.1394603792578) | sr
192-
8 | POINT (6.351574736181647 51.8981519783847) | u1
193-
7 | POINT (5.268637698941997 42.747250193330856) | sp
194-
7 | POINT (17.092350951528974 53.365471504096476) | u3
195-
5 | POINT (16.2651440910995 58.812188878655434) | u6
196-
4 | POINT (7.7012718468904495 36.39783004182391) | sn
197-
3 | POINT (14.222751930356026 37.168446206487715) | sq
198-
3 | POINT (7.318722177296877 59.788265260867774) | u4
199-
2 | POINT (16.706149326637387 32.37822346854955) | sm
200-
;
201-
202172
gridGeohashStatsByWhereUK
203173
required_capability: spatial_grid
204174

@@ -439,27 +409,6 @@ count:long | centroid:geo_point | geotileString:keywor
439409
79 | POINT (24.516750878736943 23.93036561181085) | 3/4/3
440410
;
441411

442-
gridGeotileStatsByPointsBounds
443-
required_capability: spatial_grid
444-
445-
FROM airports
446-
| EVAL points = ["POINT(0.0 30.0)", "POINT(12.0 60.0)"]
447-
| EVAL geotile = ST_GEOTILE(location, 3, TO_GEOPOINT(points))
448-
| WHERE geotile IS NOT NULL
449-
| STATS
450-
count = COUNT(*),
451-
centroid = ST_CENTROID_AGG(location)
452-
BY geotile
453-
| EVAL geotileString = ST_GEOTILE_TO_STRING(geotile)
454-
| KEEP count, centroid, geotileString
455-
| SORT count DESC, geotileString ASC
456-
;
457-
458-
count:long | centroid:geo_point | geotileString:keyword
459-
100 | POINT (18.10569669920951 50.40505832391791) | 3/4/2
460-
79 | POINT (24.516750878736943 23.93036561181085) | 3/4/3
461-
;
462-
463412
gridGeotileStatsByWhereUK
464413
required_capability: spatial_grid
465414

@@ -762,36 +711,6 @@ POINT (13.1442589810713 32.6691695504993) | 813fbffffffffff | 813fbffffffffff
762711
POINT (118.12696884672 24.537192570557) | 8141bffffffffff | null
763712
;
764713

765-
gridGeohexStatsByPointsBounds
766-
required_capability: spatial_grid
767-
768-
FROM airports
769-
| EVAL points = ["POINT(0.0 30.0)", "POINT(12.0 60.0)"]
770-
| EVAL geohex = ST_GEOHEX(location, 1, TO_GEOPOINT(points))
771-
| WHERE geohex IS NOT NULL
772-
| STATS
773-
count = COUNT(*),
774-
centroid = ST_CENTROID_AGG(location)
775-
BY geohex
776-
| EVAL geohexString = ST_GEOHEX_TO_STRING(geohex)
777-
| KEEP count, centroid, geohexString
778-
| SORT count DESC, geohexString ASC
779-
;
780-
781-
count:long | centroid:geo_point | geohexString:keyword
782-
22 | POINT (7.250850197689777 48.21363834643059) | 811fbffffffffff
783-
17 | POINT (-0.7606179875266903 52.86413913565304) | 81197ffffffffff
784-
7 | POINT (2.475211258445467 41.32352174592337) | 81397ffffffffff
785-
6 | POINT (11.75047050230205 42.351422344800085) | 811ebffffffffff
786-
5 | POINT (18.766171680763364 59.15833930950612) | 8108bffffffffff
787-
5 | POINT (11.404999259859324 54.510593589395285) | 811f3ffffffffff
788-
4 | POINT (5.167026452254504 59.81037143385038) | 8109bffffffffff
789-
4 | POINT (-1.1871178611181676 35.77457194332965) | 81383ffffffffff
790-
3 | POINT (-1.1497433669865131 45.83295159973204) | 81187ffffffffff
791-
3 | POINT (9.197671310976148 36.29719984252006) | 81387ffffffffff
792-
1 | POINT (13.144258903339505 32.66916951164603) | 813fbffffffffff
793-
;
794-
795714
gridGeohexStatsByWhereUK
796715
required_capability: spatial_grid
797716

0 commit comments

Comments
 (0)