| 39 | | For those interested in converting calibration data in PicLayer: |
| 40 | | |
| 41 | | INITIAL_SCALE is the initial size of 100 image pixels (length of ruler in JOSM). |
| 42 | | |
| 43 | | SCALEX/Y is the factor after changing the size of the raster image relative to JOSM data layer. |
| 44 | | |
| 45 | | INITIAL_POS_y/X are the coordinates of the image center in mercator projection. |
| 46 | | |
| 47 | | POSITION_X/Y are the coordinates after shifting the raster image relative to JOSM data layer. |
| 48 | | |
| 49 | | ANGLE is the angle in degrees (clockwise -> positive) when the raster image is rotated. |
| 50 | | |
| 51 | | Mercator units are arc units in longitude (PI <-> 180). |
| 52 | | |
| 53 | | Latitude is a bit complicated because this projection preserves angles but not areas: |
| 54 | | y = ln(tan(45+b/2)) |
| 55 | | where b is in degrees, ln ist the natural logarithm and tan ist the tangent. |
| 56 | | |
| 57 | | The longitude in degrees l is obtained from x via l = x*180/PI. |
| 58 | | |
| 59 | | The latitude b can be calculated from y by b = 2*arctan(e power y) - 45 (when inverse tangent returns degrees). |
| 60 | | |
| 61 | | When transforming longitude degree differences of image corners to distance, you have to take into account that one degree east-west has different size dependent on latitude. |
| 62 | | |
| | 39 | For those interested in converting calibration data in PicLayer:[[BR]] |
| | 40 | INITIAL_SCALE is the initial size of 100 image pixels (length of ruler in JOSM).[[BR]] |
| | 41 | SCALEX/Y is the factor after changing the size of the raster image relative to JOSM data layer.[[BR]] |
| | 42 | INITIAL_POS_y/X are the coordinates of the image center in mercator projection.[[BR]] |
| | 43 | POSITION_X/Y are the coordinates after shifting the raster image relative to JOSM data layer.[[BR]] |
| | 44 | ANGLE is the angle in degrees (clockwise -> positive) when the raster image is rotated.[[BR]] |
| | 45 | Mercator units are arc units in longitude (PI <-> 180).[[BR]] |
| | 46 | Latitude is a bit complicated because this projection preserves angles but not areas:[[BR]] |
| | 47 | y = ln(tan(45+b/2))[[BR]] |
| | 48 | where b is in degrees, ln ist the natural logarithm and tan ist the tangent.[[BR]] |
| | 49 | The longitude in degrees l is obtained from x via l = x*180/PI.[[BR]] |
| | 50 | The latitude b can be calculated from y by b = 2*arctan(e!**y) - 45 (when inverse tangent returns degrees).[[BR]] |
| | 51 | When transforming longitude degree differences of image corners to distance, you have to take into account that one degree east-west has different size dependent on latitude.[[BR]] |