#5185 closed defect (fixed)
"image == null" when trying to use WMS - Yahoo
| Reported by: | e2jk | Owned by: | e2jk |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core imagery | Version: | |
| Keywords: | Cc: |
Description
I can't make WMS work, with Yahoo imagery or any other wms provider. A new layer is created in JOSM but no tile appear.
I am using Ubuntu 10.04, JOSM 3329 and wmsplugin 22008. Also, as I read something about it in #4281, I am using OpenJDK because this is the only option that comes packaged in the latest version of Ubuntu. Would it be possible to analyze what goes wrong with downloading images in OpenJDK, when the rest of JOSM works fine with it?
emilien@bohr:~$ java -jar -Xmx512M /home/emilien/.bin/osm/josm-tested.jar Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2010-06-11 01:31:34 Last Changed Author: stoecker Revision: 3329 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2010-06-10 09:53:42 +0200 (Thu, 10 Jun 2010) Last Changed Rev: 3329 chargement du greffon 'wmsplugin' (version 22008) chargement du greffon 'validator' (version 22004) chargement du greffon 'cadastre-fr' (version 21877) Pluging cadastre-fr v2.0 started... current cache directory: /home/emilien/.josm/plugins/cadastrewms/ shortcut F11 already redefined; do not change shortcut F11 already redefined; do not change GET http://api.openstreetmap.org/api/capabilities... OK Communication établie avec http://api.openstreetmap.org/api en utilisant le protocole de version 0.6 GET http://api.openstreetmap.org/api/0.6/map?bbox=5.2878571,43.616690899999995,5.3043365,43.6236501 Silent shortcut conflict: 'subwindow:conflict' moved by 'menu:Cadastre' to 'Alt+Maj+C'. Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2821965,43.6109508,5.2905412,43.6169924&srs=EPSG:4326&width=499&height=500 Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2821965,43.6169924,5.2905412,43.6230334&srs=EPSG:4326&width=500&height=500 Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2821965,43.6230334,5.2905412,43.6290738&srs=EPSG:4326&width=499&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2905412,43.6109508,5.2988859,43.6169924&srs=EPSG:4326&width=499&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2905412,43.6169924,5.2988859,43.6230334&srs=EPSG:4326&width=500&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2905412,43.6230334,5.2988859,43.6290738&srs=EPSG:4326&width=499&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2988859,43.6109508,5.3072306,43.6169924&srs=EPSG:4326&width=499&height=499 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2988859,43.6169924,5.3072306,43.6230334&srs=EPSG:4326&width=500&height=499 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2988859,43.6230334,5.3072306,43.6290738&srs=EPSG:4326&width=499&height=499 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2821965,43.6109508,5.2905412,43.6169924&srs=EPSG:4326&width=499&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2821965,43.6169924,5.2905412,43.6230334&srs=EPSG:4326&width=500&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2821965,43.6230334,5.2905412,43.6290738&srs=EPSG:4326&width=499&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2905412,43.6109508,5.2988859,43.6169924&srs=EPSG:4326&width=499&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2905412,43.6169924,5.2988859,43.6230334&srs=EPSG:4326&width=500&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2905412,43.6230334,5.2988859,43.6290738&srs=EPSG:4326&width=499&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2988859,43.6109508,5.3072306,43.6169924&srs=EPSG:4326&width=499&height=499 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2988859,43.6169924,5.3072306,43.6230334&srs=EPSG:4326&width=500&height=499 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=5.2988859,43.6230334,5.3072306,43.6290738&srs=EPSG:4326&width=499&height=499 image == null! etc.
(I manually added the newlines in the console to differentiate the different steps)
Attachments (0)
Change History (8)
comment:1 by , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
comment:2 by , 16 years ago
This is what I get:
gnome-web-photo --mode=photo --format=png http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=1851276.4086204,3196781.7858972,1853206.8324042,3198712.2096810&srs=EPSG:3944&width=500&height=500 /dev/stdout > test.png [3] 2407 [4] 2408 [5] 2409 bash: /dev/stdout: Permission non accordée emilien@tesla:~$ Missing arguments! Usage: gnome-web-photo.real [--mode=photo|thumbnail|print] [...] Usage: gnome-web-photo.real [-t TIMEOUT] [--force] [--format FORMAT] [-w WIDTH] [--files] URI|FILE OUTFILE [...]
As you can see, it says that permission is not granted for /dev/stdout and that there are missing arguments.
comment:3 by , 16 years ago
And wheb I ctrl-C at the end (because the command is not finished, I get some more output. This is the whole output then:
emilien@tesla:~$ gnome-web-photo --mode=photo --format=png http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=1851276.4086204,3196781.7858972,1853206.8324042,3198712.2096810&srs=EPSG:3944&width=500&height=500 /dev/stdout > test.png [3] 2407 [4] 2408 [5] 2409 bash: /dev/stdout: Permission non accordée emilien@tesla:~$ Missing arguments! Usage: gnome-web-photo.real [--mode=photo|thumbnail|print] [...] Usage: gnome-web-photo.real [-t TIMEOUT] [--force] [--format FORMAT] [-w WIDTH] [--files] URI|FILE OUTFILE [...] ^C [3] Exit 1 gnome-web-photo --mode=photo --format=png http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=1851276.4086204,3196781.7858972,1853206.8324042,3198712.2096810 [4] Done srs=EPSG:3944 [5] Done width=500 emilien@tesla:~$
comment:4 by , 16 years ago
For a start, you should put quotes around the URL:
gnome-web-photo --mode=photo --format=png "http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=1851276.4086204,3196781.7858972,1853206.8324042,3198712.2096810&srs=EPSG:3944&width=500&height=500" /dev/stdout > test.png
comment:5 by , 16 years ago
With the quotes I don't have those errors again, but it apparently times out:
emilien@tesla:~$ gnome-web-photo --mode=photo --format=png "http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=1851276.4086204,3196781.7858972,1853206.8324042,3198712.2096810&srs=EPSG:3944&width=500&height=500" /dev/stdout > test.png Load timed out; consider using --force or increasing the timeout (use 0 for no timeout)
I tried with the --force param but it also timed out.
I tried opening the url directly in my browser, and that gave me a red tile with "ERROR
Invalid parameters" written in it. What do you get when you open this url? Could you provide me with a url generated by your JOSM so that I can try to open it with gnome-web-photo? Maybe the url generated on my side is not valid?
comment:6 by , 16 years ago
I get the same in the browser. There seems to be no yahoo imagery for your region.
Try anther region for test:
http://www.openstreetmap.org/?lat=50.73779&lon=7.09188&zoom=16
This successfully fetches the following url:
http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=7.0888630,50.7357915,7.0917260,50.7376035&srs=EPSG:4326&width=500&height=499
comment:7 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | needinfo → closed |
I think I found the reason why: I was using another projection than Mercator, and with the coordinates expressed as . You can see that in the parameters of the previous url: bbox=1851276.4086204,3196781.7858972,1853206.8324042,3198712.2096810&srs=EPSG:3944. When I changed that I got another url, which opened fine in the browser. I left JOSM for like 10 minutes and on the upper part of the zone I had opened I could see 2 Yahoo tiles. It was really slow but I could see something, so I guess we can close this ticket. I only hope it will be faster! What I don't understand is that opening it in the browser is really fast, but in JOSM it is so slow.
I went to Bonn, and while I got some tiles to appear, I still got some "image == null":
emilien@tesla:~$ java -jar -Xmx1000M /home/emilien/.bin/josm-tested.jar Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2010-06-11 01:31:34 Last Changed Author: stoecker Revision: 3329 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2010-06-10 09:53:42 +0200 (Thu, 10 Jun 2010) Last Changed Rev: 3329 chargement du greffon 'wmsplugin' (version 21796) chargement du greffon 'validator' (version 21667) chargement du greffon 'cadastre-fr' (version 21877) Pluging cadastre-fr v2.0 started... current cache directory: /home/emilien/.josm/plugins/cadastrewms/ shortcut F11 already redefined; do not change GET http://api.openstreetmap.org/api/capabilities... OK Communication établie avec http://api.openstreetmap.org/api en utilisant le protocole de version 0.6 GET http://api.openstreetmap.org/api/0.6/map?bbox=7.0800018,50.7203733,7.1177673,50.7486215 Silent shortcut conflict: 'subwindow:conflict' moved by 'menu:Cadastre' to 'Alt+Maj+C'. Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=7.0422026,50.7154430,7.0735013,50.7352563&srs=EPSG:4326&width=499&height=500 Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=7.0422026,50.7352563,7.0735013,50.7550612&srs=EPSG:4326&width=500&height=500 Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=7.0735013,50.7154430,7.1048000,50.7352563&srs=EPSG:4326&width=499&height=499 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=7.0735013,50.7352563,7.1048000,50.7550612&srs=EPSG:4326&width=500&height=499 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=7.0422026,50.7154430,7.0735013,50.7352563&srs=EPSG:4326&width=499&height=500 image == null! Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=7.0422026,50.7352563,7.0735013,50.7550612&srs=EPSG:4326&width=500&height=500
Now I see that the wiki states " error : bad parameters red tiles. Check that configuration -> projection is set to EPSG:4326 or Mercator." Maybe an enhancement would be to check what the EPSG code is, and if it's not related to Mercator (4326 or ), then display some error message?
comment:8 by , 16 years ago
Actually the webpage checks whether correct code is used or not and display red tile with error. It seems you still have a problem with installation, as it shouldn't be slower than in browser. Maybe you should try a recent webkit-image instead.



Usually that indicated your downloading process is broken. Test the download by hand calling the given URL's with the choosen download commandline. It should output the wanted image directly on standard output (you need to redirect it into a file).
If you get correct images then, it may be a josm issue, otherwise it is a installation issue you need to fix yourself.
Report results.