Ticket #2560 (new defect)

Opened 2 years ago

Last modified 10 months ago

Global panning

Reported by: cfis Assigned to: cfis
Priority: critical Milestone: 1.8 - Pelee
Component: WebSite Keywords:
Cc:

Description

Open a map in Japan. Pan to the US. You won't see features.

Cause is due to wrap-around at dateline, and more specifically, the display bounds does not wrap but the transform from EPSG 4326 does. Here is some debugging data:


This is correct:

WorldDisplay?: [Mercator Transform [ radius: 325.94932345220167]

Affine Transform [a: 1 b: 0c: 0 d: 1 e: 1024 f: -1024] Affine Transform [a: 1 b: 0c: 0 d: -1 e: 0 f: 0]

WorldToView?: [Mercator Transform [ radius: 325.94932345220167]

Affine Transform [a: 1 b: 0c: 0 d: 1 e: 1024 f: -1024] Affine Transform [a: 1 b: 0c: 0 d: -1 e: 0 f: 0] Affine Transform [a: 1 b: 0c: 0 d: 1 e: -164.5 f: -608.5]]"

Point:

surface: 426.8507080078108, 777.4621582031247 display: 426.8507080078108, 777.4621582031247 world: -104.967648983002, 39.7123038862956

Bounds

surface m1 = -166.5, -651.5 view_pos: 0, 0 view: 0, 0 593, 369 display: 166.5, 651.5 759.5, 1020.5 world: -150.732421875, 0.615222552406841 -46.494140625, 54.62297813269033


This is wrong:

WorldDisplay?: [Mercator Transform [ radius: 325.94932345220167]

Affine Transform [a: 1 b: 0c: 0 d: 1e: 1024 f: -1024] Affine Transform [a: 1 b: 0c: 0 d: -1e: 0 f: 0]]

WorldView?: [Mercator Transform [ radius: 325.94932345220167]

Affine Transform [a: 1 b: 0c: 0 d: 1 e: 1024 f: -1024] Affine Transform [a: 1 b: 0c: 0 d: -1 e: 0 f: 0] Affine Transform [a: 1 b: 0c: 0 d: 1 e: -2204.5 f: -625.5]

Point:

surface: 426.8507080078108, 777.4621582031247 display: 426.8507080078108, 777.4621582031247 world: -104.967648983002, 39.7123038862956

Bounds

surface m1 = -2204.5, -625.5 view_pos: 799, -2 view: 0, 0 593, 369 display: 2204.5, 625.5 2797.5, 994.5 world: -152.490234375, 5.178482088522876 -48.251953125, 57.18390185831186

Attachments

Change History

02/12/07 16:40:13 changed by cfis

  • milestone changed from 1.2 - Etna to 1.3 - Pinatubo.

04/16/07 11:20:53 changed by cfis

  • priority changed from major to critical.

04/21/07 22:04:59 changed by cfis

  • milestone changed from 1.3 - Pinatubo to 1.4 - El Chichon.

05/22/07 23:06:46 changed by cfis

  • milestone changed from 1.4 - El Chichon to 1.5 - Vesuvius.

09/19/07 20:10:40 changed by cfis

  • milestone changed from 1.6 - Laki to 1.7 - St. Helens.

Add/Change #2560 (Global panning)




Change Properties
Action