OpenHistoricalMap / issues

File your issues here, regardless of repo until we get all our repos squared away; we don't want to miss anything.
Creative Commons Zero v1.0 Universal
17 stars 1 forks source link

Add georeferenced IIIF image support to JOSM #767

Open jeffreyameyer opened 2 months ago

jeffreyameyer commented 2 months ago

What's your idea for a cool feature that would help you use OHM better. Many Internet map and satellite imagery providers are moving to supporting either georeferenced IIIF or Cloud Optimized GeoTIFFs (COGs) to improve network and rendering performance for display of their images.

Some map-related sites that have georeferenced IIIF support include Chronoscope (time and IIIF maps!), allmaps.io.

Currently, JOSM only supports WMS, WMTS, MVT, and TMS sources, not IIIF or COG.

Implementing this would include modifying the Imagery Preferences panel, as well as providing a renderer for georeferenced IIIF maps.

Benefits Benefits will be increased access to even more old maps for tracing and vectorizing, as well as providing a higher-performance editing environment. It would also make it easier to launch a JOSM editor with that basemap pre-loaded from external sites like Chronoscope.

Current workarounds Some providers have xyz shims for their IIIF-based images, but that defeats the performance benefits of IIIF and is not available everywhere.

Same support for iD: #768

Rub21 commented 2 months ago

Seems oldmapsonline has a good support for XYZ tiles, here some results loading the map in JOSM

https://davidrumsey.oldmapsonline.org/maps/2e496ecc-1dde-5208-9bef-07143dca9c70/

image
Rub21 commented 2 months ago

Another, less efficient option might be to load the images using the JOSM PicLayer plugin. I've loaded the image. 👇

https://viewer.allmaps.org/?url=https%3A%2F%2Fannotations.allmaps.org%2Fmaps%2Fc0c13ca1da135a59 https://annotations.allmaps.org/maps/c0c13ca1da135a59 https://cdm21045.contentdm.oclc.org/iiif/2/coll21:761/info.json https://cdm21045.contentdm.oclc.org/iiif/2/coll21:761/full/full/0/default.jpg ScreenRecording2024-04-29at9 00 35PM-ezgif com-resize

image
jeffreyameyer commented 2 months ago

Interesting about piclayer... hadn't considered that, but if it works, that would be great.

Separately - discussion here about using Titiler to proxy IIIF as xyz.

Rub21 commented 2 months ago

From the comment https://github.com/OpenHistoricalMap/issues/issues/768#issuecomment-2090517350, it appears this approach is more practical to implement. Additionally, I suggest developing this functionality as a plugin, this would allow for the easy display of layer according to different layers based on the provider's name, service, and layer details. Implementing this in the Imagery Preferences panel could lead to excessive navigation through various layers, which might complicate the process.