The python geometries in GeoDjango have a ``valid`` property, but the same
property is not available during database queries.
To avoid errors during geoprocessing on large datasets the database side,
it can be essential to be able to filter valid geometries and possibly
repair them as well.
--
Ticket URL: <https://code.djangoproject.com/ticket/26455>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Here is the pr: https://github.com/django/django/pull/6412
I tried to find equivalent functions in the other spatial backends, the
only function I found was `SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT`. The
result of this function is an error code for invalid geometries.
Unfortunately I am not familiar with oracle so I dont know how to use this
properly.
https://docs.oracle.com/cd/B28359_01/appdev.111/b28400/sdo_objgeom.htm#BGHFDDBF
--
Ticket URL: <https://code.djangoproject.com/ticket/26455#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26455#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26455#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"c12a00e554c8b4b93931b520bb94a479c5ba8706" c12a00e]:
{{{
#!CommitTicketReference repository=""
revision="c12a00e554c8b4b93931b520bb94a479c5ba8706"
Fixed #26455 -- Allowed filtering and repairing invalid geometries.
Added the IsValid and MakeValid database functions, and the isvalid
lookup,
all for PostGIS.
Thanks Tim Graham for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26455#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"65006e0b0b5deb2e45c35975b103f0bb041c1e5c" 65006e0b]:
{{{
#!CommitTicketReference repository=""
revision="65006e0b0b5deb2e45c35975b103f0bb041c1e5c"
Refs #26455 -- Documented isvalid/makevalid in compatibility table.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26455#comment:5>