[Django] #24144: envelope attribute for GEOSGeometry returns Point

20 views
Skip to first unread message

Django

unread,
Jan 13, 2015, 6:41:40 AM1/13/15
to django-...@googlegroups.com
#24144: envelope attribute for GEOSGeometry returns Point
----------------------------+--------------------
Reporter: manelclos | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
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>
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24144>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 13, 2015, 7:53:00 AM1/13/15
to django-...@googlegroups.com
#24144: envelope attribute for GEOSGeometry returns Point
--------------------------------------+------------------------------------
Reporter: manelclos | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by claudep):

* 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>

Django

unread,
Feb 14, 2015, 10:20:37 AM2/14/15
to django-...@googlegroups.com
#24144: envelope attribute for GEOSGeometry returns Point
--------------------------------------+------------------------------------
Reporter: manelclos | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: GIS | Version: 1.7
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Claude Paroz <claude@…>):

* 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>

Django

unread,
Feb 14, 2015, 10:21:41 AM2/14/15
to django-...@googlegroups.com
#24144: envelope attribute for GEOSGeometry returns Point
--------------------------------------+------------------------------------
Reporter: manelclos | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: GIS | Version: 1.7

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

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>

Django

unread,
Feb 14, 2015, 10:22:30 AM2/14/15
to django-...@googlegroups.com
#24144: envelope attribute for GEOSGeometry returns Point
--------------------------------------+------------------------------------
Reporter: manelclos | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: GIS | Version: 1.7

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages