#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 (7)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
| Cc: | added | 
|---|---|
| Summary: | isempty spatial lookup → Add __isempty spatial lookup. | 
| Triage Stage: | Unreviewed → Accepted | 
comment:3 by , 3 years ago
| Version: | 4.0 → dev | 
|---|
comment:5 by , 3 years ago
| Triage Stage: | Accepted → Ready for checkin | 
|---|
  Note:
 See   TracTickets
 for help on using tickets.
    
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.