Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#24144 closed Cleanup/optimization (fixed)

envelope attribute for GEOSGeometry returns Point

Reported by: Manel Clos Owned by: nobody
Component: GIS Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It should return Envelope as stated in the documentation:

"Returns a Polygon that represents the bounding envelope of this geometry."

https://docs.djangoproject.com/en/1.7/ref/contrib/gis/geos/#django.contrib.gis.geos.GEOSGeometry.envelope

>>> from django.contrib.gis.geos import GEOSGeometry
>>> p = GEOSGeometry('POINT (1 1)')
>>> p
<Point object at 0xb2f23dd0L>
>>> p.envelope
<Point object at 0xb2f23d40L>

Change History (4)

comment:1 by Claude Paroz, 10 years ago

Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

Django only returns what GEOS GEOSEnvelope returns. So I would be more inclined to document this instead of altering GEOS output.

comment:2 by Claude Paroz <claude@…>, 10 years ago

Resolution: fixed
Status: newclosed

In 1379165b3548b843980e59201eea8961a0b30a2d:

Fixed #24144 -- Documented that GEOSGeometry.envelope can return a point

Thanks Manel Clos for the report.

comment:3 by Claude Paroz <claude@…>, 10 years ago

In a1fc97c1a7949b4e8a16d22ee33ca06c887af038:

[1.8.x] Fixed #24144 -- Documented that GEOSGeometry.envelope can return a point

Thanks Manel Clos for the report.
Backport of 1379165b35 from master.

comment:4 by Claude Paroz <claude@…>, 10 years ago

In c16f9c2d2880378e3e73365d740c7cea30ed2840:

[1.7.x] Fixed #24144 -- Documented that GEOSGeometry.envelope can return a point

Thanks Manel Clos for the report.
Backport of 1379165b35 from master.

Note: See TracTickets for help on using tickets.
Back to Top