OpenOrienteering / mapper

OpenOrienteering Mapper is a software for creating maps for the orienteering sport.
https://www.openorienteering.org/apps/mapper/
GNU General Public License v3.0
399 stars 106 forks source link

Clarification on the Relationship Between Georeferencing and X-Y Axis Position of Objects in the Map #2190

Open Msabata opened 10 months ago

Msabata commented 10 months ago

I would like to seek clarification on the connection between georeferencing and the positioning of the x and y axes of objects in the map.

Thank you for response.

pkturner commented 10 months ago

If your question is about the x and y axes:

The origin, where the axes intersect, x=0, y=0, is determined by the map coordinates of the reference point.

The orientation of the axes has the y axis north-south and the x axis west-east, with positive y values to the north and positive x values to the east.

Because Mapper is for orienteering maps, the map orientation and its coordinate axes are magnetic.

The map developer sets the declination in the Georeferencing dialog, which orients the map in relation to geographic directions, i.e. meridians of longitude and parallels of latitude. Georeferencing also determines a projected grid, by specifying a CRS (Coordinate Reference System) which may or may not agree with geographic directions.

Mapper is able to display whichever of the 3 grids the user chooses: map, projected, or geographic.

pkturner commented 10 months ago

If the question is about the positioning of objects:

Each map object has an x,y position. An object's geographic and projected coordinates are calculated as needed. The calculation is determined by the map's georeferencing parameters:

The calculation of projected coordinates from map coordinates uses:

The calculation of map coordinates from projected coordinates is the inverse, and uses the same parameters.

The relationship between geographic and projected coordinates is a property of the CRS (Coordinate Reference System). Mapper relies on the PROJ library to make the correspondence. The difference between geographic north and projected north is the "convergence". The difference between geographic scale and the projection's scale is the "grid scale factor". Convergence and grid scale factor depend on the location of the reference point.

grivation = declination - convergence combined_scale_factor = auxiliary_scale_factor * grid_scale_factor

Msabata commented 10 months ago

One more following question on coords: 101 1035 32;92 -486 32;1537 -495 32;1546 1027 32;101 1035 50; In editor is represented by: Snímek obrazovky 2023-11-18 110118

how can I find out if the point will be represented with minus or plus in coordinates to reality?

And size calculation from coordinates to real size?

Thank you for response.

pkturner commented 10 months ago

how can I find out if the point will be represented with minus or plus in coordinates to reality?

The object coordinates in the omap/xmap file are not an exact match for the displayed coordinates (in your example, 0,07 -1,09). The coordinates in the file are measured in thousandths of a mm, in other words in micrometers.

In addition, the y coordinates in the file have their minus/plus switched. (This makes them better able to be drawn on the computer's screen, because the y coordinate at the top of the screen is 0.)

So the object corner represented in the file as 101 1035, has x and y coordinates on the map of 0,101 -1,035 (mm).

pkturner commented 10 months ago

And size calculation from coordinates to real size?

The grid scale factor and the auxiliary scale factor are small enough that there's usually no need to manage them. Many maps either have an auxiliary scale factor of 1.0, or have a combined scale factor of 1.0.