Skip to content

Commit 252ee89

Browse files
Geometry query contains mode for both filter directions
1 parent def45bd commit 252ee89

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎apis/datasets/v1/data_access.proto‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ enum SpatialFilterMode {
182182
SPATIAL_FILTER_MODE_UNSPECIFIED = 0;
183183
// Any geometry that intersects the filter geometry is included.
184184
SPATIAL_FILTER_MODE_INTERSECTS = 1;
185-
// Only geometries fully contained within the filter geometry are included.
186-
SPATIAL_FILTER_MODE_CONTAINS = 2;
185+
// Only datapoint geometries fully contained within the filter geometry are included.
186+
SPATIAL_FILTER_MODE_FILTER_CONTAINS_GEOMETRY = 2;
187+
// Only datapoint geometries that fully contain the filter geometry are included.
188+
SPATIAL_FILTER_MODE_GEOMETRY_CONTAINS_FILTER = 3;
187189
}
188190

189191
// SpatialCoordinateSystem specifies the coordinate system in which to perform geometry calculations such as
@@ -201,7 +203,7 @@ enum SpatialCoordinateSystem {
201203
message SpatialFilter {
202204
// The geometry to filter by.
203205
Geometry geometry = 1 [(buf.validate.field).required = true];
204-
// Whether to filter by intersection or containment.
206+
// How to compare datapoint geometries with the filter geometry.
205207
SpatialFilterMode mode = 2 [(buf.validate.field).enum.defined_only = true];
206208
// Coordinate system in which to perform geometry calculations.
207209
SpatialCoordinateSystem coordinate_system = 3 [(buf.validate.field).enum.defined_only = true];

0 commit comments

Comments
 (0)