polars-geojson
A Polars Plugin for GeoJSON IO, built with Rust via pyo3-polars.
Motivation: Converting of DataFrames with GeoJSON-compatible geometry columns to GeoJSON Feature Collections, for Map Plotting.
Features:
- Expression for converting WKB (Well-Known Binary) Geometry Columns to GeoJSON
- DataFrame Iterator for generating GeoJSON Features
- DataFrame Writer for writing GeoJSON Feature Collections
- H3 Handling - Cell Geometry
Installation
maturin develop --release
Usage
Must include import polars_geojson in all Python files that use this Plugin to Register the namespace.
Expression-level: WKB to GeoJSON strings
import polars as pl
import polars_geojson
df = df.with_columns(pl.col("geometry").geojson.from_wkb().alias("geojson_str"))
DataFrame-level: Generate GeoJSON Features
features = df.geojson.to_features(
columns_to_include=["name", "value"], # optional, defaults to all non-geometry columns
geometry_column="geojson", # default
extra_feature_keys=None, # optional
)
for feature in features:
print(feature)
# {"type": "Feature", "geometry": {"type": "Point", "coordinates": [1.0, 2.0]}, "properties": {"name": "alice", "value": 1}}
Release files for polars-geojson 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polars_geojson-0.3.1.tar.gz | 34.0 kB | Details |
Built distributions (wheels)
Total release size: 61.6 MB
Release files / polars_geojson-0.3.1.tar.gz
| Download URL | polars_geojson-0.3.1.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab2d5315c744aa9d46d0c54cede114bb43c2d0d57c089fb05456dffab1e85822
|
|
BLAKE2b-256 checksum How to use checksums |
cea9b1ca4e8320889bd52f424d1bbd42cb5216d3070101093bae1807040c7c87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-win_arm64.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5547dc1180d2265b2ee3781b9d5f2a2c831d9022f75f4d4c0287903c45313a4e
|
|
BLAKE2b-256 checksum How to use checksums |
712c7b86fb79560cdfdc2a9bbc709c3d9724b349f085c0f495d1c59bac4c6ee2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-win_amd64.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8a3bcd86da251425e44daaae8b9614c3499c70832726cfa275ae8a4d11d94800
|
|
BLAKE2b-256 checksum How to use checksums |
b23878095a6ab9e17438deb7b58a8934a565d240f87fc9432d84654da777b568
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-win32.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-win32.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.9 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
7dd85adb2ed46cbf0dbeb7712148684505665c1ab11115a01686f8e2ac109051
|
|
BLAKE2b-256 checksum How to use checksums |
7d23316d66e3e2fc8623055a2c22324efa0411a8c25aad5d73877ed72ebbc7d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 5.3 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7577db746db1ffb4c221f0f99535af2b63ff90aa913acbafc0a67b44ba701e21
|
|
BLAKE2b-256 checksum How to use checksums |
29b556dd02e71a17e26638c055a28311186ba6a7a3ec4a163b53302bd69d63df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-musllinux_1_2_i686.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-musllinux_1_2_i686.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
8b15305f8ba6cc3772cc96a7a28806768337721006161a92a05d3ff27ed8d796
|
|
BLAKE2b-256 checksum How to use checksums |
16765beff174363f8a85f53b2e16e76d1ca82b550affb2dfea4b93a86c52357c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-musllinux_1_2_armv7l.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-musllinux_1_2_armv7l.whl |
|---|---|
| Size | 5.2 MB |
| Tags | CPython 3.9 Linux musl 1.2+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
5eb6d4e26404abd04fe0beb51fe9d8cb66ac1b2203c1e59b5dfa79cf5fb6af5b
|
|
BLAKE2b-256 checksum How to use checksums |
d806e96a1c16e24027373aed1c626c7ce01cc85543d83063f54088d21516cf83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 5.0 MB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
d9703175ead2a12230c9e7f43516c9cc2e2b6e3095bec3a9b87d4d204654878e
|
|
BLAKE2b-256 checksum How to use checksums |
b8d73e68213e6e827a8c9ce46faa22be764d25af0c204ba29075eb6fd0e119d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ce8d2fff9dca356c4bd87362a2f338b875ea18f6c3aae6b3d64612aef99e5705
|
|
BLAKE2b-256 checksum How to use checksums |
a69be6453d34b5fa8d99a06173eff73d119944e08531ee11b4e006ce258b5121
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
14fab45770b4ed1f9150e68267e64d4a79afa59c9736b326f1ff1800a58d6e25
|
|
BLAKE2b-256 checksum How to use checksums |
948fc8594a122939179d01a1660d314eeb3c8c857242e94b4c61f989cd8cc88b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 5.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
e22db780f923ac4f6fd037432ee5d88ede5b7f3cf0684e9a46959faba462d940
|
|
BLAKE2b-256 checksum How to use checksums |
969b863aa03044104d530b84047aebc814f8fe9ea156cbaa82fe19c09038a610
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
64710c435fda02d61251b02e76b71962666474d162d7933e8c240204ca93fd5a
|
|
BLAKE2b-256 checksum How to use checksums |
c05b61047666891634dfcc764cf3c9fee798b82330071c1d7553447870a4bc90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2fd578ce985c2dd1940bc4c6c60d07bce587abf2c5dc760adc9059106eb30ecb
|
|
BLAKE2b-256 checksum How to use checksums |
3fa4ff08a77285b4094ca8ffa0c2f5c15981d7614a692ec8de47f35530daa5c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / polars_geojson-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | polars_geojson-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
867dcc1249b83836850f8846f15bd65fd333a5d42926e09fe9457a8ad2bbe858
|
|
BLAKE2b-256 checksum How to use checksums |
9d2282ed9c5a6ccf051182c91743d575c71caffc109a35e017697f3ec685175a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|