#33783 closed New feature (fixed)

Add __isempty spatial lookup.

Reported by: Nicolas Noé Owned by: Claude Paroz
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Claude Paroz Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Just like there is a isvalid spatial lookup (https://docs.djangoproject.com/en/4.0/ref/contrib/gis/geoquerysets/#isvalid), it would be nice to have isempty.

PostGIS covers us: https://postgis.net/docs/ST_IsEmpty.html

Change History (6)

comment:1 by Mariusz Felisiak, 23 months ago

MySQL and MariaDB doesn't support GIS empty values such as POINT EMPTY, it's probably also not supported on Oracle. It looks like it's only supported on PostGIS and SpatiaLite.

comment:2 by Mariusz Felisiak, 23 months ago

Cc: Claude Paroz added
Summary: isempty spatial lookupAdd __isempty spatial lookup.
Triage Stage: UnreviewedAccepted

comment:3 by Mariusz Felisiak, 23 months ago

Version: 4.0dev

comment:4 by Claude Paroz, 16 months ago

Has patch: set
Owner: changed from nobody to Claude Paroz
Status: newassigned

comment:5 by Mariusz Felisiak, 16 months ago

Triage Stage: AcceptedReady for checkin

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 16 months ago

Resolution: fixed
Status: assignedclosed

In 2a14b8df:

Fixed #33783 -- Added IsEmpty GIS database function and isempty lookup on PostGIS.

Note: See TracTickets for help on using tickets.
Back to Top