Fixed #28960 -- Added GEOSGeometry.buffer_with_style().

This commit is contained in:
Stanislav Karpov 2018-01-09 19:15:04 +03:00 committed by Tim Graham
parent 2162f0983d
commit 6d794fb762
8 changed files with 91 additions and 10 deletions

View file

@ -496,6 +496,16 @@ Topological Methods
optional ``quadsegs`` keyword sets the number of segments used to
approximate a quarter circle (defaults is 8).
.. method:: GEOSGeometry.buffer_with_style(width, quadsegs=8, end_cap_style=1, join_style=1, mitre_limit=5.0)
.. versionadded:: 2.1
Same as :meth:`buffer`, but allows customizing the style of the buffer.
* ``end_cap_style`` can be round (``1``), flat (``2``), or square (``3``).
* ``join_style`` can be round (``1``), mitre (``2``), or bevel (``3``).
* Mitre ratio limit (``mitre_limit``) only affects mitered join style.
.. method:: GEOSGeometry.difference(other)
Returns a :class:`GEOSGeometry` representing the points making up this

View file

@ -70,7 +70,9 @@ Minor features
:mod:`django.contrib.gis`
~~~~~~~~~~~~~~~~~~~~~~~~~
* ...
* The new :meth:`.GEOSGeometry.buffer_with_style` method is a version of
:meth:`~.GEOSGeometry.buffer` that allows customizing the style of the
buffer.
:mod:`django.contrib.messages`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -407,6 +407,7 @@ minified
minify
mis
misconfiguration
mitre
mixin
mixins
modelforms