Polygon and MultiPolygon geometries as query filters.
Filtering by Area of Interest
To filter by an area of interest, use aPolygon or MultiPolygon geometry as the spatial extent parameter.
Here is how to query Sentinel-2 L2A data over Colorado for a specific day in April 2025.
Spatial filter modes
The spatial filter mode controls the relationship between the filter geometry and each returned datapoint geometry. Containment mode names identify which geometry contains the other.

The three spatial filter modes
Intersects
Theintersects mode is the default for spatial queries. It matches all datapoints whose geometries intersect with the filter geometry.
Output
Filter contains geometry
Thefilter_contains_geometry mode matches datapoints whose geometries are fully contained within the filter geometry.
Output
Geometry contains filter
Thegeometry_contains_filter mode matches datapoints whose geometries fully contain the filter geometry. For example, a small filter geometry within Colorado can match a datapoint whose geometry covers the entire state.
Antimeridian Crossings
In many applications, geometries that cross the antimeridian cause issues. Since such geometries are common in satellite data, Tilebox does take extra care to handle them out of the box correctly, by building the necessary internal spatial index structures in a way that correctly handles antimeridian crossings and pole coverings. To get accurate results also at query time, it’s recommend to use thespherical coordinate reference system
for querying (which is the default), as it correctly handles the non-linearity introduced by the antimeridian in cartesian space.
Coordinate reference system
Geometry intersection and containment checks can either be performed in a 3D spherical coordinate system or in a standard 2D cartesianlat/lon coordinate system.


Spherical coordinate reference system


Cartesian coordinate reference system
Spherical
Thespherical coordinate reference system is the default and recommended choice. It correctly handles antimeridian
crossings and is the most robust option, regardless of how datapoint geometries are cut along the antimeridian.
When querying with the spherical coordinate reference system, Tilebox automatically converts all geometries to
their x, y, z coordinates on the unit sphere and performs the intersection and containment checks in 3D.
Cartesian
Tilebox can also be configured to use a standard 2D cartesianlat/lon coordinate system for geometry intersection and containment checks.
This is done by specifying the cartesian coordinate reference system when querying.
When using the
cartesian coordinate system, antimeridian crossings may cause issues if datapoint geometries
or the query geometry do not properly respect the antimeridian cut. Check out the best practices
for handling geometries to learn more about how to avoid such issues.