Skip to main content

GeoJSON Writer Plugin for Polars and WKB Interp

Project description

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}}

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

polars_geojson-0.3.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

polars_geojson-0.3.0-cp39-abi3-win_arm64.whl (3.9 MB view details)

Uploaded CPython 3.9+Windows ARM64

polars_geojson-0.3.0-cp39-abi3-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.9+Windows x86-64

polars_geojson-0.3.0-cp39-abi3-win32.whl (3.8 MB view details)

Uploaded CPython 3.9+Windows x86

polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_i686.whl (5.5 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ i686

polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_armv7l.whl (5.2 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARMv7l

polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (5.6 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ i686

polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.9 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARMv7l

polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.8 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

polars_geojson-0.3.0-cp39-abi3-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

polars_geojson-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file polars_geojson-0.3.0.tar.gz.

File metadata

  • Download URL: polars_geojson-0.3.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d47043361d4a7db9a62ab409f9161942097a6a1c499ca87244acb38e284a1cd9
MD5 5227071f36710d050b99d70f9ba89827
BLAKE2b-256 59d329597d69a825740b6ca57028cecf561ed9a20427daf93bd482c712cfc96e

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-win_arm64.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-win_arm64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.9+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 4effcadb63438e5622b9ebf5fd4bc08f965343a3c18e7c9e3b53ef843ac4a714
MD5 4169e40e3f2f616bff2bf4a21d126602
BLAKE2b-256 db401b8eb9bb2885c231c3c9e7c47e7c1ced4ef76767ae8ea56dd43c04e3cd87

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fe0c1463bae13ca911a72cc460b191685fabb5e44b3caac71ea2f237e4cf71fe
MD5 2ca3a4f469ecc256d49a54539c81a836
BLAKE2b-256 75465cddaccfed244e810a21e943d21d8441050d3f8864daf9b698ca39b7e22e

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-win32.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-win32.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 dc96cfc00f00719319dbdfc1b1e8d33873480700f15777e1f9d5ade0d8e6db7c
MD5 a0c4fc298789cd416faa3b53e54c13a7
BLAKE2b-256 038e9a5e186bbd293930fb291b66f1082d30f0bbcecae1c04291a7c7bbe16327

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 94a131a065c03e87262a7241c0f0b4c9b2d966290f927da6fbee23e4f3a5fbdc
MD5 37722e469fdd719ac63c9f003e346845
BLAKE2b-256 3d406d0dbcc8f82dc11dfffee9ae398b97dcaa6e8caa1f0bcd84f72e81703b05

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_i686.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 3e652e94f32c7b9e3f01f345805ed4f24bad623f35cb0e7f104a6fb6b8c7ec3b
MD5 f50e3e4b87346db43fed310f61830427
BLAKE2b-256 84013c33b0d479da125b493ccf09ad2e5cca8560fbb2498b5e6222ce4572ccf6

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_armv7l.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_armv7l.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ ARMv7l
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 71efb8cde854eb2457d55252950a4edbc70c5d38894c7989b416d8777e5f1dec
MD5 2840a06bdb74b63cac6d56f26c91754e
BLAKE2b-256 bd30435a3859f00e8f87fdd6c434cdb13bdfe9b81a33c7280c700047b071950c

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: CPython 3.9+, musllinux: musl 1.2+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ebd64c6d4a64a091c99d66b1641c10f6874f3200ae696af7d8c58577a755174c
MD5 feac52f07e2f09d215f6f1293f1b2845
BLAKE2b-256 7c49d806f8b98672b4addb51d523953b1187b6f95233ee91cb622938870ba973

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef7cff0fb702958eae53a176759c7fc6a64b528138165df2753fd739d37c607c
MD5 a98c23246eef0df0a197619e92a0fd28
BLAKE2b-256 6f1cdeb52d8389ddd794c86d66d8055bc2cede52a78c0250c048ce436a4c88a4

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.9+, manylinux: glibc 2.17+ i686
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 56054c7a7de632829b3c07129f56b6bd32331ecca0818a3e4e6dda50f1febf95
MD5 e2f325fa80c20a3fb330d1302f8499d2
BLAKE2b-256 d30ffff9094cbc2039037245b4e83b26fc9fe27a13a905d449222b60a10f649a

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.9+, manylinux: glibc 2.17+ ARMv7l
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 e52cc9f6b97662ea20211164d80a0176b8d8ecad2541f5d5bfe76be50eb11662
MD5 78865751ba4bffc52b5cea4001b26b06
BLAKE2b-256 9dd643d5425831085da3a00114ef847b548febd9ca39f4d8de692ecdaab283c9

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 780f66238fcc01c57a69a8a119fa4c02d1042d98d8e990ca74ff13ff678933bb
MD5 78d507bbef5168e866431bbf9cd9a9fc
BLAKE2b-256 445812f12acc470aefc33e8624db2c3d74d791b22b95069bb6b7a1d6825454e0

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.9+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c8a3d2964c0be4adb4c3bef441e0f60f23b328a56b7e4b4dd52ae3060bcd651
MD5 95390a63745544f332cef745a3f6580e
BLAKE2b-256 fcdbb7b3a56594072b6434009e0d37ab31956baa68d1c4570ad83ee50429dce6

See more details on using hashes here.

File details

Details for the file polars_geojson-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: polars_geojson-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.9+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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}

File hashes

Hashes for polars_geojson-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a053961ab5ee2666e156fec95fd91a0a34526c5d44d431ebbf79ccf66689cc70
MD5 383e9d39532f51713c9b2cbf44f6854a
BLAKE2b-256 ea89e3d31af2f32a39e4b0613187022c7aa008d8eb49ec7b6b28563a3abf3427

See more details on using hashes here.

Supported by

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