Opened 16 years ago
Closed 16 years ago
#2883 closed defect (fixed)
WMS plugin broken, URL is missing separator &
| Reported by: | plerner | Owned by: | team |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | Core imagery | Version: | latest |
| Keywords: | misspelled url | Cc: |
Description
should be
note the '&' before bbox
Image couldn't be fetched: http://labs.metacarta.com/rectifier/wms.cgi?id=1234&srs=EPSG:4326&Service=WMS&Version=1.1.0&Request=GetMap&format=image/pngbbox=11.58
14300,49.9452996,11.5875545,49.9514241&width=500&height=500
at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Attachments (0)
Change History (8)
comment:1 by , 16 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
follow-up: 3 comment:2 by , 16 years ago
comment:3 by , 16 years ago
| Priority: | major → critical |
|---|---|
| Resolution: | duplicate |
| Status: | closed → reopened |
Replying to stoecker:
Closed as duplicate of #2881.
the labs.metacarta.com URL is not in the config file
mirror_http_svn.openstreetmap.org_applications_editors_josm_plugins_wmsplugin_sources.cfg
I also completely removed the wmsplugin, deleted the plugin directory+cfgfile, and then after re-downloading, had the same buggy URL again.
How can I change this?
comment:5 by , 16 years ago
BTW: Workaround is to add the missing & to the URL.
And yes, the problem is still there in latest. Also when pasting URLs into the Rectify dialog, they won't work unless you manually add the &.
comment:7 by , 16 years ago
This is the wrong code .... can you add the '&' at the end of the metacarta link.
Add default services
services.add(
new rectifierService("Metacarta Map Rectifier",
"http://labs.metacarta.com/rectifier/",
"http://labs.metacarta.com/rectifier/wms.cgi?id=__s__&srs=EPSG:4326"
+ "&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png",
This matches more than the "classic" WMS link, so users can pretty much
copy any link as long as it includes the ID
"labs
.metacarta
.com/(?:.*?)(?:/|=)([0-9]+)(?:
?|/|
.|$)",
"[0-9]+$")
);
services.add(
TODO: Change all links to mapwarper.net once the project has moved.
The RegEx already matches the new URL and old URLs will be forwarded
to make the transition as smooth as possible for the users
new rectifierService("Geothings Map Warper",
"http://warper.geothings.net/",
"http://warper.geothings.net/maps/wms/__s__?request=GetMap&version=1.1.1"
+ "&styles=&format=image/png&srs=epsg:4326&exceptions=application/vnd.ogc.se_inimage",
This matches more than the "classic" WMS link, so users can pretty much
copy any link as long as it includes the ID
"(?:mapwarper
.net|warper
.geothings
.net)/(?:.*?)/([0-9]+)(?:
?|/|
.|$)",
"[0-9]+$")
);



Closed as duplicate of #2881.