Scale or zoom factor calculation

Comments

2 comments

  • Avatar
    Uwe B.

    Good to know, thanks for sharing - I wondered sometimes why I couldn't get it right easier.

    0
    Comment actions Permalink
  • Avatar
    Thierry CHARLÈS

    The situation is the same with TwoNav (whether using the GPS device or the app).

    If a vector map is used, scale management is handled correctly; the concept of tile size shrinking as one approaches a pole does not apply here. The map is constructed within the device—OSM, for instance, is essentially a database of objects. The software uses a *.clay configuration file to generate the map (though errors can occur in certain layers, such as power lines) by loading data for the area currently being viewed.

    If a raster map is used, the situation is different. While I have not tested this in Germany, in countries like Belgium, Switzerland, and France, the raster maps distributed by TwoNav are defined with a resolution of 2.4 meters per pixel (this corresponds to the distribution scale used by the national mapping agencies—such as the IGN—in these countries). This scale aligns with "zoom level 16" at the equator.

    Logically, if this same type of raster map were generated to cover Luxembourg (let’s assume a latitude of 50° for the sake of simplicity) at zoom level 16, the resolution should be 1.6 meters per pixel (based on the standard definition of zoom levels).

    Consequently, a user employing a different type of map—whether created via tools like Mobac or QGIS, or sourced directly from a national mapping agency (such as the French IGN’s "IGN PLAN," which extends up to zoom level 20)—might notice a scale "error" in the displayed map (i.e., the zoom level as it appears on their screen).

    This discrepancy corresponds to the cosine of the latitude. Thus, if a user configures their GPS to "automatic scale" (or "always" mode)—where the next waypoint (WPT) is always kept at the top of the screen—the display will appear correctly when using an OSM (vector) map or an IGN map distributed by TwoNav (based on the scale level at the equator). However, with other raster maps set to a specific zoom level, the next WPT will never appear on the screen, except when at a very close range.

    When using manual scaling, you must increase the displayed scale value by dividing it by the cosine of the latitude in order to view the same map distance ahead of you.

    For example, when using a raster map (created via Mobac, QGIS, or similar software) on a TERRA, TRAIL, or AVENTURA device—with 400 pixels of screen space ahead of your current position—you would need to set the scale to 1.5 meters per pixel to display 400 meters of map ahead of you.

    On a GPS device, the screen size and the nature of the activity can be an issue, depending on what the user chooses to prioritize. With a smartphone app, however, this is not really a problem, as the screen is larger and has a much higher pixel count.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.