| 14 | | Step 2a) If you chose a file, a file selector will pop-up. Choose the image you want. Of course the format you are using might not be supported yet :) |
| | 24 | 3. Once the image is visible you may start positioning it. For that - select the PicLayer in the layers list and activate it (!!!). |
| | 25 | 4. Start aligning the image. |
| | 26 | a. Move the image by choosing 'Move' from the toolbar and draggin the mouse around with left button pressed. |
| | 27 | b. Rotate the image by choosing 'Rotate' from the toolbar and draggin the mouse up/down with left button pressed. |
| | 28 | c. Scale the image by choosing 'Scale' from the toolbar and draggin the mouse up/down with left button pressed. |
| | 29 | d. You can also choose to scale in just one axis by selecting the proper button. |
| 18 | | NOTE) If something failed, you should get a message box. If not - check the console for messages (Linux only?) |
| 19 | | |
| 20 | | Step 3) Once the image is visible you may start positioning it. For that - select the PicLayer in the layers list and activate it (!!!). |
| 21 | | |
| 22 | | Step 4) Start aligning the image. |
| 23 | | |
| 24 | | Step 4a) Move the image by choosing 'Move' from the toolbar and draggin the mouse around with left button pressed. |
| 25 | | |
| 26 | | Step 4b) Rotate the image by choosing 'Rotate' from the toolbar and draggin the mouse up/down with left button pressed. |
| 27 | | |
| 28 | | Step 4c) Scale the image by choosing 'Scale' from the toolbar and draggin the mouse up/down with left button pressed. |
| 29 | | |
| 30 | | Step 4d) You can also choose to scale in just one axis by selecting the proper button. |
| 31 | | |
| 32 | | NOTE) If it does not work - make sure the right layer is selected AND ACTIVATED. |
| 33 | | |
| 34 | | Step 5) If you need to reset your changes - you can use the popup menu available under the PicLayer entry in the layer list. |
| 35 | | |
| 36 | | Step 6) If you want to save the calibraton of the picture you have made, you can also do this using the popup menu. |
| | 33 | 5. If you need to reset your changes - you can use the popup menu available under the PicLayer entry in the layer list. |
| | 34 | 6. If you want to save the calibraton of the picture you have made, you can also do this using the popup menu. |
| 42 | | INITIAL_SCALE is the initial size of 100 image pixels (length of ruler in JOSM).[[BR]] |
| 43 | | SCALEX/Y is the factor after changing the size of the raster image relative to JOSM data layer.[[BR]] |
| 44 | | INITIAL_POS_y/X are the coordinates of the image center in mercator projection.[[BR]] |
| 45 | | POSITION_X/Y are the coordinates after shifting the raster image relative to JOSM data layer.[[BR]] |
| 46 | | ANGLE is the angle in degrees (clockwise -> positive) when the raster image is rotated.[[BR]] |
| 47 | | Mercator units are arc units in longitude (PI <-> 180).[[BR]] |
| 48 | | Latitude is a bit complicated because this projection preserves angles but not areas:[[BR]] |
| 49 | | y = ln(tan(45+b/2))[[BR]] |
| 50 | | where b is in degrees, ln ist the natural logarithm and tan ist the tangent.[[BR]] |
| 51 | | The longitude in degrees l is obtained from x via l = x*180/PI.[[BR]] |
| 52 | | The latitude b can be calculated from y by b = 2*arctan(e!**y) - 45 (when inverse tangent returns degrees).[[BR]] |
| | 41 | * {{{INITIAL_SCALE}}} is the initial size of 100 image pixels (length of ruler in JOSM). |
| | 42 | * {{{SCALEX/Y}}} is the factor after changing the size of the raster image relative to JOSM data layer. |
| | 43 | * {{{INITIAL_POS_y/X}}} are the coordinates of the image center in mercator projection. |
| | 44 | * {{{POSITION_X/Y}}} are the coordinates after shifting the raster image relative to JOSM data layer. |
| | 45 | * {{{ANGLE}}} is the angle in degrees (clockwise -> positive) when the raster image is rotated. |
| | 46 | |
| | 47 | * Mercator units are arc units in longitude (PI <-> 180). |
| | 48 | * Latitude is a bit complicated because this projection preserves angles but not areas: |
| | 49 | {{{ |
| | 50 | y = ln(tan(45+b/2)) |
| | 51 | }}} |
| | 52 | |
| | 53 | where b is in degrees, ln ist the natural logarithm and tan ist the tangent. |
| | 54 | * The longitude in degrees l is obtained from x via: |
| | 55 | {{{ |
| | 56 | l = x*180/PI. |
| | 57 | }}} |
| | 58 | |
| | 59 | * The latitude b can be calculated from y by: |
| | 60 | {{{ |
| | 61 | b = 2*arctan(e!**y) - 45 |
| | 62 | }}} |
| | 63 | (when inverse tangent returns degrees). |
| | 64 | |