Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Msabata opened this issue Nov 17, 2023 · 5 comments

Comments

@Msabata
Copy link

Msabata commented Nov 17, 2023

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
Copy link
Contributor

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
Copy link
Contributor

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 reference point's projected & map coordinates
  • the CRS (Coordinate Reference System)
  • the declination
  • the map scale
  • the auxiliary scale factor

The calculation of projected coordinates from map coordinates uses:

  • the reference point's projected & map coordinates
  • the grivation (i.e. declination adjusted for the projected grid of the CRS)
  • the map scale
  • the combined scale factor (i.e. auxiliary scale factor adjusted for the CRS)

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
Copy link
Author

Msabata commented Nov 18, 2023

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
Copy link
Contributor

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
Copy link
Contributor

pkturner commented Nov 18, 2023

And size calculation from coordinates to real size?

  • Start with distance on the map, in mm.
  • Divide by 1000 --➔ distance on the map, in m
  • Multiply by the map scale denominator --➔ real distance (in m)
  • Multiply by the auxiliary scale factor --➔ real distance on the ellipsoid (in m)
  • Multiply by the grid scale factor --➔ real distance in coordinates of the projected grid (in m)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants