JOSM/Plugins/josmtiff
josmtiff is a plugin for JOSM that imports a georeferenced TIFF image and displays it as a background layer. It is intended for local GeoTIFF imagery that already uses WGS 84 geographic coordinates (EPSG:4326).

Features
- Opens files with the
.tifand.tiffextensions. - Reads georeferencing from GeoTIFF ModelTiepoint and ModelPixelScale tags, or from a ModelTransformation tag.
- Places the image according to its geographic bounds and updates the layer bounds when the JOSM map projection changes.
- Adds the imported image as a background layer, so JOSM's standard layer visibility and opacity controls can be used.
- Checks the coordinate reference system before importing.
- Warns before loading files of 200 MB or larger.
Installation
The plugin requires JOSM version 19044 or newer.
From JOSM's plugin manager
- Open JOSM.
- Select Edit -> Preferences -> Plugins.
- Click Download list, search for
josmtiff, and select it. - Confirm the changes and restart JOSM if requested.

Manual installation
If the plugin is not yet available in the plugin manager, download josmtiff.jar from the latest GitHub release and copy it to the JOSM plugins directory. Restart JOSM afterwards.
See Manually install JOSM plugins for the plugin-directory location on each operating system.
Usage
- Open JOSM and load or download the OSM data for the area covered by the image.
- Select Imagery -> Import GeoTIFF.
- Choose a georeferenced
.tifor.tifffile. - The image is added to the Layers panel as a background layer named after the source file.
- Use the standard controls in the Layers panel to change its visibility or opacity.

Supported coordinate reference system
The current version supports only geographic WGS 84 coordinates, identified as EPSG:4326. The file must also contain GeoTIFF georeferencing tags.
For a GeoTIFF in another coordinate reference system, reproject it before importing. For example, with GDAL:
gdalwarp -t_srs EPSG:4326 input.tif output_4326.tif

Limitations
- Coordinate reference systems other than EPSG:4326 are not currently supported.
- A TIFF without GeoTIFF georeferencing tags cannot be positioned and is rejected.
- The complete raster is decoded into memory. Large or very high-resolution files can take a long time to load and may require additional Java heap memory.
- The imported layer is for display as a background; the plugin does not modify or export the source GeoTIFF.
Troubleshooting
- The plugin reports an unsupported coordinate system
- Reproject the file to EPSG:4326, for example with the
gdalwarpcommand shown above.
- The plugin reports that the file is not georeferenced
- Confirm that the file is a GeoTIFF rather than an ordinary TIFF. It must contain ModelTiepoint and ModelPixelScale tags, or a ModelTransformation tag.
- Importing is slow or JOSM runs out of memory
- Create a smaller cropped raster, reduce its resolution, or start JOSM with a larger Java heap. Files of 200 MB or larger trigger a confirmation dialog before decoding.