summaryrefslogtreecommitdiff
path: root/django/contrib/gis/geos/polygon.py
Commit message (Collapse)AuthorAgeFilesLines
* Avoided assignment followed by immediate return.Nick Pope2022-10-311-2/+1
| | | | | | | | Identified using the following command: $ pcre2grep --line-number --multiline --recursive \ "(?s)(\n +)(\w+) = [^\n]+\1return \2;?$" \ django docs extras js_tests scripts tests
* Corrected example in Polygon docstring.Stefan Brand2022-05-041-1/+1
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-2/+4
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-7/+20
|
* Fixed #32600 -- Fixed Geometry collections and Polygon segmentation fault on ↵Brenton Partridge2021-12-211-5/+2
| | | | macOS ARM64.
* Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev2018-09-281-3/+2
|
* Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов2017-12-041-1/+1
|
* Replaced get_pointer_arr() with usage of GEOM_PTR for simplicity.Sergey Fedoseev2017-09-061-5/+3
|
* Fixed #28020 -- Made GEOSGeometry.json use OGRGeometry.json for better ↵Sergey Fedoseev2017-04-051-1/+0
| | | | performance.
* Fixed #27973 -- Fixed GeoJSON representation of LinearRing and custom ↵Sergey Fedoseev2017-03-291-0/+1
| | | | GEOSGeometry subclasses.
* Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan2017-02-041-14/+14
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-1/+0
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-2/+1
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-2/+4
|
* Fixed #25662 -- Allowed creation of empty GEOS geometries.Sergey Fedoseev2015-12-141-1/+5
|
* Fixed E265 comment styleCollin Anderson2015-02-061-2/+2
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+4
|
* Fixed #23812 -- Changed django.utils.six.moves.xrange imports to rangeMichael Hall2014-12-131-4/+4
|
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+2
| | | | refs #23395.
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-1/+1
|
* Fixed all E226 violationsAlex Gaynor2013-11-031-2/+2
|
* Continue to attack E302 violationsAlex Gaynor2013-11-021-0/+1
|
* Fixed E221 pep8 warnings.Tim Graham2013-10-221-4/+4
|
* Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol2013-10-171-2/+4
|
* Fixed assorted flake8 errors.Tim Graham2013-10-111-2/+4
|
* Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette2013-08-301-3/+3
|
* [py3] Added Python 3 compatibility for xrange.Aymeric Augustin2012-07-221-0/+1
|
* [py3] Removed longs.Aymeric Augustin2012-07-221-1/+2
|
* Fixed #17736 -- Kept maximal floating-point accuracy in from_bboxClaude Paroz2012-06-061-2/+5
| | | | | | | When constructing a polygon with Polygon.from_bbox, do not convert parameters to strings at this stage (str defaults to 12 significant digits). Thanks tdihp@hotmail.com for the report and David Eklung for the patch.
* Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel2011-07-131-1/+0
| | | | | | the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Applied latest changes to `ListMixin` from Aryeh Leib Taurog and added him ↵Justin Bronn2009-04-101-16/+16
| | | | | | to AUTHORS; fixed memory leak introduced in r10174 -- no longer call `ListMixin.__init__` and set methods manually because it created references that prevented garbage collection; fixed several routines that had no need to be class methods. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10620 -- removed carriage returns in a GEOS tests module; fixed other ↵Justin Bronn2009-03-261-6/+0
| | | | | | errata such as unnecessary `pymutable_geometries` module and not having `GEOSGeometry` call `__init__`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Refactored the GEOS interface. Improvements include:Justin Bronn2009-03-241-0/+172
* Geometries now allow list-like manipulation, e.g., can add, insert, delete vertexes (or other geometries in collections) like Python lists. Thanks, Aryeh Leib Taurog. * Added support for GEOS prepared geometries via `prepared` property. Prepared geometries significantly speed up certain operations. * Added support for GEOS cascaded union as `MultiPolygon.cascaded_union` property. * Added support for GEOS line merge as `merged` property on `LineString`, and `MultiLineString` geometries. Thanks, Paul Smith. * No longer use the deprecated C API for serialization to/from WKB and WKT. Now use the GEOS I/O classes, which are now exposed as `WKTReader`, `WKTWriter`, `WKBReader`, and `WKBWriter` (which supports 3D and SRID inclusion) * Moved each type of geometry to their own module, eliminating the cluttered `geometries.py`. * Internally, all C API methods are explicitly called from a module rather than a star import. Fixed #9557, #9877, #10222 git-svn-id: http://code.djangoproject.com/svn/django/trunk@10131 bcc190cf-cafb-0310-a4f2-bffc1f526a37