OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

Announcement

A fix has been applied to the login system for the forums - if you have trouble logging in please contact support@openstreetmap.org with both your forum username and your OpenStreetMap username so we can make sure your accounts are properly linked.

#1 2017-05-13 17:51:14

AkuAnakTimur
Member
From: Kedah, Malaysia
Registered: 2013-09-12
Posts: 146
Website

JOSM - Alternatives for ImportImagePlugin

I use that plugin to load (Sentinel-2, Landsat 8) GeoTIFFs - it just works. However, its limitation is that I could only load one GeoTIFF file per session. If I'm going to load another, then I have to restart JOSM and start again.

Any alternatives? Hopefully there would be the offline ones. I have a limited internet plan, therefore uploading them to the cloud and display them via TMS is obviously not my cup of tea.

Offline

#2 2017-05-26 16:42:03

bastik
Member
Registered: 2011-08-05
Posts: 53

Re: JOSM - Alternatives for ImportImagePlugin

An alternative is the PicLayer plugin, but as far as I know, it doesn't support the GeoTIFF format directly. If you can extract / convert to a word file, then this would work.

Offline

#3 2017-05-30 21:38:40

ff5722
Member
Registered: 2016-05-20
Posts: 94

Re: JOSM - Alternatives for ImportImagePlugin

You could set up a local tileserver: https://wiki.openstreetmap.org/wiki/Til … WMS_or_TMS

that is, if you manage to do so, since I'm trying to accomplish the same... https://forum.openstreetmap.org/viewtopic.php?id=58413

Offline

#4 2017-06-01 07:30:01

AkuAnakTimur
Member
From: Kedah, Malaysia
Registered: 2013-09-12
Posts: 146
Website

Re: JOSM - Alternatives for ImportImagePlugin

ff5722 wrote:

You could set up a local tileserver [...]

I was exactly thinking like that too, but it may take extra time and effort e.g. how to set up a local (WMS/TMS) server and how to make sure things will work out as intended. Thanks for linking that Wiki page.

By the way, I came across this blog post where it mentions about Maptiler.

If my understanding is correct, then the application will help someone to basically generate tiles. The output would be a directory with a lot of tiles from many zoom levels but at least we could point JOSM to this directory? I haven't tried this yet, but let me know if the result is something much like that.

Last edited by AkuAnakTimur (2017-06-01 07:49:40)

Offline

#5 2017-06-12 20:46:57

ff5722
Member
Registered: 2016-05-20
Posts: 94

Re: JOSM - Alternatives for ImportImagePlugin

See an updated guide here https://wiki.openstreetmap.org/wiki/Use … ound_layer Maptiler is limited in the free version, but there is a free alternative.

I made some progress today.

Download Maptiler https://www.maptiler.com

Then download an local Apache server, such as wampserver or XAMPP.

Install tileserver in the 'www' or 'htdocs' folder of the Apache server. Use these instruction: https://www.maptiler.com/how-to/tileserver-php/

Then use Maptiler to process a GeoTIFF as standard tiles. If your tile is too large, use Qgis to crop it and save the crop as tiff again. Save the output from Maptiler in the same folder as the tileserver.php file as described here https://www.maptiler.com/how-to/own-hosting/

Now start the Apache server, open your browser and go to 'http://localhost/tileserver'

if you just get plain php code in your screen, use this solution https://stackoverflow.com/a/3555714

Ur3yp8n.png

but... this is not the end. Because you still cannot use this in JOSM, the WMTS does not work on localhost domains...

qtZsBRJ.png

Okay, to 'fix' this (assuming you're on a Windows computer), open your hosts file, and redirect the localhost like this

127.0.0.1 example.local

or whatever you like (see http://www.techrepublic.com/blog/smb-te … p-server/)

restart the apache server

now your tileserver page should be at http://example.local/tileserver/

Finally, right click the WMTS link at the top right, copy it and paste in JOSM like you normally would.

Enjoy your offline tiles.

85vxUlU.jpg

Some notes: Maptiler's free version adds watermarks (not very obtrusive for editing OSM). As you can see from the image, the alignment is perfect but the sampling seems very poor, i will try to adjust the settings. The free version of Maptiler has a maximum resolution limit of 10K by 10K per image, Sentinel-2 tiles are.... 11K by 11K. There are scripts to split them though, so not a huge problem. https://gis.stackexchange.com/questions … n-and-gdal

Last edited by ff5722 (2017-06-13 07:57:57)

Offline

Board footer

Powered by FluxBB