Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polars-geojson 0.3.2
File Size Uploaded
polars_geojson-0.3.2.tar.gz 34.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for polars-geojson 0.3.2
File
polars_geojson-0.3.2-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details
polars_geojson-0.3.2-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
polars_geojson-0.3.2-cp39-abi3-win32.whl CPython 3.9 abi3 Windows x86-32 Details
polars_geojson-0.3.2-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
polars_geojson-0.3.2-cp39-abi3-musllinux_1_2_i686.whl CPython 3.9 abi3 Linux musl 1.2+ x86-32 Details
polars_geojson-0.3.2-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
polars_geojson-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
polars_geojson-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
polars_geojson-0.3.2-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl CPython 3.9 abi3 Linux glibc 2.12+ x86-32 Details
polars_geojson-0.3.2-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 44.0 MB

Release files / polars_geojson-0.3.2.tar.gz

Download URL polars_geojson-0.3.2.tar.gz
Size 34.1 kB
Tags Source
SHA-256 checksum
How to use checksums
12a6dd319bb298cf3762c98edf07825477c7e995853212d45dec040e12de7390
BLAKE2b-256 checksum
How to use checksums
61e80b846b5f03d165f6e2b61575115e62224221a57100f97d60e1512b58c46d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-win_arm64.whl

Download URL polars_geojson-0.3.2-cp39-abi3-win_arm64.whl
Size 3.9 MB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
c144a489eb11a21ac9e3c807c18c03abcac11b02285f677d00f768b6bed3788e
BLAKE2b-256 checksum
How to use checksums
0595463f9993bcabe92ef2584ac87e62cbeda7b3158bb6a943b49061e06ad174
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-win_amd64.whl

Download URL polars_geojson-0.3.2-cp39-abi3-win_amd64.whl
Size 4.4 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0ad307349cc7a9f86f94b2b34b107f0635d7e18c8998c0f0d671032d2469eff3
BLAKE2b-256 checksum
How to use checksums
28b7daa420a175cc92da8db1e2a877ee5057178b9e5ac0a8fa3064708ffd4d61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-win32.whl

Download URL polars_geojson-0.3.2-cp39-abi3-win32.whl
Size 3.9 MB
Tags CPython 3.9 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
74535ee2e7f91af74e50c8687ce3995008eed6c64ca256956ba25a564540fe71
BLAKE2b-256 checksum
How to use checksums
8413b0719d071b980d03be87372b2be69a5bdb858daafc41fff93b7a21b0679a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL polars_geojson-0.3.2-cp39-abi3-musllinux_1_2_x86_64.whl
Size 4.7 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
0d00ce4a900bc4b75c24514e3d49dfca19bcc81365de807272f18fdcfd25333e
BLAKE2b-256 checksum
How to use checksums
637830c43f66c4c2ebe671bf683d3bbd7b2f1970ef4fa0efd6f547ae58c020b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-musllinux_1_2_i686.whl

Download URL polars_geojson-0.3.2-cp39-abi3-musllinux_1_2_i686.whl
Size 4.9 MB
Tags CPython 3.9 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
51b27df5040199ca007538920e633ad36bed8fb578d976da640e642f80938181
BLAKE2b-256 checksum
How to use checksums
af7baccea063ebbe1744ea384d5e02819de2fbe85dc3e54f85f09a0f93c0344b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL polars_geojson-0.3.2-cp39-abi3-musllinux_1_2_aarch64.whl
Size 4.4 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
b2d30a2a9b08a1f2d157aef04586cee1273af8ed3b3930ce277e39a2860d9c41
BLAKE2b-256 checksum
How to use checksums
54e44d995e6b5063bfd8c6e47199b4548219b09aaeca50d9bb0e752fea29574d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL polars_geojson-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.5 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ae79185e0d9e8ec46b65526da25baa102910e65360970ca10e3d18bd8b6425f6
BLAKE2b-256 checksum
How to use checksums
7b7d8069b84d1962dda7fc36922abbc0ced0f918f690d8b65d199593ed72c9b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL polars_geojson-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 4.2 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b3feb9d311e07b6aa5d1850695766e8c45201f55e3ccd3f0e5cd04033790602d
BLAKE2b-256 checksum
How to use checksums
865f15da82597c68033d7e49a5d85e3617ba30035509b19ea765f2134037c8e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl

Download URL polars_geojson-0.3.2-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Size 4.9 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-32 abi3
SHA-256 checksum
How to use checksums
5a9d6c0f05f6dd440f36242ff972049f7d620c5e0812c42135423714cda08397
BLAKE2b-256 checksum
How to use checksums
20e803bb79201cbca6c59a9db95ef3a258aace1f4fadb1d31f237db29aa0042e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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.2-cp39-abi3-macosx_11_0_arm64.whl

Download URL polars_geojson-0.3.2-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
ec9a3f75be6ea9beec4dde44c3a204d647a446717e30b400c728f57d11c9e1fb
BLAKE2b-256 checksum
How to use checksums
5961074aea5295b8e10ea6b52ba815e5791f03f74fef92bec4baa15ce1027007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","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 history Release notifications | RSS feed

0.4.0

11 release files

This release

0.3.2 This release

11 release files

0.3.1

14 release files

0.3.0

14 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page