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
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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | - | 0.6.3 | - | - | 0.6.3 |
| FreeBSD:14:quarterly | - | - | n/a | - | - |
| FreeBSD:15:latest | 0.6.3 | 0.6.3 | n/a | - | - |
| FreeBSD:15:quarterly | - | - | n/a | n/a | n/a |
| FreeBSD:16:latest | - | 0.6.3 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
${PYTHON_PKGNAMEPREFIX}maturin>=1.0<2.0: devel/py-maturin
The full lists below include those, and their dependencies in turn.
Build dependencies 23
- archivers/brotli
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/libunistring
- devel/py-build
- devel/py-installer
- devel/py-maturin
- devel/py-packaging
- devel/py-pyproject-hooks
- devel/readline
- dns/libidn2
- dns/libpsl
- ftp/curl
- lang/python312
- lang/python315
- lang/rust
- math/mpdecimal
- print/indexinfo
- security/libssh2
- textproc/expat2
- www/libnghttp2
Run dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- cargo python
- Service scripts
- none
Files
distinfo 16
| File | Size | SHA256 |
|---|---|---|
| wkb_wkt_converter-0.6.3.tar.gz | 43245 | d5c4888ae7f5e9473340dbfaf5bd377a99f87945001c541b771983708b707a28 |
| rust/crates/heck-0.5.0.crate | 11517 | 2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea |
| rust/crates/hex-0.4.3.crate | 13299 | 7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70 |
| rust/crates/libc-0.2.186.crate | 821883 | 68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66 |
| rust/crates/once_cell-1.21.4.crate | 35010 | 9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50 |
| rust/crates/portable-atomic-1.13.1.crate | 197001 | c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49 |
| rust/crates/proc-macro2-1.0.106.crate | 59765 | 8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934 |
| rust/crates/pyo3-0.28.3.crate | 1.204476e+06 | 91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12 |
| rust/crates/pyo3-build-config-0.28.3.crate | 35961 | e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e |
| rust/crates/pyo3-ffi-0.28.3.crate | 80881 | 7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e |
| rust/crates/pyo3-macros-0.28.3.crate | 8963 | df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813 |
| rust/crates/pyo3-macros-backend-0.28.3.crate | 88063 | c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb |
| rust/crates/quote-1.0.45.crate | 31564 | 41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924 |
| rust/crates/syn-2.0.117.crate | 306011 | e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99 |
| rust/crates/target-lexicon-0.13.5.crate | 26928 | adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca |
| rust/crates/unicode-ident-1.0.24.crate | 49298 | e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75 |
Master sites 1
- PYPI