#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 Ahmed Ibrahim):

 Replying to [comment:9 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].


 Thank you Simon for your valuable information, this helped me, I will be
 doing the PR soon
-- 
Ticket URL: <https://code.djangoproject.com/ticket/28696#comment:10>
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/01070191bcfbb9e6-4bfd4b6a-dfb8-49c4-b79a-eb0d3c3be2c4-000000%40eu-central-1.amazonses.com.

Reply via email to