> ## 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.

# aggregate_min_max_geometry

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/aggregate_min_max_geometry.rs#L25-L36)
pub async fn [aggregate\_min\_max\_geometry](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/aggregate-min-max-geometry.md#method.aggregate_min_max_geometry)( \&self, table\_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), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AggregateMinMaxGeometryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxGeometryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Calculate the min and max x- and y- coordinates of a geospatial geometry column in a datasetCalculates and returns the minimum and maximum x- and y-coordinates of a particular geospatial geometry column in a table.

##### Arguments

<ul>
  <li>`table_name` - Name of the table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard name resolution rules.</li>
  <li>`column_name` - Name of a geospatial geometry column on which the min-max will be calculated.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/aggregate_min_max_geometry.rs#L53-L71)
pub async fn [aggregate\_min\_max\_geometry\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/aggregate-min-max-geometry.md#method.aggregate_min_max_geometry_with_opts)( \&self, table\_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), options: [AggregateMinMaxGeometryRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxGeometryRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AggregateMinMaxGeometryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxGeometryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Calculate the min and max x- and y- coordinates of a geospatial geometry column in a datasetCalculates and returns the minimum and maximum x- and y-coordinates of a particular geospatial geometry column in a table.

##### Arguments

<ul>
  <li>`table_name` - Name of the table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard name resolution rules.</li>
  <li>`column_name` - Name of a geospatial geometry column on which the min-max will be calculated.</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/aggregate_min_max_geometry.rs#L74-L85)
pub async fn [aggregate\_min\_max\_geometry\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/aggregate-min-max-geometry.md#method.aggregate_min_max_geometry_raw)( \&self, request: &[AggregateMinMaxGeometryRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxGeometryRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AggregateMinMaxGeometryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxGeometryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

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

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/aggregate_min_max_geometry.rs#L89-L101)
pub async fn [aggregate\_min\_max\_geometry\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/aggregate-min-max-geometry.md#method.aggregate_min_max_geometry_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[AggregateMinMaxGeometryRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxGeometryRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AggregateMinMaxGeometryResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxGeometryResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`AggregateMinMaxGeometryRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxGeometryRequest) 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.