BSD Ports

devel/py-wkb-wkt-converter 0.6.3 FreeBSD

High-performance streaming converter between WKT and WKB geometry formats

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Port added
Last update
Commit
5f7efeb7bf
License
MIT
Categories
devel, python

Description

A high-performance, zero-dependency Rust library for streaming conversion between WKT/EWKT and WKB/EWKB geometry formats used in GIS systems (PostGIS, GDAL, etc.).

Exposes both a Rust API and Python bindings (via PyO3/maturin).

Features:

  • All 7 OGC geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection
  • All coordinate dimensions: XY, XYZ, M, ZM
  • Both EWKB (PostGIS flag-bit encoding) and ISO WKB (type+1000 offset encoding) as input
  • SRID preservation (EWKT <-> EWKB); option to split SRID from geometry
  • Big-endian and little-endian WKB input; little-endian EWKB output for full conversions, with simple header rewrites preserving input byte order
  • EMPTY geometry support
  • Per-member EMPTY support inside MULTI* geometries
  • Hex WKB convenience helpers
  • Memory-safe handling for malformed input: structurally invalid input returns descriptive errors, while trusted-valid fast paths may pass through malformed geometry bodies as invalid output bytes/text.

Version history 1

  1. 0.6.3 5f7efeb7bf

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install py312-wkb-wkt-converter

From the ports tree:

cd /usr/ports/devel/py-wkb-wkt-converter/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-wkb-wkt-converter>0:devel/py-wkb-wkt-converter

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest-0.6.3--0.6.3
FreeBSD:14:quarterly--n/a--
FreeBSD:15:latest0.6.30.6.3n/a--
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest-0.6.3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 23
Run dependencies 7

No port depends on this one.

Configuration

No options to configure.

USES
cargo python
Service scripts
none

Files

distinfo 16
FileSizeSHA256
wkb_wkt_converter-0.6.3.tar.gz43245d5c4888ae7f5e9473340dbfaf5bd377a99f87945001c541b771983708b707a28
rust/crates/heck-0.5.0.crate115172304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea
rust/crates/hex-0.4.3.crate132997f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70
rust/crates/libc-0.2.186.crate82188368ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66
rust/crates/once_cell-1.21.4.crate350109f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50
rust/crates/portable-atomic-1.13.1.crate197001c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49
rust/crates/proc-macro2-1.0.106.crate597658fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934
rust/crates/pyo3-0.28.3.crate1.204476e+0691fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12
rust/crates/pyo3-build-config-0.28.3.crate35961e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e
rust/crates/pyo3-ffi-0.28.3.crate808817f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e
rust/crates/pyo3-macros-0.28.3.crate8963df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813
rust/crates/pyo3-macros-backend-0.28.3.crate88063c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb
rust/crates/quote-1.0.45.crate3156441f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924
rust/crates/syn-2.0.117.crate306011e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99
rust/crates/target-lexicon-0.13.5.crate26928adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca
rust/crates/unicode-ident-1.0.24.crate49298e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
5f7efeb7bf Po-Chuan Hsieh devel/py-wkb-wkt-converter: Add py-wkb-wkt-converter 0.6.3
A high-performance, zero-dependency Rust library for streaming conversion between WKT/EWKT and WKB/EWKB geometry formats used in GIS systems (PostGIS, GDAL, etc.). Exposes both a Rust API and Python bindings (via PyO3/maturin). Features: - All 7 OGC geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection - All coordinate dimensions: XY, XYZ, M, ZM - Both EWKB (PostGIS flag-bit encoding) and ISO WKB (type+1000 offset encoding) as input - SRID preservation (EWKT <-> EWKB); option to split SRID from geometry - Big-endian and little-endian WKB input; little-endian EWKB output for full conversions, with simple header rewrites preserving input byte order - EMPTY geometry support - Per-member EMPTY support inside MULTI* geometries …