Skip to main content

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


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 details)

Uploaded Source

Built Distribution

geostream-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file geostream-0.0.1.tar.gz.

File metadata

  • Download URL: geostream-0.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for geostream-0.0.1.tar.gz
Algorithm Hash digest
SHA256 223506bda4a82b28a5ccdd261a92eb6ca65462ab4f98e8c60528e90b9167cbaf
MD5 819728359ee5178cc6139a500621a9e9
BLAKE2b-256 aa1543c91587136b201b90a92da11bd7a3cfabc41eccc55fade6a011ed102d0b

See more details on using hashes here.

File details

Details for the file geostream-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: geostream-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for geostream-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84f804d6312cc99e6bbd4f37af20657c57362a110b8073bee8631ed6cb71ff90
MD5 c7d56e17967787e4d8c05fc52f1ab632
BLAKE2b-256 fd5313254b1f10fc973417483904ef8803db53a137d42803f510412139e88d23

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page