#22423: Geodjango spatial functions should leverage mysql 5.6 spatial functions.
-----------------------------+---------------------------------------------
     Reporter:  visu         |                    Owner:  visu
         Type:  New feature  |                   Status:  new
    Component:  GIS          |                  Version:  master
     Severity:  Normal       |               Resolution:
     Keywords:  gis, mysql,  |             Triage Stage:  Ready for checkin
    Has patch:  1            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+---------------------------------------------
Changes (by Tim Graham):

 * stage:  Accepted => Ready for checkin


Old description:

> Hi,
>
> Starting from 5.6 version, mysql implemented spatial functions properly.
> (ie, similar to postgis, mysql also supports ST_Contains, ST_Within and
> other ST_ queries.)
> http://dev.mysql.com/doc/refman/5.6/en/functions-for-testing-spatial-
> relations-between-geometric-objects.html#function_st-contains
>
> Geodjango currently implements poly__contains and other queries for mysql
> as "MBRContains" instead of "Contains"
> https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoquerysets/#std
> :fieldlookup-gis-contains
>
> This needs to be fixed.
> related Ticket :
>
> https://code.djangoproject.com/ticket/13430

New description:

 MySQL 5.6 and later implements spatial functions properly. (i.e., similar
 to PostGIS, mysql also supports `ST_Contains`, `ST_Within` and other `ST_`
 queries.) http://dev.mysql.com/doc/refman/5.6/en/functions-for-testing-
 spatial-relations-between-geometric-objects.html#function_st-contains

 Geodjango currently implements `poly__contains` and other queries for
 mysql as "MBRContains" instead of "Contains"
 https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoquerysets/#std
 :fieldlookup-gis-contains

 related Ticket: #13430

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22423#comment:12>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.bf146012cd78754af9d8121934319076%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to