Skip to main content

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
0 votes
0 answers
13 views

How to create WCS 2.0.1 GetCoverage request using OWSLib?

I have access to a locally deployed GeoServer with enabled WCS 2.0.1. I connect to the service by calling from owslib.wcs import WebCoverageService wcs = WebCoverageService( url='https://example....
rbaleksandar's user avatar
0 votes
1 answer
243 views

Using the Intersect filter in OWSlib to filter data between two WFS

I'm trying to use OWSLib to deal with multiple WSF features in python, for now, I'm trying to return all features in sfb WFS that intersects with the specifc feature retrieved in sicar WFS. from ...
Gabriel Ferrari's user avatar
1 vote
0 answers
17 views

Send GeoTIFF to GeoServer client server from Raspberry Pi using WCS [duplicate]

My image is in Raspberry Pi, GeoServer is in a client system . I want upload the image from Raspberry Pi to GeoServer using HTTP POST. I have read lot of documentation but everything says how to ...
Raj's user avatar
  • 11
1 vote
1 answer
409 views

Select specific layer to read when reading data to GeoPandas using OWSlib

I am trying to read a specific layer from a WFS service but can't figure out how to specify which the layer to read when using OWSlib. The code was copied from: Reading data to geopandas using WFS? ...
Ben Watson's user avatar
0 votes
1 answer
229 views

Error getting soilgrid image with Python - OWSLib

This question is an addition to this similar question. I'm trying to get a SoilGrid GeoTIFF image using OWSLib in python. Here is the script I am running: from owslib.wcs import WebCoverageService ...
Jeremy_cesbio's user avatar
1 vote
1 answer
487 views

Problem with WFS Consuming by using CQL_FILTER

for the past couple of days I have been trying to consume a WFS through Python. I was using owslib but I noticed that the client only uses version 1.0.0 and i tried to apply cql_filters by doing like ...
Fatih Enes's user avatar
2 votes
2 answers
567 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 ...
ChrisNick92's user avatar
0 votes
0 answers
143 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 ...
Rehan's user avatar
  • 335
1 vote
1 answer
2k 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 ...
Rehan's user avatar
  • 335
1 vote
2 answers
110 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&...
Maxime Collombin's user avatar
0 votes
0 answers
587 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=/...
MaxDragonheart's user avatar
0 votes
0 answers
258 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 # ...
swisscheese_95's user avatar
-1 votes
1 answer
349 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 ...
tiagoams's user avatar
  • 180
2 votes
1 answer
710 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 ...
ArashMad's user avatar
  • 655
1 vote
1 answer
216 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 (...
benjimin's user avatar
  • 476
2 votes
2 answers
2k 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: ...
Gonzalo Aspee's user avatar
1 vote
0 answers
143 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 ...
Alexis's user avatar
  • 233
1 vote
1 answer
535 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 ...
Joel_M's user avatar
  • 21
3 votes
1 answer
846 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 ...
Ayaz49's user avatar
  • 428
0 votes
1 answer
947 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://...
Isabell's user avatar
1 vote
0 answers
376 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 '...
joost's user avatar
  • 111
1 vote
1 answer
426 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=/...
kakripr's user avatar
  • 13
1 vote
0 answers
574 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 ...
LAC's user avatar
  • 611
4 votes
1 answer
4k 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....
bm13563's user avatar
  • 253
9 votes
1 answer
9k 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/...
Artturi Björk's user avatar
1 vote
1 answer
220 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' ...
Jonas's user avatar
  • 447
0 votes
1 answer
574 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 ...
Jonas's user avatar
  • 447
2 votes
2 answers
984 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 ...
ArnJac's user avatar
  • 375
1 vote
1 answer
449 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, ...
Adam Adam's 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 ...
Dims's user avatar
  • 571
1 vote
1 answer
340 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....
Kristian Herner's user avatar
2 votes
2 answers
1k 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/...
DORA MANOU's user avatar
1 vote
1 answer
632 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 ...
Iamlukesky's user avatar
4 votes
1 answer
323 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 ...
nmtoken's user avatar
  • 13.5k
3 votes
1 answer
1k 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 ...
Leolo's 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....
mykolaq's user avatar
  • 73
1 vote
1 answer
2k 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,...
mykolaq's user avatar
  • 73
1 vote
1 answer
2k 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 ...
lpreston's user avatar
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-...
MaxiReglisse's user avatar
1 vote
1 answer
3k 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/...
MaxiReglisse's 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?...
bugmenot123's user avatar
  • 10.9k
2 votes
1 answer
493 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 ...
Martin's user avatar
  • 302
6 votes
1 answer
846 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 ...
Suwen's user avatar
  • 81
1 vote
1 answer
656 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 ...
til_b's user avatar
  • 5,154
0 votes
1 answer
217 views

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

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 ...
Dennis's user avatar
  • 281
2 votes
1 answer
614 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 ...
gridcell's user avatar