Questions tagged [owslib]

A Python package for interacting with OGC Web Services (OWS), such as WMS, WFS, WCS, SOS...

Filter by
Sorted by
Tagged with
4
votes
1answer
169 views

Getting spatially referenced tiles from WMTS

I have been able to download tiles from a WMTS request in .tif format using owslib in standalone python: from owslib.wmts import WebMapTileService wmts = WebMapTileService('wmts_url') img = wmts....
3
votes
1answer
655 views

Reading data to geopandas using WFS?

I'm new to GIS. Trying to use Finnish population data on 1km tiles available here: http://www.stat.fi/org/avoindata/paikkatietoaineistot_en.html The WFS service is here: http://geo.stat.fi/geoserver/...
1
vote
0answers
64 views

passing an URL to owslib in Qgis editor doesn't work properly?

I'm trying to determine the version number of several WFS using the python module owslib. since i need to use this version number in ogr2ogr (and for some reason, python's ogr2ogr only works in Qgis' ...
0
votes
0answers
118 views

Connecting to several WFS using python/OWSLIB/OGR2OGR

I'm trying to download a lot of datasets from different WFS URLs using ogr2ogr (and to an extent, owslib) in Python. My problem arises when I try to connect to a second WFS. In my test code, I have ...
0
votes
2answers
180 views

add crs to tiff downladed with owslib

I'm using owslib to download an aerial photograph. In the GetMap request I specify a srs, so I assume (maybe wrongly?) that the response I get contains a crs. When writing the result to a GeoTiff the ...
1
vote
1answer
182 views

OWSLib WPS timeout

I'm using owslib.wps inside a QGIS plugin to retrieve a pywps query output. Here is a piece of code that I run from the QGIS console: import owslib.wps from owslib.wps import WebProcessingService, ...
2
votes
1answer
624 views

How to get data for multiple dates with OWSLib?

I am querying sentinel-2 data for multiple dates and want to get all results for these dates. For example, I queried Arizona crater from owslib.wms import WebMapService import matplotlib.pyplot as ...
1
vote
1answer
137 views

OWSLib getmap - how to encode layernames with non-ascii charaters?

Whenever i think I understand encodings, I don't.. How do I correctly send a layername to the getmap function? running python 2.7 from owslib.wms import WebMapService wms_url = "http://ext-geodata....
2
votes
2answers
398 views

“Feature type :a unknown” exception in OWSLib WFS request

I have to script as shown below and request to get info on all features included in a feature. from owslib.wfs import WebFeatureService wfs11 = WebFeatureService(url="https://lacunaserver.se/...
1
vote
1answer
117 views

Esri WFS in OWSLib?

I'm trying to use this WFS service with OWSLib in Python, but can't figure out how to make it work. I would like to know if it is even possible, and if so, what I'm doing wrong. It's a bit hard to ...
4
votes
1answer
106 views

How do you create a WMC with OWSLib?

I'm trying to create a Web Map Context(WMC) file using OWSLib. WMC is supported, but there are no examples on any official pages: OWSLib 0.14.0 documentation, PyPI~ OWSLib 0.14.0, GitHib OWSLib ...
2
votes
1answer
347 views

Why does OWSLib's getfeature(…, filter=…) not filter?

I am struggling to make a filter effective for a GetFeature request with OWSLib. Here's the code I wrote so far (I'm extracting data from Berlin's open geodata-server): from owslib.wfs import ...
1
vote
1answer
608 views

OWSLib download wms image

I want to download a raster from a WMS server with Python and OWSLib. I have written this code from an example in a manual. from owslib.wms import WebMapService wms = WebMapService('http://mapy....
1
vote
1answer
520 views

How to calculate final image size from wms?

I would like to retrieve an image from a WMS server (see the link below) with python OWSLib (or any other methods). I know that resolution is 1m per pixel. For example, I want to get bbox=(54.2652,...
1
vote
1answer
771 views

Using WCS and Python to download from USDA Vegscape database

I wish to download Weekly NDVI rasters from the USDA Vegscape portal. It is possible to access the data using WMS and WCS methods. The USDA dev guide only contains example URLs on how to access the ...
0
votes
1answer
1k views

owslib - geonetwork - Failed to establish a new connection: Connection refused [closed]

i am tring to search for a specific record in geonetwork with owslib, according to documentation in https://geopython.github.io/OWSLib/. but it fails : >>> geonetwork = 'http://geonetwork-...
1
vote
1answer
2k views

OWSLib - ValueError: All strings must be XML compatible: Unicode or ASCII

I try to use OWSLib to search metadata in GeoNetwork, and I have problems when the string contains non-ASCII characters. geonetwork = 'http://geonetwork-mshe.univ-fcomte.fr:8080/geonetwork/srv/fre/...
3
votes
1answer
538 views

Available Python client libraries for WFS transactions?

I am looking for a Python module to allow me to use WFS-T. Everything I found so far only supports getting data out via WFS, I need to INSERT and UPDATE. owslib does not support WFS transactions (yet?...
2
votes
1answer
343 views

In Python, How to Encode and Decode Complex Data for a OWSLib WPS call to PyWPS-4?

In Python, how can I encode "complex" (vector) data for a WPS call that just echoes back the data, and decodes the data from the result. I was planning on using OWSLib on the client side and PyWPS-4 ...
5
votes
1answer
350 views

How to call the method of DescribeFeatureType in OWSLib

I want to execute DescribeFeatureType operation of WFS services. However, I can’t find the method to fulfil this operation in OWSLib. Can anyone kind enough to tell me how to do this? The following ...
1
vote
1answer
479 views

OWSLib and Python 3

Trying to install OWSlib-master (and 0.7.1) from https://github.com/geopython/OWSLib yields problems that ultimately seem to be related to python3 >c:\Python32\python.exe setup.py install running ...
1
vote
1answer
155 views

How do I retrieve an Arc ASCII grid file from NED 1/3 second data using Python and OWSLib

I have my bounds, and have been able to connect to the server http://imselev.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_NED_3? in Python. What I don't know how to do is send a ...
2
votes
1answer
476 views

OWSLib vs shp2img output of MapServer Layer

I'm working on a map layout engine using Python and ReportLab and have come across a problem and was wondering if anyone can give me some insight. Scenario: I'm trying to generate an image using ...