Different relations between map pixels and km not treated correctly

Issue #246 new
Joern Ungermann created an issue

Depending on the map, the map coordinates and thus the relation between pixels and km vary. Cylindrical projection uses longitude/latitude as unit, whereas stereographic projections use meters.

This distinctions is important and several places in the code check for "lcc" and "stere" to treat it differently. This is not consistently used and the chance of< introducing errors increases drastically.

We should review the code for places where the projection is relevant for the behaviour and maybe encapsulate this.

We should add checks to the code where the distinction is important that the map type is known and covered.

See issue #245 for an example of the code not being careful about map projections.

Comments (7)

  1. Reimar Bauer
    • changed milestone to 1.9.0

    Depending on the map, the map coordinates and thus the relation between pixels and km vary. Cylindrical projection uses longitude/latitude as unit, whereas stereographic projections use meters.

    This distinctions is important and several places in the code check for "lcc" and "stere" to treat it differently. This is not consistently used and the chance of< introducing errors increases drastically.

    We should review the code for places where the projection is relevant for the behaviour and maybe encapsulate this.

    We should add checks to the code where the distinction is important that the map type is known and covered.

    See issue #245 for an example of the code not being careful about map projections.

  2. Log in to comment