diff options
| author | Stanislav Karpov <stkrp@yandex.ru> | 2018-01-09 19:15:04 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-02-10 19:45:58 -0500 |
| commit | 6d794fb76212bb8a62fe2cd97cff173054e1c626 (patch) | |
| tree | a947f691b5c831f64b2759a46100c7e046df88dd /docs | |
| parent | 2162f0983de0dfe2178531638ce7ea56f54dd4e7 (diff) | |
Fixed #28960 -- Added GEOSGeometry.buffer_with_style().
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/gis/geos.txt | 10 | ||||
| -rw-r--r-- | docs/releases/2.1.txt | 4 | ||||
| -rw-r--r-- | docs/spelling_wordlist | 1 |
3 files changed, 14 insertions, 1 deletions
diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt index 6334f76598..e79e621239 100644 --- a/docs/ref/contrib/gis/geos.txt +++ b/docs/ref/contrib/gis/geos.txt @@ -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 diff --git a/docs/releases/2.1.txt b/docs/releases/2.1.txt index 31252432bb..33d6982443 100644 --- a/docs/releases/2.1.txt +++ b/docs/releases/2.1.txt @@ -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` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index 4d5c9a508f..57b999bacb 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -407,6 +407,7 @@ minified minify mis misconfiguration +mitre mixin mixins modelforms |
