Opened 6 years ago

Closed 6 years ago

#8113 closed (fixed)

Google zoom fails when geom envelope is a single point

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

Description fails when then envelope it's a single point. Only happens in extreme cases (point or polygons in which all the points are the same).

The provided patch just returns width=0, height=0, and the zoom level is eventually returned as 18.

Attachments (1)

geodjango_google_zoom_env.patch (890 bytes) - added by santiago_aguiar 6 years ago.
Simple patch

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by santiago_aguiar

Simple patch

comment:1 Changed 6 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 6 years ago by jbronn

  • Resolution set to fixed
  • Status changed from new to closed

(In [8428]) Fixed #8113. Made get_width_height a GoogleZoom method that takes the extent instead of an envelope so it may handle Point geometries. Thanks to Santiago Aguiar for the bug report.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.