#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."
>>> 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 , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Bug → Cleanup/optimization |
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Django only returns what GEOS
GEOSEnvelope
returns. So I would be more inclined to document this instead of altering GEOS output.