Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#3388 closed defect (wontfix)

wms-plugin problem

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: Core imagery Version:
Keywords: Cc: Schusch

Description

wanted to use the wmsplugin the first time since longer ...

winxp sp3, wmsplugin 17407, josm 2024

what I did (after it didn't work - i got only red tiles)

  • deselected wmsplugin in prefs
  • removed the wmsplugin.url.7.url and wmsplugin.url.7.name Yahoo Sat html:http://josm.openstreetmap.de/wmsplugin/YahooDirect.html? just to be sure ...
  • removed the prefs from the prefs folder C:\Dokumente und Einstellungen\<user>\Anwendungsdaten\JOSM\plugins\ removed the wmsplugin folder and the wmsplugin.jar
  • downloaded the webkit-image again and overwrote the files in C:\Programme\josm (which are the versions I had before - but just to be sure)
  • restarted josm
  • activated the wmsplugin again
  • restarted josm
  • the wms menu was there, but the Yahoo Sat entry is missing
  • so i added the Yahoo Sat entry from the defaults in the preference dialog html:http://josm.openstreetmap.de/wmsplugin/YahooDirect.html? the default download program is webkit-image {0}
  • downloaded a region as an example: http://www.openstreetmap.org/?lat=49.7697&lon=8.5193&zoom=13&layers=B000FTF
  • set the zoom to 1500 m
  • downloaded the region in the zoom window again 49.72534909646536, 8.450555776837591, 49.81401284719807, 8.58804422316241
  • activated the Yahoo Sat entry in the wms menu
  • red tiles ... with ERROR ReferenceError: Can't find variable: YGeoPoint
  • changed projection method (which was Merkator up to now) to WGS84 Geografisch
  • wanted to download Yahoo Sat tiles again (Sichtbare Kacheln laden) which ended up in an error: Das angeforderte Gebiet ist zu groß. Zoomen Sie ein wenig oder ändern Sie die Auflösung
  • set the zoom back to 1500 m
  • still the same error
  • set the zoom back to 1000 m
  • still the same error

up to now I had the following lines in the terminal window (i leave them broken as the windows command line delivers them)


Revision: Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 2024
Node Kind: directory
Last Changed Author: ce
Last Changed Rev: 2024
Last Changed Date: 2009-09-01 23:53:29 +0200 (Tue, 01 Sep 2009)

loading measurement
loading utilsplugin
loading validator
loading wmsplugin
GET http://www.openstreetmap.org/api/capabilities... OK
Kommunikation mit http://www.openstreetmap.org/api mittels Protokollversion 0.6
etabliert.
GET http://www.openstreetmap.org/api/0.6/map?bbox=8.49732734375,49.758713671875,
8.54127265625,49.780686328125
GET http://www.openstreetmap.org/api/0.6/map?bbox=8.450555776837591,49.725349096
46536,8.58804422316241,49.81401284719807
Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=8.449
5934,49.7903387,8.5539094,49.8576369&srs=EPSG:4326&width=500&height=500
Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=8.449
5934,49.7229469,8.5539094,49.7903387&srs=EPSG:4326&width=499&height=500
Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=8.553
9094,49.7229469,8.6582254,49.7903387&srs=EPSG:4326&width=499&height=500
Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=8.553
9094,49.7903387,8.6582254,49.8576369&srs=EPSG:4326&width=500&height=500


  • now i restarted josm
  • downloaded the last downloaded region
  • activated the Yahoo Sat entry in the wms menu
  • red tiles again, same error ERROR ReferenceError: Can't find variable: YGeoPoint

(i did all that now in exact the way i wrote this down - I tried before in mixed up order ...)

i can download all these tiles with the url from the command line with firefox - but the tiles don't find their way in the cache folder ... perhaps that's the problem? Or is it a problem with the html: part - do I have to set some more properties so josm or the wmsplugin can download the tiles?

Attachments (0)

Change History (19)

comment:1 by Schusch, 16 years ago

that was me ...

I also deleted all wms entries from the extended prefs, installed the wmsplugin again ... no success ... still the error

ERROR ReferenceError: Can't find variable: YGeoPoint

(one question which isn't clearly answered on the wiki page of the wmsplugin - which projection should be used with the yahoo images ... merkator or wgs 84? I will add that to the page if i come know it)

comment:2 by Schusch, 16 years ago

Cc: Schusch added

ping

in reply to:  1 comment:3 by Schusch, 16 years ago

as a comment to myself:

I also deleted all wms entries from the extended prefs, installed the wmsplugin again
... no success ... still the error

but from that moment on, the Yahoo Sat entry in the wms menu showed up on its own when activating or installing the wmsplugin - one of the old entries (or a combination) may have been the reason for the Yahoo Sat menu entry not showing up ...

but of course i still have these errors

comment:4 by stoecker, 16 years ago

The "ERROR ReferenceError: Can't find variable: YGeoPoint" is a bug in the JavaScript code for Yahoo. This is not related to JOSM. This sometimes happens and it seems for you it always happens. I do not know the cause.

We have another solution for this based on OpenLayers (use YahooSat.html instead of YahooDirect.html in the Yahoo-URL). Sadly the OpenLayers JavaScript code seems to be broken as well ATM. I had no time yet to investigate what's the reason, but it does no longer load the correct coordinates.

One note: Switching projection in JOSM will not work with WMS-layers. And the code to removed layers with worng projection is still missing in JOSM.

comment:5 by stoecker, 16 years ago

One last note: Maybe you have a proxy problem somehow. Does it help to copy the YahooDirect.html file to your local harddisk and reference this one instead of the HTTP-URL (Use file://path/YahooDirect.html as URL inserting the path you save the file)?

comment:6 by Schusch, 16 years ago

well - no proxy problem - still the same red tiles after trying what you suggested ... also no success with YahooSat.html

can I help with something here (not knowing anything about javaScript ...)

comment:7 by Schusch, 16 years ago

with josm 2079 and wmsplugin 17522 there are more mistakes now (see example below) - does this help better?

java.lang.Exception: sun.net.www.protocol.file.FileURLConnection cannot be cast
to java.net.HttpURLConnection
Image couldn't be fetched: file:C:/install/gps/josm/test/YahooDirect.html?bbox=8
.2592583,49.4218196,8.2730698,49.4308029&srs=EPSG:4326&width=499&height=499

at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:74)
at wmsplugin.Grabber.attempt(Grabber.java:67)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:51)
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)

comment:8 by stoecker, 16 years ago

Does YahooSat.html now work for you? I fixed the JavaScript code.

comment:9 by Schusch, 16 years ago

tried again, no success ...

updated the plugin before (josm 2184, wmsplugin 17704) - the error message changed from something like "error" to "ERROR" ReferenceError: Can't find variable: YGeoPoint ... but there are still red tile

terminal output was:

Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=8.603
3022,49.8234831,8.6868294,49.8773402&srs=EPSG:4326&width=500&height=500
Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=8.436
2478,49.7155888,8.5197750,49.7695659&srs=EPSG:4326&width=500&height=499

(booting the laptop with opensuse 11.0 let's the plugin work well ...)

comment:10 by stoecker, 16 years ago

Sorry for beeing unclear. Please try "http://josm.openstreetmap.de/wmsplugin/YahooSat.html?" instead of "http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?". This one uses OpenLayers instead of direct Yahoo access. Maybe that helps (althought I still do not understand the reasons why it does not work at all).

comment:11 by Schusch, 16 years ago

macht nix :-)

sorry for not delivering better news: now I get red tiles with the message: ERROR ReferenceError: Can't find variable: OpenLayers

comment:12 by Schusch, 16 years ago

for the record--example of terminal output:

Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooSat.html?bbox=9.556860
4,49.4179430,9.6679867,49.4901814&srs=EPSG:4326&width=499&height=500
Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooSat.html?bbox=9.334607
8,49.4179430,9.4457341,49.4901814&srs=EPSG:4326&width=499&height=500

comment:13 by stoecker, 16 years ago

Hmpf. Someone is blocking JavaScript on your machine, but not all Javascript). I can only think of following reasons:

  • You have a (transparent) Proxy or Webfilter somewhere in the line
  • Your firewall blocks QT network access
  • The QT installation is to old (should be >= 4.4)
  • The QT installation is defective
  • There are QT settings which block things.

In the QT programming examples exists a Demo-Webbrowser. I don't know if this is available in compiled form, but it would be interesting to know if this one has the same problems.

The problem is that without longer time to debug directly at your machine I wont be able to find the reason, so if you can't find a useful hint yourself this will be a WORKSFORME bug.

One thing I did not yet ask:
Your errors indicate that you have installed "webkit-image". Did you ever try it directly (without josm?).

  • i.e. call webkit-image "URL" >file.jpg
  • This should create the same result as from josm.
  • When you try other websites like www.google.de it should also create correct image files.
  • Interesting would be other websites which use Javascript to enable/disable visible elements.

comment:14 by stoecker, 16 years ago

Owner: changed from team to anonymous
Status: newneedinfo

comment:15 by Schusch, 16 years ago

hm, i get:

schusch@compi /cygdrive/c/Programme/josm
$ ./webkit-image.exe "http://www.heise.de" >file.jpg
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
QSslSocket: cannot call unresolved function OPENSSL_add_all_algorithms_noconf

(what is OPENSSL used for here?)

in reply to:  15 comment:16 by Schusch, 16 years ago

uups, forgotten the important info:

file.jpg gives an images of the page ... but the google-logo, which is

http://www.google.de/logos/confuciussp09.gif

is missing. Downloading heise.de there are also some images missing, some not.

This download didn't finish for some minutes:

$ ./webkit-image.exe "http://de.wikipedia.org/wiki/Bundesautobahn_1" >file.jpg

(i hope this is with javascript?)

comment:17 by Schusch, 16 years ago

starting webkit-image from the windows command line (cmd.exe) has the same effect ... the wikipedia page (see before) doesn't download in a jpeg.

even stopping the windows firewall and the virus scanner doesn't help.

I have webkit-image installed, as you suggested ... with the qt-files from the same zip archive (I reinstalled it together with the reinstallation of the wms-plugin (from a fresh download)).

anything else i can do?

comment:18 by stoecker, 16 years ago

Resolution: wontfix
Status: needinfoclosed

Following indicates, that your Qt installation is somehow mangled: http://www.qtcentre.org/forum/f-qt-programming-2/t-qnetworkaccessmanager-get-request-causing-qsslsocket-errors-22906.html

I only can close this as WONTFIX, thought it would be nice if you could add a note when you are able to fix the Qt problem.

comment:19 by Schusch, 16 years ago

ok for me (especially because it works on linux :-)

I'll spend some more time on it the next days (though I don't have too much time for these problems) - if there is a solution there will be feedback from me

thanks for your efforts

Modify Ticket

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