Opened 7 years ago

Closed 7 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 7 years ago.
Simple patch

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by santiago_aguiar

Simple patch

comment:1 Changed 7 years ago by jacob

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

comment:2 Changed 7 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.

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