Changes between Version 22 and Version 23 of Help/Plugin/PicLayer


Ignore:
Timestamp:
2021-08-01T11:55:46+02:00 (4 years ago)
Author:
leni
Comment:

bigger icon; ; `; numbering;

Legend:

Unmodified
Added
Removed
Modified
  • Help/Plugin/PicLayer

    v22 v23  
    11[[TranslatedPages]]
     2
    23
    34= Plugin -> PicLayer =
    45
    5 [[Image(/pluginicon/PicLayer.jar/images/layericon.png,32)]]
     6[[Image(/pluginicon/PicLayer.jar/images/layericon.png,link=,middle,48)]]
    67
    78This plugin shows images as background in JOSM.
    89
    910It offers two ways of loading the raster image data:
    10 - from a file and
    11 - from the clipboard.
     11* from a file and
     12* from the clipboard.
    1213This is an early version and is not end-user-proof, so please follow the steps exactly when using it.
    1314
    1415Make sure the image is suitable, copyright-wise, if in doubt, don't use.
    1516
     17
    1618== Usages ==
    17191. Load some data from the server so the map is visible.
    18201. Move and zoom the [wikitr:/Help/MapView MapView] to the estimated target position of the new background image.
    19 1. Click the '''Imagery''' menu and either choose '''New picture layer from file''' or '''New picture layer from clipboard'''.
    20  a. If you chose file, a file selector will pop-up. Pick the image you want. All formats supported by Java  (GIF with transparency) and furthermore ZIP as container and KML [#5451 experimental] are possible.
    21  b. If you chose clipboard, importing the image data may take some time.
     211. Click the **Imagery** menu and either choose **New picture layer from file** or **New picture layer from clipboard**.
     22 a. If you chose file, a file selector will pop-up. Pick the image you want. All formats supported by Java  (GIF with transparency) and furthermore ZIP as container and KML (#5451 experimental) are possible.
     23 a. If you chose clipboard, importing the image data may take some time.
    2224
    2325If something failed, you should get a message box. If not - check the console for messages (Linux only?)
     
    26281. Start aligning the image.
    2729 a. Move the image by choosing 'Move' from the [wikitr:/Help/EditToolbar toolbar] and dragging the mouse around with left button pressed.
    28  b. Rotate the image by choosing 'Rotate' from the toolbar and drag.
    29  c. Scale the image by choosing 'Scale' from the toolbar and drag.
    30  d. You can also choose to scale in just one axis by selecting the proper button.
     30 a. Rotate the image by choosing 'Rotate' from the toolbar and drag.
     31 a. Scale the image by choosing 'Scale' from the toolbar and drag.
     32 a. You can also choose to scale in just one axis by selecting the proper button.
    3133
    32346. If you need to reset your changes - you can use the context menu from the !PicLayer entry in the layer list.
     
    3739
    3840== Converting calibration data in !PicLayer ==
    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).
    41 * {{{SCALEX/Y}}} is the factor after changing the size of the raster image relative to JOSM data layer.
    42 * {{{INITIAL_POS_y/X}}} are the coordinates of the image center in mercator projection.
    43 * {{{POSITION_X/Y}}} are the coordinates after shifting the raster image relative to JOSM data layer.
    44 * {{{ANGLE}}} is the angle in degrees (clockwise -> positive) when the raster image is rotated.
     41For those interested in converting calibration data in !PicLayer: \\
     42* `INITIAL_SCALE` is the initial size of 100 image pixels (length of ruler in JOSM).
     43* `SCALEX/Y` is the factor after changing the size of the raster image relative to JOSM data layer.
     44* `INITIAL_POS_y/X` are the coordinates of the image center in mercator projection.
     45* `POSITION_X/Y` are the coordinates after shifting the raster image relative to JOSM data layer.
     46* `ANGLE` is the angle in degrees (clockwise -> positive) when the raster image is rotated.
    4547
    4648* Mercator units are arc units in longitude (PI <-> 180).
     
    6264 (when inverse tangent returns degrees).
    6365
    64 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]]
     66When 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. \\
    6567At equator 1 degree -> d0 = 111.321 km (from GRS 80 semi-major axes), at latitude b you get:
    6668{{{
     
    7173
    7274== Using auto calibration action ==
    73 
    7475This action helps you to position and calibrate an image (preferably a floor plan) into the world map.
    7576
    76 '''What do I need to use this action?'''
     77**What do I need to use this action?**
    7778* an image, preferably a floor plan
    7879* information about side length of building
    7980
    80 '''How do I start calibration?'''
     81**How do I start calibration?**
    8182* 1. open the image file and switch to the image layer so you can see the [[osmwiki:JOSM/Plugins/PicLayer|PicLayer]] modes on left side
    8283* 2. enter the "Calibrate Picture with outline" mode
    8384* 3. follow the window
    84 * 3.1 select '''edge points''' (example in picture)
    85 * 3.2 enter '''distances''' - if you select the text field a green line will pop up and show you which distance on the image is required. Please enter the real distance in meter between the two points.
    86 * 3.3 open the '''reference file''' - open a .osm or .gpx file with coordinates of building outline or select a layer as reference
    87 * 3.4 select '''reference points'''
    88   * 3.4.1 mode selection - if the building outline coordinates are already defined in layer, select '''defined''' mode (.osm files only), if you want to set the coordinates somewhere on layer, select '''manual''' mode
     85* 3.1 select **Building Corner Point** (example in picture : edge points)
     86* 3.2 enter **True Distances** - if you select the text field a green line will pop up and show you which distance on the image is required. Please enter the real distance in meter between the two points.
     87* 3.3 open the **Building Reference File** - open a .osm or .gpx file with coordinates of building outline or select a layer as reference
     88* 3.4 select **Building Reference Points**
     89  * 3.4.1 mode selection - if the building outline coordinates are already defined in layer, select **defined** mode (.osm files only), if you want to set the coordinates somewhere on layer, select **manual** mode
    8990  * 3.4.2 select the same points as in step 3.1, now only on your real building outline (example in picture)
    90 * 3.5 '''run''' calibration - '''result'''
     91* 3.5 **run** calibration - **result**
    9192
    9293Example: [[https://wiki.openstreetmap.org/w/images/a/a8/Piclayer_auto_calibration.gif|Piclayer_auto_calibration.gif]]
    9394
    94 '''More information'''
    95 
     95**More information**
    9696For more information about why do I need to insert distances and why the image usually does not fit exactly in the outline file, see [[osmwiki:JOSM/Plugins/PicLayer|PicLayer Page]].
    9797
     
    100100* [[osmwiki:JOSM/Plugins/PicLayer|PicLayer page]] at OSM wiki
    101101
     102
    102103----
    103 Back to [wikitr:/Plugins#JOSMdocu Plugin Help][[BR]]
     104Back to [wikitr:/Plugins#JOSMdocu Plugin Help] \\
    104105Back to [wikitr:/Help Main Help]