Skip to main content
edited body
Source Link
Below the Radar
  • 3.6k
  • 1
  • 31
  • 60

One could use OWSLib, an excellent OGC Web Services utility library in python.

Install with PIPpip (or download sources from repository):

pip install OWSLib

Retrieve some info from the the WMS server:

>>> from owslib.wms import WebMapService
>>> wms = WebMapService("http://sdi.geoportal.gov.pl/wms_prg/wmservice.aspx")
>>> wms.identification.title
u'Us\u0142uga przegl\u0105dania (WMS) Pa\u0144stwowego Rejestru Granic dla obsza
ru Polski.'
>>> wms.identification.type
'OGC:WMS'
>>> wms.identification.version
'1.1.1'
>>> list(wms.contents)
['Nazwa_powiatu', 'Nazwa_gminy', 'Nazwa_wojewodztwa', 'Powiaty', 'Wojewodztwa',
'Gminy']

Consult the complete documentation for more.

One could use OWSLib, an excellent OGC Web Services utility library in python.

Install with PIP (or download sources from repository):

pip install OWSLib

Retrieve some info from the the WMS server:

>>> from owslib.wms import WebMapService
>>> wms = WebMapService("http://sdi.geoportal.gov.pl/wms_prg/wmservice.aspx")
>>> wms.identification.title
u'Us\u0142uga przegl\u0105dania (WMS) Pa\u0144stwowego Rejestru Granic dla obsza
ru Polski.'
>>> wms.identification.type
'OGC:WMS'
>>> wms.identification.version
'1.1.1'
>>> list(wms.contents)
['Nazwa_powiatu', 'Nazwa_gminy', 'Nazwa_wojewodztwa', 'Powiaty', 'Wojewodztwa',
'Gminy']

Consult the complete documentation for more.

One could use OWSLib, an excellent OGC Web Services utility library in python.

Install with pip (or download sources from repository):

pip install OWSLib

Retrieve some info from the the WMS server:

>>> from owslib.wms import WebMapService
>>> wms = WebMapService("http://sdi.geoportal.gov.pl/wms_prg/wmservice.aspx")
>>> wms.identification.title
u'Us\u0142uga przegl\u0105dania (WMS) Pa\u0144stwowego Rejestru Granic dla obsza
ru Polski.'
>>> wms.identification.type
'OGC:WMS'
>>> wms.identification.version
'1.1.1'
>>> list(wms.contents)
['Nazwa_powiatu', 'Nazwa_gminy', 'Nazwa_wojewodztwa', 'Powiaty', 'Wojewodztwa',
'Gminy']

Consult the complete documentation for more.

Source Link
Below the Radar
  • 3.6k
  • 1
  • 31
  • 60

One could use OWSLib, an excellent OGC Web Services utility library in python.

Install with PIP (or download sources from repository):

pip install OWSLib

Retrieve some info from the the WMS server:

>>> from owslib.wms import WebMapService
>>> wms = WebMapService("http://sdi.geoportal.gov.pl/wms_prg/wmservice.aspx")
>>> wms.identification.title
u'Us\u0142uga przegl\u0105dania (WMS) Pa\u0144stwowego Rejestru Granic dla obsza
ru Polski.'
>>> wms.identification.type
'OGC:WMS'
>>> wms.identification.version
'1.1.1'
>>> list(wms.contents)
['Nazwa_powiatu', 'Nazwa_gminy', 'Nazwa_wojewodztwa', 'Powiaty', 'Wojewodztwa',
'Gminy']

Consult the complete documentation for more.