#30649: Implement geometry validation in GIS database backend
-----------------------------+--------------------------------------
     Reporter:  milosu       |                    Owner:  nobody
         Type:  New feature  |                   Status:  new
    Component:  GIS          |                  Version:  master
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  1            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------
Description changed by milosu:

Old description:

> PostGIS provides function ST_MakeValid, that can be used in Django as a
> PostGISOperator.
>
> There is however now way how to use ST_MakeValid to simply repair GEOS
> Geometry.
>
> Note that there is also now comparable function in the GEOS library
> itself (not counting something simple like buffer(0)).
>
> This missing feature is also subject to Stackoverflow questions, like:
> https://stackoverflow.com/questions/45631855/equivalent-of-postgis-st-
> makevalid-in-django-geos/45633779
>
> Attached patch implements new PostGISOperations method called
> "make_valid", that can be run from implementation code simply by:
>
> {{{
> from django.db import connection
>
> repaired_geos_geometry = connection.ops.make_valid(some_goes_geometry)
> }}}

New description:

 PostGIS provides function ST_MakeValid, that can be used in Django as a
 PostGISOperator.

 There is however no way how to use ST_MakeValid to simply repair GEOS
 Geometry.

 Note that there is also now comparable function in the GEOS library itself
 (not counting something simple like buffer(0)).

 This missing feature is also subject to Stackoverflow questions, like:
 https://stackoverflow.com/questions/45631855/equivalent-of-postgis-st-
 makevalid-in-django-geos/45633779

 Attached patch implements new PostGISOperations method called
 "make_valid", that can be run from implementation code simply by:

 {{{
 from django.db import connection

 repaired_geos_geometry = connection.ops.make_valid(some_goes_geometry)
 }}}

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30649#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.42e1494634c5e2820cd01cfbc4d1585f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to