mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #28960 -- Added GEOSGeometry.buffer_with_style().
This commit is contained in:
parent
2162f0983d
commit
6d794fb762
8 changed files with 91 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -407,6 +407,7 @@ minified
|
|||
minify
|
||||
mis
|
||||
misconfiguration
|
||||
mitre
|
||||
mixin
|
||||
mixins
|
||||
modelforms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue