mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Added more spatial predicates for prepared geometries
GEOS 3.3 added crosses, disjoint, overlaps, touches and within predicates on prepared geometries.
This commit is contained in:
parent
d17404aa90
commit
9267fb88ef
5 changed files with 95 additions and 6 deletions
|
@ -527,8 +527,8 @@ a :class:`Polygon`).
|
|||
|
||||
Returns a GEOS ``PreparedGeometry`` for the contents of this geometry.
|
||||
``PreparedGeometry`` objects are optimized for the contains, intersects,
|
||||
and covers operations. Refer to the :ref:`prepared-geometries` documentation
|
||||
for more information.
|
||||
covers, crosses, disjoint, overlaps, touches and within operations. Refer to
|
||||
the :ref:`prepared-geometries` documentation for more information.
|
||||
|
||||
.. attribute:: GEOSGeometry.srs
|
||||
|
||||
|
@ -746,8 +746,48 @@ For example::
|
|||
|
||||
.. method:: covers(other)
|
||||
|
||||
.. method:: crosses(other)
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
.. note::
|
||||
|
||||
GEOS 3.3 is *required* to use this predicate.
|
||||
|
||||
.. method:: disjoint(other)
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
.. note::
|
||||
|
||||
GEOS 3.3 is *required* to use this predicate.
|
||||
|
||||
.. method:: intersects(other)
|
||||
|
||||
.. method:: overlaps(other)
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
.. note::
|
||||
|
||||
GEOS 3.3 is *required* to use this predicate.
|
||||
|
||||
.. method:: touches(other)
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
.. note::
|
||||
|
||||
GEOS 3.3 is *required* to use this predicate.
|
||||
|
||||
.. method:: within(other)
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
.. note::
|
||||
|
||||
GEOS 3.3 is *required* to use this predicate.
|
||||
|
||||
Geometry Factories
|
||||
==================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue