[GRASS-dev] [GRASS GIS] #3648: Error when using WMS on Windows

GRASS GIS trac at osgeo.org
Mon Sep 17 07:37:59 PDT 2018


#3648: Error when using WMS on Windows
-------------------------+-------------------------
 Reporter:  annakrat     |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  7.6.0
Component:  Python       |    Version:  unspecified
 Keywords:  WMS          |        CPU:  Unspecified
 Platform:  MSWindows 8  |
-------------------------+-------------------------
 When using r.in.wms (through the GUI or directly), I get:

 `Errno 10054 An existing connection was forcibly closed by the remote
 host.`

 The wms service is:

 `https://services.nationalmap.gov/arcgis/services/USGSNAIPPlus/MapServer/WMSServer?`

 Looking at the code in wms_base.py
 (https://trac.osgeo.org/grass/browser/grass/trunk/scripts/r.in.wms/wms_base.py#L270)

 it boils down to:


 {{{
 >>> from urllib2 import urlopen
 >>>
 urlopen('https://services.nationalmap.gov/arcgis/services/USGSNAIPPlus/MapServer/WMSServer?&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0')
 }}}

 which gives the error.

 When you paste the URL to browser, it works. Also r.in.wms with this wms
 service works on linux.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3648>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list