OpenJump is no more able to load Italian Geoportale Nazionale WMS.
Here are some services (in order: image, points, polylines and a polygons):
In the Status bar "Read timed out" appears.
In the past months I was able to load them, and they still work in other software like QGIS, or ArcMap, Or ArcGIS Pro, AdB-ToolBox (a software derived from OpenJump but which has his own WMS, WFS, WCS reader, which points to Geoportale nazionale data).
So the problem seems (to me) a combination of particular OpenJump settings and Geoportale nazionale servers change...
The same Read timed out appears (often, not always) loading some of the http://ows.terrestris.de/osm/service layers
Roberto Rossi
hey Roberto,
which OJ version are you using? assuming it is OJ 2.x please open an issue on https://github.com/openjump-gis/openjump/issues and i will have a look.
we switched platform with the OJ 2.x release. OJ1.x is not actively maintained anymore.
..ede
Last edit: ede 2023-10-29
That WMS service seems to be very slow. This curl example took 42 seconds. Notice < Cache-Control: max-age=300 that means that the same query will come from the cache for next 5 minutes and it will be fast. Edit for example WIDTH= or HEIGHT= parameters for bypassing the cache. Maybe the timeout in OpenJUMP is too short but they should be able to do much better at minambiente.it.
C:\Jukka>curl -v "http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/Bacini_idrografici.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&WIDTH=956&HEIGHT=410&LAYERS=ID.ACQUEFISICHE.BACINIIDROGRAFICI.PRINCIPALI&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=34.93762575452716,0.7132796780684094,49.43762575452716,28.6046277665996&CRS=EPSG:4326&STYLES=GN%3APredefinito" -o out.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Trying 2.21.96.8:80...
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 Connected to wms.pcn.minambiente.it (2.21.96.8) port 80 (#0)
Thank you Jukka,
I'll try to give some of your indications to Geoportale Nazionale IT
office...
I'll also try to use WIDTH= and HEIGHT= parameters, if I'm able.
Roberto
Il 29/10/2023 22:05, Jukka Rahkonen via Jump-pilot-devel ha scritto:
--
Roberto Rossi, PhD
Dipartimento di Geoscienze
Università degli Studi di Padova
Via G. Gradenigo, 6 - 35131 Padova (Italy)
Tel. +39 049 827 9155
Docente a contratto di Applicazioni GIS in idrologia
Corso di Laurea Magistrale in Scienze forestali e ambientali
e-mail: roberto.rossi@unipd.it
Mob. +39 347 6780087
Zoom: unipd.zoom.us/my/roberto.rossi
Related
Bugs:
#523good point Jukka,
tried myself. default timeout in OJ is 5 seconds. this times out. you can raise the value per (e.g. in english menu)
Customize -> Options -> Network properties -> Timeout -> Read timeout (ms)
.
raising it to 60s = 60.000 loads the layer after about 10s or so.
does that solve your issue Roberto?
Last edit: ede 2023-10-29
Thank you very much Ede,
I'm using OpenJump 2.2.1, rev. 5222
I did not know that Network Properties Option!
Today I'm out of office, and with my smartphone connection I'm not sure
to test it correctly.
I'll try later and let you know if it works
Roberto
Il 29/10/2023 22:39, ede via Jump-pilot-devel ha scritto:
--
Roberto Rossi, PhD
Dipartimento di Geoscienze
Università degli Studi di Padova
Via G. Gradenigo, 6 - 35131 Padova (Italy)
Tel. +39 049 827 9155
Docente a contratto di Applicazioni GIS in idrologia
Corso di Laurea Magistrale in Scienze forestali e ambientali
e-mail: roberto.rossi@unipd.it
Mob. +39 347 6780087
Zoom: unipd.zoom.us/my/roberto.rossi
Related
Bugs:
#523Dear Ede,
Dear Jukka,
I confirm that raising the Read timeout parameter solves the problem!
Jukka , I verified that all the Geoportale nazionale layers have a
MaxWidth and a MaxHeight value set to 2048. If you have a large
resolution monitor and a big OJ window open this can be a problem. Using
the WIDTH parameter helps!
Do you know hot to combine more than one WMS additional parameter: I
tried with ;,&? without success
I think is possible to close the #523 bug
Maybe can be useful for inexperienced user to raise the default timeout
parameter in the next releases.
Thank you for your help
Roberto Rossi
Il 29/10/2023 22:39, ede via Jump-pilot-devel ha scritto:
--
Roberto Rossi, PhD
Dipartimento di Geoscienze
Università degli Studi di Padova
Via G. Gradenigo, 6 - 35131 Padova (Italy)
Tel. +39 049 827 9155
Docente a contratto di Applicazioni GIS in idrologia
Corso di Laurea Magistrale in Scienze forestali e ambientali
e-mail: roberto.rossi@unipd.it
Mob. +39 347 6780087
Zoom: unipd.zoom.us/my/roberto.rossi
Related
Bugs:
#523I've just received an answer from the Geoportale Nazionale technicians.
They suggest these values:
Roberto
Il 29/10/2023 22:39, ede via Jump-pilot-devel ha scritto:
--
Roberto Rossi, PhD
Dipartimento di Geoscienze
Università degli Studi di Padova
Via G. Gradenigo, 6 - 35131 Padova (Italy)
Tel. +39 049 827 9155
Docente a contratto di Applicazioni GIS in idrologia
Corso di Laurea Magistrale in Scienze forestali e ambientali
e-mail: roberto.rossi@unipd.it
Mob. +39 347 6780087
Zoom: unipd.zoom.us/my/roberto.rossi
Related
Bugs:
#523the ampersand (&) should work to concatenate url parameters like e.g.
WIDTH=956&HEIGHT=410Thanks Ede,
/ the ampersand (&) should work to concatenate url parameters like
e.g. |WIDTH=956&HEIGHT=410|/
it workf if you add the parameters at the end of the URL text (i.e.
http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/Bacini_idrografici.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&WIDTH=1000&STYLES=default)
it doesn't using the Additional parameters value in OJ Open command window
Roberto
Il 31/10/2023 18:14, ede ha scritto:
--
Roberto Rossi, PhD
Dipartimento di Geoscienze
Università degli Studi di Padova
Via G. Gradenigo, 6 - 35131 Padova (Italy)
Tel. +39 049 827 9155
Docente a contratto di Applicazioni GIS in idrologia
Corso di Laurea Magistrale in Scienze forestali e ambientali
e-mail: roberto.rossi@unipd.it
Mob. +39 347 6780087
Zoom: unipd.zoom.us/my/roberto.rossi
Related
Bugs:
#523Sorry Roberto, I may have confused you with WIDTH and HEIGHT. Users are not really meant to define those manually. The WMS client software, in this case OpenJUMP, sets them automatically to match the map area. If you have problems with the WMS server due to too wide or high GetMap requests, adjust the size of the project window of OpenJUMP smaller. You should also learn to use the Display_WMS_URL tool from the Bean Shell tools. That shows the URL that OpenJUMP has sent for the WMS server. Open the details and you will see all the parameters. That is very useful for debugging.
Thank you Jukka for clarifications ad suggestions...
/Display_WMS_URL Bean Shell tool/ is actually very useful to understand
how the WMS request works! I didn't know it
Anyway, WIDTH parameter could be useful to avoid problems with MaxWidth
and MaxHeight values, set to 2048 in Geoportale Nazionale data!
Roberto
Il 31/10/2023 20:52, Jukka Rahkonen ha scritto:
--
Roberto Rossi, PhD
Dipartimento di Geoscienze
Università degli Studi di Padova
Via G. Gradenigo, 6 - 35131 Padova (Italy)
Tel. +39 049 827 9155
Docente a contratto di Applicazioni GIS in idrologia
Corso di Laurea Magistrale in Scienze forestali e ambientali
e-mail: roberto.rossi@unipd.it
Mob. +39 347 6780087
Zoom: unipd.zoom.us/my/roberto.rossi
Related
Bugs:
#523