Modify

Opened 6 years ago

Closed 5 years ago

Last modified 2 months ago

#17553 closed enhancement (worksforme)

Better support 512x512 tiles

Reported by: naoliv Owned by: team
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: Cc: wiktorn

Description

I am unsure if this is something that JOSM needs to better support, but go here (-21.809315, -48.186871) and create a custom TMS layer with this:

tms:https://api.maptiler.com/maps/b2037b15-5614-4fed-9608-9830b8dc574a/{z}/{x}/{y}.png?key=YmPoUxbTlEHlrASzv56Z

This layer has tiles with a size of 512x512 pixels and we can see this in JOSM:

https://i.imgur.com/ifIGl7g.png
(basically we can't really see anything useful)

If, however, we use the same layer but with 256x256 tiles

tms:https://api.maptiler.com/maps/b2037b15-5614-4fed-9608-9830b8dc574a/256/{z}/{x}/{y}.png?key=YmPoUxbTlEHlrASzv56Z

we can see this:
https://i.imgur.com/wrCbceU.png

Could JOSM somehow be improved to better support 512x512 tiles?

512x512 example: https://api.maptiler.com/maps/b2037b15-5614-4fed-9608-9830b8dc574a/19/191962/294699.png?key=YmPoUxbTlEHlrASzv56Z
256x256 example: https://api.maptiler.com/maps/b2037b15-5614-4fed-9608-9830b8dc574a/256/19/191962/294699.png?key=YmPoUxbTlEHlrASzv56Z

JOSM:

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-04-02 01:24:27 +0200 (Tue, 02 Apr 2019)
Revision:14953
Build-Date:2019-04-02 01:30:51
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (14953 pt_BR) Linux Debian GNU/Linux buster/sid
Memory Usage: 343 MB / 2048 MB (40 MB allocated, but free)
Java version: 11.0.3+4-Debian-3, Debian, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-11-jre:amd64-11.0.3+4-3
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-21
VM arguments: [-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2, -Dawt.useSystemAAFontSettings=gasp]
Dataset consistency test: No problems found

Change History (5)

comment:1 by Aurimas, 5 years ago

JOSM already supports 512x512 tiles. You just need to specify that custom imagery layer uses non-standard (256x256) tile size.
After you create a custom imagery layer and save the preferences:

  1. Open Preferences (F12).
  2. Enable "Expert Mode".
  3. Go to "Advanced Preferences".
  4. Search for "imagery.entries".
  5. Select and edit key "imagery.entries".
  6. Locate your newly added layer in a list.
  7. Add key "tileSize" with value "512".
  8. Save preferences, restart JOSM.

comment:2 by stoecker, 5 years ago

Resolution: worksforme
Status: newclosed

The other option is to create proper XML for imagery and add the XML as a secondary source (or when freely available add it to JOSMs standard list).

comment:3 by stoecker, 2 months ago

Ticket #24187 has been marked as a duplicate of this ticket.

comment:4 by PPete2, 2 months ago

Well, at least add the info how 512px-images are supported into the "add TMS-layer" dialog. Otherwise most people like me will have no clue that and how 512px-tiles are supported at all.

comment:5 by stoecker, 2 months ago

Essentially we encourage people to use the Maps for imagery which is usable for OSM (and also add missing entries there for everybody to use). Exposing all the additional features in the settings interface is not really wanted. For non-OSM compatible imagery it is by design, that it's not too easy to use ;-)

Add Comment


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