Menu

#523 Read timed out when loading Geoportale Nazionale WMS

undecided
closed-works-for-me
nobody
WMS (2)
not specified
5
2023-10-31
2023-10-28
No

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

Related

Bugs: #523

Discussion

  • ede

    ede - 2023-10-29

    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
  • Jukka Rahkonen

    Jukka Rahkonen - 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)

    GET /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 HTTP/1.1
    Host: wms.pcn.minambiente.it
    User-Agent: curl/7.79.1-DEV
    Accept: /

    0 0 0 0 0 0 0 0 --:--:-- 0:00:17 --:--:-- 0* Mark bundle as not supporting multiuse
    < HTTP/1.1 200 OK
    < Server: Apache/2.4.18 (Win64)
    < Access-Control-Allow-Origin: *
    < Content-Type: image/png
    < Content-Length: 33918
    < Cache-Control: max-age=300
    < Expires: Sun, 29 Oct 2023 20:57:04 GMT
    < Date: Sun, 29 Oct 2023 20:52:04 GMT
    < Connection: keep-alive
    < X-N: S
    <
    { [1081 bytes data]
    100 33918 100 33918 0 0 801 0 0:00:42 0:00:42 --:--:-- 6943

    • Connection #0 to host wms.pcn.minambiente.it left intact
     
    • Roberto Rossi

      Roberto Rossi - 2023-10-30

      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:

      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)

      GET
      /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
      HTTP/1.1
      Host: wms.pcn.minambiente.it
      User-Agent: curl/7.79.1-DEV
      Accept: ///
      
      0 0 0 0 0 0 0 0 --:--:-- 0:00:17 --:--:-- 0* Mark bundle as not
      supporting multiuse
      < HTTP/1.1 200 OK
      < Server: Apache/2.4.18 (Win64)
      < Access-Control-Allow-Origin: *
      < Content-Type: image/png
      < Content-Length: 33918
      < Cache-Control: max-age=300
      < Expires: Sun, 29 Oct 2023 20:57:04 GMT
      < Date: Sun, 29 Oct 2023 20:52:04 GMT
      < Connection: keep-alive
      < X-N: S
      <
      { [1081 bytes data]
      100 33918 100 33918 0 0 801 0 0:00:42 0:00:42 --:--:-- 6943
      * Connection #0 to host wms.pcn.minambiente.it left intact
      

      [bugs:#523] https://sourceforge.net/p/jump-pilot/bugs/523/ Read
      timed out when loading Geoportale Nazionale WMS

      Status: open
      Milestone: undecided
      Labels: WMS
      Created: Sat Oct 28, 2023 05:35 PM UTC by Roberto Rossi
      Last Updated: Sun Oct 29, 2023 11:59 AM UTC
      Owner: nobody

      OpenJump is no more able to load Italian Geoportale Nazionale WMS
      http://www.pcn.minambiente.it/mattm/servizio-wms.
      Here are some services (in order: image, points, polylines and a
      polygons):
      *
      http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/ortofoto_colore_12.map
      *
      http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/LimitiAmministrativi_2020.map
      *
      http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/Aste_fluviali.map
      *
      http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/Bacini_idrografici.map

      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


      Sent from sourceforge.net because
      jump-pilot-devel@lists.sourceforge.net is subscribed to
      https://sourceforge.net/p/jump-pilot/bugs/

      To unsubscribe from further messages, a project admin can change
      settings at https://sourceforge.net/p/jump-pilot/admin/bugs/options.
      Or, if this is a mailing list, you can unsubscribe from the mailing list.


      Jump-pilot-devel mailing list
      Jump-pilot-devel@lists.sourceforge.net
      https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

      --

      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

  • ede

    ede - 2023-10-31
    • status: open --> closed-works-for-me
     
  • Jukka Rahkonen

    Jukka Rahkonen - 2023-10-31

    Sorry 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.

     
    • Roberto Rossi

      Roberto Rossi - 2023-11-01

      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:

      Sorry 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.


      [bugs:#523] https://sourceforge.net/p/jump-pilot/bugs/523/ Read
      timed out when loading Geoportale Nazionale WMS

      Status: closed-works-for-me
      Milestone: undecided
      Labels: WMS
      Created: Sat Oct 28, 2023 05:35 PM UTC by Roberto Rossi
      Last Updated: Tue Oct 31, 2023 05:14 PM UTC
      Owner: nobody

      OpenJump is no more able to load Italian Geoportale Nazionale WMS
      http://www.pcn.minambiente.it/mattm/servizio-wms.
      Here are some services (in order: image, points, polylines and a
      polygons):
      *
      http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/ortofoto_colore_12.map
      *
      http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/LimitiAmministrativi_2020.map
      *
      http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/Aste_fluviali.map
      *
      http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/Vettoriali/Bacini_idrografici.map

      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


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/jump-pilot/bugs/523/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --

      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


Log in to post a comment.

MongoDB Logo MongoDB