Modify

Opened 15 months ago

Closed 14 months ago

Last modified 9 months ago

#22691 closed enhancement (fixed)

Support pmtiles as layer

Reported by: rob.j.nickerson@… Owned by: rob.j.nickerson@…
Priority: normal Milestone:
Component: Plugin pmtiles Version:
Keywords: Cc:

Description

It would be good if support was added for pmtiles.

Attachments (0)

Change History (11)

comment:1 by stoecker, 15 months ago

Owner: changed from team to rob.j.nickerson@…
Status: newneedinfo

It seems extremely easy to setup with local tile delivery. Why should JOSM support it?

comment:2 by rob.j.nickerson@…, 15 months ago

Why should JOSM support it?

It provides an easy option for users to create a set of tiles and easily host them (e.g. if less than 1GB then hosting on GitHub-pages is possible). The alternative is that you need to set up a tile server (not so easy for novices like me) or generate all the tiles and then wait ages to get them uploaded to a hosting provider and incur their fees for hosting them. PMtiles look like an alternative and I already have a use case in mind if OSM editors start to support them.

Thanks,
Rob

comment:3 by stoecker, 14 months ago

Resolution: wontfix
Status: needinfoclosed

JOSM has already a plugin for MBTiles. https://wiki.openstreetmap.org/wiki/MBTiles

I suggest to open a request for the MBTiles plugin https://github.com/iandees/josm-mbtiles/ to also support pmtiles when mbtiles doesn't fulfill your needs. That would be the logical place to support a similar format.

comment:4 by anonymous, 14 months ago

I thought MVT support was now built in to JOSM and not a plugin.

in reply to:  4 comment:5 by stoecker, 14 months ago

Replying to anonym:

I thought MVT support was now built in to JOSM and not a plugin.

That's relevant here why? PMTiles is a raster format.

comment:6 by amanda@…, 10 months ago

pmtiles, like mbtiles, is a container format. It can contain raster tile data, or MVT vector tiles.

I, too, would like to see pmtiles support, it can be useful way for someone to share & use local tilesets,
The pmtiles format is very different from mbtiles, and much simplier.

comment:7 by taylor.smock, 9 months ago

Resolution: wontfixfixed

In 36112/osm:

Fix #22691: Add PMTiles plugin

This should be fairly easy to port to JOSM core, if there is demand from tile
providers to use PMTiles.

Caveats: There is a few classes copied from JOSM core, since I needed some things
to be visible that were not, and in some instances, the AbstractClass had some
methods that should be hoisted to the interface -- the AbstractClass in question
was written prior to our move to Java 8.

comment:8 by taylor.smock, 9 months ago

Component: CorePlugin pmtiles

There are a few things I'd like to change in JOSM core. I'll open a separate ticket for those changes to give people a chance to give feedback. It pretty much boils down to expanding visibility of a few methods and moving some method implementations into the respective interface as a default method. It looks like a lot of that was done prior to 2016, which is what the JOSM wikidata page has as the year we moved to Java 8.

comment:9 by taylor.smock, 9 months ago

In 36113/osm:

See #22691 (dist): Add PMTiles plugin

comment:10 by rob.j.nickerson@…, 9 months ago

Ah, amazing. Thank you. How does it work though? Do I need to update to the latest version of JOSM as well as installing the plugin? Where in the UI do I add pmtiles layers?

comment:11 by taylor.smock, 9 months ago

Do I need to update to the latest version of JOSM as well as installing the plugin?

You shouldn't need to update to the latest version of JOSM. I didn't do any code changes to JOSM for the plugin; there are some that I want to do, since I'm duplicating code in it right now.

You do need to be running JOSM with Java 17 or later. If you see a nag window to update, please update. If you ignored it at some point in time (and told it to never nag you again), you should see JOSM soon will no longer support this version of Java, you should update to version 17 or better! on the start screen.

You likely need to click on either Download list or Update plugins (which downloads a new copy of the plugin list) in JOSM Preferences -> Plugins.

Where in the UI do I add pmtiles layers?

It depends; where is the PMTiles file located?

If it is located on a remote server, use File -> Open Location. If it is located on your computer, use File -> Open....

There are a couple of rough edges that I still need to work on/find, but it works.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain rob.j.nickerson@….
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.