"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>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24144>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* type: Bug => Cleanup/optimization
* needs_tests: => 0
* needs_docs: => 0
Comment:
Django only returns what GEOS `GEOSEnvelope` returns. So I would be more
inclined to document this instead of altering GEOS output.
--
Ticket URL: <https://code.djangoproject.com/ticket/24144#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"1379165b3548b843980e59201eea8961a0b30a2d"]:
{{{
#!CommitTicketReference repository=""
revision="1379165b3548b843980e59201eea8961a0b30a2d"
Fixed #24144 -- Documented that GEOSGeometry.envelope can return a point
Thanks Manel Clos for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24144#comment:2>
Comment (by Claude Paroz <claude@…>):
In [changeset:"a1fc97c1a7949b4e8a16d22ee33ca06c887af038"]:
{{{
#!CommitTicketReference repository=""
revision="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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24144#comment:3>
Comment (by Claude Paroz <claude@…>):
In [changeset:"c16f9c2d2880378e3e73365d740c7cea30ed2840"]:
{{{
#!CommitTicketReference repository=""
revision="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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24144#comment:4>