Ticket #2715 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

Layer.WMS: use layer.projection

Reported by: fredj Owned by: euzuro
Priority: minor Milestone: 2.10 Release
Component: Layer.WMS Version: 2.9
Keywords: Cc:
State:

Description

Layer.WMS uses the map.projection object, the layer.projection should used instead.

Change History

in reply to: ↑ description   Changed 3 years ago by ahocevar

Replying to fredj:

Layer.WMS uses the map.projection object, the layer.projection should used instead.

Are you sure? What if the base layer and the layer in question use a different projection? Then Layer.WMS will request tiles in the wrong srs.

  Changed 3 years ago by fredj

But why do we have a projection property in the base class ? Is it only applicable with non raster layers (WFS, GeoRSS) ?

  Changed 3 years ago by ahocevar

If the layer is a base layer, the map will take the projection from it. This is the original purpose of layer.projection. For layers that can be projected, it is used for reprojection. But this is a more recent use of layer.projection. And for Layer.WMS, we cannot reproject, so we have to request tiles in the map projection.

  Changed 3 years ago by fredj

  • status changed from new to closed
  • resolution set to invalid

ok, thanks for the explanation.

Note: See TracTickets for help on using tickets.