> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# filter_by_box_geometry

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/filter_by_box_geometry.rs#L41-L62)
pub async fn [filter\_by\_box\_geometry](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/filter-by-box-geometry.md#method.filter_by_box_geometry)( \&self, table\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), view\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), column\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), min\_x: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), max\_x: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), min\_y: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), max\_y: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[FilterByBoxGeometryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Filter a dataset for geospatial geometry objects intersecting a rectangle’s boundaryCalculates which geospatial geometry objects from a table intersect a rectangular box. The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new resultant set which satisfies the input NAI restriction specification is also created when a `view_name` is passed in as part of the input payload.

##### Arguments

<ul>
  <li>`table_name` - Name of the table on which the bounding box operation will be performed, in \[schema\_name.]table\_name format, using standard name resolution rules. Must be an existing table.</li>
  <li>`view_name` - If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard name resolution rules and meeting table naming criteria. Must not be an already existing table or view.</li>
  <li>`column_name` - Name of the geospatial geometry column to be filtered.</li>
  <li>`min_x` - Lower bound for the x-coordinate of the rectangular box. Must be less than or equal to `max_x`.</li>
  <li>`max_x` - Upper bound for the x-coordinate of the rectangular box. Must be greater than or equal to `min_x`.</li>
  <li>`min_y` - Lower bound for the y-coordinate of the rectangular box. Must be less than or equal to `max_y`.</li>
  <li>`max_y` - Upper bound for the y-coordinate of the rectangular box. Must be greater than or equal to `min_y`.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/filter_by_box_geometry.rs#L95-L123)
pub async fn [filter\_by\_box\_geometry\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/filter-by-box-geometry.md#method.filter_by_box_geometry_with_opts)( \&self, table\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), view\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), column\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), min\_x: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), max\_x: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), min\_y: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), max\_y: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), options: [FilterByBoxGeometryRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[FilterByBoxGeometryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Filter a dataset for geospatial geometry objects intersecting a rectangle’s boundaryCalculates which geospatial geometry objects from a table intersect a rectangular box. The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new resultant set which satisfies the input NAI restriction specification is also created when a `view_name` is passed in as part of the input payload.

##### Arguments

<ul>
  <li>`table_name` - Name of the table on which the bounding box operation will be performed, in \[schema\_name.]table\_name format, using standard name resolution rules. Must be an existing table.</li>
  <li>`view_name` - If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard name resolution rules and meeting table naming criteria. Must not be an already existing table or view.</li>
  <li>`column_name` - Name of the geospatial geometry column to be filtered.</li>
  <li>`min_x` - Lower bound for the x-coordinate of the rectangular box. Must be less than or equal to `max_x`.</li>
  <li>`max_x` - Upper bound for the x-coordinate of the rectangular box. Must be greater than or equal to `min_x`.</li>
  <li>`min_y` - Lower bound for the y-coordinate of the rectangular box. Must be less than or equal to `max_y`.</li>
  <li>`max_y` - Upper bound for the y-coordinate of the rectangular box. Must be greater than or equal to `min_y`.</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/filter_by_box_geometry.rs#L126-L137)
pub async fn [filter\_by\_box\_geometry\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/filter-by-box-geometry.md#method.filter_by_box_geometry_raw)( \&self, request: &[FilterByBoxGeometryRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[FilterByBoxGeometryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`FilterByBoxGeometryRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryRequest) to the `/filter/bybox/geometry` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/filter_by_box_geometry.rs#L141-L153)
pub async fn [filter\_by\_box\_geometry\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/filter-by-box-geometry.md#method.filter_by_box_geometry_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[FilterByBoxGeometryRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[FilterByBoxGeometryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`FilterByBoxGeometryRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.FilterByBoxGeometryRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.