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
1 vote
2 answers
100 views

How to get more information about the legend of a WMS

I am working with OWSLib in Python and I am trying to read a WMS of the Corine land cover in Ireland for the year 2000. Below you can see the request of the WMS. from owslib.wms import WebMapService ...
user avatar
0 votes
0 answers
67 views

Invalid keyword argument when specify coordinate system for a WFS GetFeature

I am trying to get features from a WFS in the form of a shapefile using OWSlib package in Python. I am able to download the shapefile as a zip but when I specify the coordinate system while defining ...
user avatar
  • 325
0 votes
1 answer
131 views

How to get features from WFS as a shapefile?

I have a WFS running on URL that is mentioned in the code below. i want to get all the features available in the service as a shapefile so i can open it and visualize it in QGIS or any other GIS ...
user avatar
  • 325
1 vote
2 answers
45 views

Support for OGC API - Records in MetaSearch [closed]

I’ve been trying to access OGC API - Records through the MetaSearch Catalog of the latest release of QGIS (QGIS 3.24 ‘Tisler’) but I ended up with the following issue: Search error: { "code&...
user avatar
0 votes
0 answers
146 views

UnsupportedGeometryTypeError from GML

I'm trying to download a layer from the WFS service: import geopandas as gpd from owslib.wfs import WebFeatureService wfs_service = WebFeatureService(url="http://wms.pcn.minambiente.it/ogc?map=/...
user avatar
0 votes
0 answers
86 views

OWSLib post request

I am trying to generate a post request with owslib python library. However, I am getting an error when trying to filter the result. from owslib.fes import * from owslib.wfs import WebFeatureService # ...
user avatar
-1 votes
1 answer
143 views

Seeking Python support for WMTS 1.0.0

I am trying to access a WMTS server what only supports version 1.0.0. With OWSlib 0.25 I get: from owslib.wms import WebMapService base_url= 'https://cyanoalert.brockmann-consult.com/api/latest/' wms ...
user avatar
  • 161
2 votes
1 answer
313 views

Passing GetMap requests to GeoServer from Flask

For some reason, I try to use Flask as a proxy layer between client and server to control all requests sent to the geoserver. The thing that I want to do is to send the GetMap request to the GeoServer ...
user avatar
  • 558
1 vote
0 answers
57 views

How to do non-blocking OWS requests in Python?

Is it possible to use OWSLib with aiohttp? Is there a Python library for formatting/parsing WPS (and other OGC web services, such as WMS - web map service) requests, that also supports IO coroutines (...
user avatar
  • 446
1 vote
1 answer
591 views

Extract attribute data from features on a WMS source

I need to extract attribute data from all features from a WMS source. So far I've managed to get them "manually" specifying coordinates for each feature using Python and OWSlib like this: ...
user avatar
1 vote
0 answers
64 views

Accessing the child of a group with owslib in QGIS

How can I iterate a layer group with owslib in QGIS in a script? If is not possible, are there alternatives? Here is a sample code of what I'm trying to achieve: 2,5,8 has 1 as parent. from owslib.wms ...
user avatar
  • 193
1 vote
1 answer
207 views

Failing to connect to an authenticated WFS using owslib.wfs.WebFeatureService

Does anyone know why the following code isn't working? Substituting the exact same code works for the WMS at the same URL, so not sure what pyproj has to do with it (see traceback below). I can access ...
user avatar
  • 21
2 votes
1 answer
461 views

Does OWSLib have spatial filters?

I am trying to apply spatial filter on a WFS layer, but owslib.fes has only BBox spatial filter. Other spatial filters such as Intersects, Disjoint, Contains etc. are missing and unable to find. I ...
user avatar
  • 418
0 votes
1 answer
367 views

OWSLIB Python WCS GetCoverage does not work

I wrote a Python script in order to read a WCS with the module OWSlib: # -*- coding: utf-8 -*- from owslib.wcs import WebCoverageService from owslib.util import Authentication ldbv_url = 'https://...
user avatar
1 vote
0 answers
254 views

How to get feature information from a WFS at a certain coordinate (in Python)?

I have a WebFeatureService at a remote url. It contains different 'layers'/ types. How do I get information at a certain point (lat, lng) similar to what QGIS returns when you click the map using the '...
user avatar
  • 111
1 vote
1 answer
229 views

I can't get soilgrid image with Python - OWSLib

I'm trying get an imagen GTIFF with OWSLib in Python but I get error. Would you help me? Code: from owslib.wcs import WebCoverageService wcs = WebCoverageService('http://maps.isric.org/mapserv?map=/...
user avatar
  • 13
1 vote
0 answers
230 views

Is there a workaround to get WFS 'FeatureTypes' in a list with Python? I get timeout issues etc. with OWSLib

I have successfully been able to get the Feature type list from below answer, but only for smaller WFS datasets. Importing all layers available on server for WFS in PyQGIS? I need a workaround to ...
user avatar
  • 561
4 votes
1 answer
2k 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....
user avatar
  • 253
6 votes
1 answer
5k 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/...
user avatar
1 vote
1 answer
149 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' ...
user avatar
  • 437
0 votes
1 answer
373 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 ...
user avatar
  • 437
1 vote
2 answers
675 views

Add CRS to TIFF downloaded with owslib

I'm using owslib to download an aerial photograph. In the WMS 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 ...
user avatar
  • 345
1 vote
1 answer
306 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, ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
  • 511
1 vote
1 answer
255 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....
user avatar
2 votes
2 answers
933 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/...
user avatar
1 vote
1 answer
495 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 ...
user avatar
4 votes
1 answer
219 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 ...
user avatar
  • 12.1k
3 votes
1 answer
855 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 ...
user avatar
  • 193
2 votes
1 answer
2k 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....
user avatar
  • 73
1 vote
1 answer
1k 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,...
user avatar
  • 73
1 vote
1 answer
1k 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 ...
user avatar
  • 55
0 votes
1 answer
2k 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-...
user avatar
1 vote
1 answer
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/...
user avatar
4 votes
1 answer
1k 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?...
user avatar
  • 8,554
2 votes
1 answer
439 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 ...
user avatar
  • 302
6 votes
1 answer
694 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 ...
user avatar
  • 81
1 vote
1 answer
567 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 ...
user avatar
  • 3,613
1 vote
1 answer
193 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 ...
user avatar
  • 283
2 votes
1 answer
550 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 ...
user avatar