Python tool to interact with OGC APIs with ease.
Project description
Geostream
Geostream is a Python tool to interact with OGC APIs with ease and download geospatial data to Geopandas GeoDataFrames.
Status: Currently only works with WFS API and is very experimental by nature. Use at own risk.
Installation
geostream
is available via PyPi and can be installed with:
pip install geostream
Basic usage
from geostream import WFS
# Endpoint for WFS API of the City of Helsinki
endpoint = "https://kartta.hel.fi/ws/geoserver/avoindata/wfs"
# Initialize WFS reader
# Note: API version can vary between data providers (by default 1.0.0 is used)
wfs = WFS(endpoint, version="2.0.0")
# See all available layers
wfs.get_layers()
# Store the id of the first layer
first_layer = wfs.get_layers()[0]
# Find info for specific layer
wfs.get_layer_info(first_layer)
# Download a GeoDataFrame with Helsinki as the extent
helsinki_gdf = wfs.get_gdf_from_place("Helsinki")
# Download the data into GeoDataFrame from the Helsinki Region
data = wfs.load_wfs(layer_id=first_layer, bounding_box=helsinki_gdf)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geostream-0.0.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for geostream-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84f804d6312cc99e6bbd4f37af20657c57362a110b8073bee8631ed6cb71ff90 |
|
MD5 | c7d56e17967787e4d8c05fc52f1ab632 |
|
BLAKE2b-256 | fd5313254b1f10fc973417483904ef8803db53a137d42803f510412139e88d23 |