Reference GIS QuerySet API Reference Spatial Lookups
Availability: MariaDB, MySQL, PostGIS, Oracle, SpatiaLite Tests if the geometry is valid.
743 sections in Django 6.0 Search all versions →
Reference GIS QuerySet API Reference Spatial Lookups
Availability: MariaDB, MySQL, PostGIS, Oracle, SpatiaLite Tests if the geometry is valid.
Reference GIS QuerySet API Reference Spatial Lookups
New in Django 6.0. Availability: PostGIS, Oracle 23c+, MariaDB, MySQL, SpatiaLite Returns the geometry type of the geometry field.
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, Oracle, MariaDB, MySQL, SpatiaLite, PGRaster (Bilateral) Tests if the geometry field spatially overlaps the lookup geometry.
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, MariaDB, Oracle, SpatiaLite, PGRaster (Conversion) Tests if the geometry field is spatially related to the lookup geometry by the values given in the given pattern.
Reference GIS QuerySet API Reference Spatial Lookupsrelate
On these spatial backends the intersection pattern is a string comprising nine characters, which define intersections between the interior, boundary, and exterior of the geometry field and the lookup geometry.
Reference GIS QuerySet API Reference Spatial Lookupsrelate
Here the relation pattern is comprised of at least one of the nine relation strings: TOUCH, OVERLAPBDYDISJOINT, OVERLAPBDYINTERSECT, EQUAL, INSIDE, COVEREDBY, CONTAINS, COVERS, ON, and ANYINTERACT. Multiple strings may be combined with the logical Boolean operator OR, for example, 'inside+touch'.
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, Oracle, MariaDB, MySQL, SpatiaLite Tests if the geometry field spatially touches the lookup geometry.
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, Oracle, MariaDB, MySQL, SpatiaLite, PGRaster (Bilateral) Tests if the geometry field is spatially within the lookup geometry.
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, PGRaster (Conversion) Tests if the geometry field’s bounding box is strictly to the left of the lookup geometry’s bounding box. Example: PostGIS equivalent:
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, PGRaster (Conversion) Tests if the geometry field’s bounding box is strictly to the right of the lookup geometry’s bounding box. Example: PostGIS equivalent:
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, PGRaster (Bilateral) Tests if the geometry field’s bounding box overlaps or is to the left of the lookup geometry’s bounding box. Example: PostGIS equivalent:
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, PGRaster (Bilateral) Tests if the geometry field’s bounding box overlaps or is to the right of the lookup geometry’s bounding box. Example: PostGIS equivalent:
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, PGRaster (Conversion) Tests if the geometry field’s bounding box overlaps or is above the lookup geometry’s bounding box. Example: PostGIS equivalent:
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, PGRaster (Conversion) Tests if the geometry field’s bounding box overlaps or is below the lookup geometry’s bounding box. Example: PostGIS equivalent:
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, PGRaster (Conversion) Tests if the geometry field’s bounding box is strictly above the lookup geometry’s bounding box. Example: PostGIS equivalent:
Reference GIS QuerySet API Reference Spatial Lookups
Availability: PostGIS, PGRaster (Conversion) Tests if the geometry field’s bounding box is strictly below the lookup geometry’s bounding box. Example: PostGIS equivalent:
Reference GIS QuerySet API Reference
Availability: PostGIS, Oracle, MariaDB, MySQL, SpatiaLite, PGRaster (Native) For an overview on performing distance queries, please refer to the distance queries introduction.
Reference GIS QuerySet API Reference Distance Lookups
Returns models where the distance to the geometry field from the lookup geometry is greater than the given distance value.
Reference GIS QuerySet API Reference Distance Lookups
Returns models where the distance to the geometry field from the lookup geometry is greater than or equal to the given distance value.
Reference GIS QuerySet API Reference Distance Lookups
Returns models where the distance to the geometry field from the lookup geometry is less than the given distance value.