Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#15932 closed enhancement (worksforme)

Also allow entering WMTS Imagery URLs in addition to GetCapabilities URLs

Reported by: jidanni Owned by: team
Priority: major Milestone:
Component: Core Version:
Keywords: Cc:

Description (last modified by Klumbumbus)

Just as https://josm.openstreetmap.de/wiki/Help/Preferences/Imagery
says, WMTS is missing.

And what's worse, one cannot add WMTS Imagery URLs!

In "Imagery Preferences" > Imagery Providers, there at the bottom left is
a +WMTS button.

It asks "Enter GetCapabilities URL"

(P.S., I have to type the above words in by hand as
I am not allowed to copy them.

I feel like my Mom, who never learned how to copy and paste.)

Alas, some sites e.g.,
https://opentopomap.org/about
only lists a imagery URL, not a GetCapabilities URL.

And indeed some sites may not even have a GetCapabilities URL.

And in the "Selected entries:" there are only "Imagery URL"s shown, no
GetCapabilities URLs shown anyway. Nor any right click to show what they
were. The program probably probes them once and throws them away anyway...

Therefore please also allow entering imagery URLs in addition to
GetCapabilities URLs.

(Or have the program, taking the imagery, initiate a probe to all the
usual places(?) the corresponding GetCapabilities URL may be.)

Anyway, the impression is: here is the mighty JOSM, but I can't even
tell it to use http://{switch:a,b,c}.tile.openxyz...

Attachments (1)

0.jpg (4.3 KB ) - added by jidanni 7 years ago.
Well then you have a big problem. Even though the outer frame says "Add Imagery URL" , the inner area says Enter GetCapabilites URL. It does not say entering anything else is legal.

Download all attachments as: .zip

Change History (10)

comment:1 by jidanni, 7 years ago

Also for WMS etc. on the other hand there is no way to give a GetCapabilities URL even if one wants to.

comment:2 by stoecker, 7 years ago

Resolution: worksforme
Status: newclosed

You're mixing a lot here.

  • For WMTS you can enter a URL and JOSM does the rest.
  • "WMTS without Capabilities" (your opentopomap example) aren't WMTS, but TMS and these are added with TMS button.

Everything you request is already there when you don't mix the different service types.

by jidanni, 7 years ago

Attachment: 0.jpg added

Well then you have a big problem. Even though the outer frame says "Add Imagery URL" , the inner area says Enter GetCapabilites URL. It does not say entering anything else is legal.

comment:3 by jidanni, 7 years ago

Never mind my particular example.

If it is OK to enter an imagery URL, than instead of just

Enter GetCapabilites URL

Please say

Enter GetCapabilites or Imagery URL

comment:4 by jidanni, 7 years ago

By the way, giving it http://landmaps.nlsc.gov.tw/S_Maps/wmts
results in

2018-02-16 19:21:31.174 INFO: GET http://landmaps.nlsc.gov.tw/S_Maps/wmts -> 200 (8.95 kB)
2018-02-16 19:21:31.252 WARNING: No default layer selected, choosing first layer.

and a partially different message on the screen, which I am unable to copy with the mouse, but you are welcome to try.

Anyway, it doesn't choose the first layer, but throws it all away.

comment:5 by jidanni, 7 years ago

For the WMS button it says enter "Service URL". It should be consistent about all the types of URLs one can enter. I gave it a GetCapabilites URL http://landmaps.nlsc.gov.tw/S_Maps/wms worked.

in reply to:  3 comment:6 by stoecker, 7 years ago

Replying to jidanni:

Never mind my particular example.

If it is OK to enter an imagery URL, than instead of just

Enter GetCapabilites URL

Please say

Enter GetCapabilites or Imagery URL

You're still mixing TMS and WMTS. These are two completely different systems, although some WMTS URL's can be TMS.

in reply to:  4 comment:7 by stoecker, 7 years ago

Replying to jidanni:

By the way, giving it http://landmaps.nlsc.gov.tw/S_Maps/wmts
results in

2018-02-16 19:21:31.174 INFO: GET http://landmaps.nlsc.gov.tw/S_Maps/wmts -> 200 (8.95 kB)
2018-02-16 19:21:31.252 WARNING: No default layer selected, choosing first layer.

and a partially different message on the screen, which I am unable to copy with the mouse, but you are welcome to try.

Anyway, it doesn't choose the first layer, but throws it all away.

To support this specific service URL if it is not working is clearly a specific bug report (either report it in a new ticket or reopen this and change the subject), but everything else discussed in this ticket is still an misunderstanding on your side.

comment:8 by jidanni, 7 years ago

OK I've got a lot to learn. In conclusion I get empty tiles anyway.

$ read f
https://landmaps.nlsc.gov.tw/S_Maps/wms?VERSION=1.1.1&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=&STYLES=&SRS=EPSG:3857&WIDTH=512&HEIGHT=512&BBOX=13443131.5996108,2768855.6547892,13452915.5388108,2778639.5939892
$ GET -SU $f
GET https://landmaps.nlsc.gov.tw/S_Maps/wms?VERSION=1.1.1&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=&STYLES=&SRS=EPSG:3857&WIDTH=512&HEIGHT=512&BBOX=13443131.5996108,2768855.6547892,13452915.5388108,2778639.5939892
User-Agent: lwp-request/6.31 libwww-perl/6.31

200 OK

comment:9 by Klumbumbus, 7 years ago

Description: modified (diff)
Summary: Also allow entering WTMS Imagery URLs in addition to GetCapabilities URLsAlso allow entering WMTS Imagery URLs in addition to GetCapabilities URLs

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.