|
@@ -616,6 +616,42 @@ location:geo_point | city_location:geo_point | count:long
|
|
|
POINT (0 0) | POINT (0 0) | 1
|
|
|
;
|
|
|
|
|
|
+airportCityLocationPointIntersectionCentroidGroups
|
|
|
+required_capability: st_intersects
|
|
|
+
|
|
|
+FROM airports_mp
|
|
|
+| WHERE ST_INTERSECTS(location, city_location)
|
|
|
+| STATS location=ST_CENTROID_AGG(location), city_location=ST_CENTROID_AGG(city_location), count=COUNT() BY country
|
|
|
+;
|
|
|
+
|
|
|
+location:geo_point | city_location:geo_point | count:long | country:k
|
|
|
+POINT (0 0) | POINT (0 0) | 1 | Atlantis
|
|
|
+;
|
|
|
+
|
|
|
+airportCityLocationPointIntersectionNullCentroid
|
|
|
+required_capability: st_intersects
|
|
|
+required_capability: spatial_centroid_no_records
|
|
|
+
|
|
|
+FROM airports
|
|
|
+| WHERE ST_INTERSECTS(location, city_location)
|
|
|
+| STATS location=ST_CENTROID_AGG(location), city_location=ST_CENTROID_AGG(city_location), count=COUNT()
|
|
|
+;
|
|
|
+
|
|
|
+location:geo_point | city_location:geo_point | count:long
|
|
|
+null | null | 0
|
|
|
+;
|
|
|
+
|
|
|
+airportCityLocationPointIntersectionNullCentroidGroups
|
|
|
+required_capability: st_intersects
|
|
|
+
|
|
|
+FROM airports
|
|
|
+| WHERE ST_INTERSECTS(location, city_location)
|
|
|
+| STATS location=ST_CENTROID_AGG(location), city_location=ST_CENTROID_AGG(city_location), count=COUNT() BY country
|
|
|
+;
|
|
|
+
|
|
|
+location:geo_point | city_location:geo_point | count:long | country:k
|
|
|
+;
|
|
|
+
|
|
|
###############################################
|
|
|
# Tests for ST_DISJOINT on GEO_POINT type
|
|
|
|
|
@@ -1948,14 +1984,15 @@ wkt:keyword | pt:cartesian_point
|
|
|
|
|
|
cartesianCentroidFromAirportsAfterPointContainsPolygonPredicate
|
|
|
required_capability: st_contains_within
|
|
|
+required_capability: spatial_centroid_no_records
|
|
|
|
|
|
FROM airports_web
|
|
|
| WHERE ST_CONTAINS(location, TO_CARTESIANSHAPE("POLYGON((4700000 1600000, 4800000 1600000, 4800000 1700000, 4700000 1700000, 4700000 1600000))"))
|
|
|
| STATS centroid=ST_CENTROID_AGG(location), count=COUNT()
|
|
|
;
|
|
|
|
|
|
-centroid:cartesian_point | count:long
|
|
|
-POINT (NaN NaN) | 0
|
|
|
+centroid:cartesian_point | count:long
|
|
|
+null | 0
|
|
|
;
|
|
|
|
|
|
cartesianPointContainsPolygonPredicate
|