#28696: Add the ability to natively filter geometries by geom_type
-------------------------------------+-------------------------------------
Reporter: Geoffrey Fairchild | Owner: Ahmed
| Ibrahim
Type: New feature | Status: assigned
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
Ahmed, you'll need to define [https://docs.djangoproject.com/en/5.1/howto
/custom-lookups/#a-transformer-example a specialized transform] for this
to work similar to the `Func` discussed in comment:1. To deal with Oracle
you'll have to define an `as_oracle` method that
[https://github.com/django/django/blob/aa5293068782dfa2d2173c75c8477f58a9989942/django/contrib/gis/db/models/functions.py#L435-L437
uses a] `CASE/WHEN` to map back
[https://datacadamia.com/oracle_spatial/geometry#sdo_gtype the integer
return values to the proper string types].
--
Ticket URL: <https://code.djangoproject.com/ticket/28696#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070191bcd013bd-ade5d132-f2dd-4708-bbc2-148c914a741b-000000%40eu-central-1.amazonses.com.