Repository navigation
GeoFrame 0.3.1
Like earlier releases, it is distributed through the v0.3.1 git tag and GitHub release, not
through Hex yet; the release attaches precompiled NIFs for nine targets. A git dependency builds
the NIF from source (a stable Rust toolchain is required).
A patch release: WKT is read as GEOS reads it in two more cases. Text that 0.3.0 read is read the
same way, and no public function changes.
Fixed
- WKT without a
Z,MorZMtag whose coordinates have three or four ordinates is read as
GEOS reads it instead of raising:POINT (1 2 3)isPOINT Z (1 2 3)and four ordinates are
ZM (never M). The first coordinate sets the dimension, and every other coordinate of that
geometry must match it, as in GEOS. A collection member infers its own dimension
(GEOMETRYCOLLECTION Z (POINT (1 2 3))is valid;GEOMETRYCOLLECTION M (POINT (1 2 3))
raises "cannot mix dimensionality"). This applies toGeoSeries.from_wktand to WKT geometry
columns in GeoParquet, Feather and Arrow. Text that was read before is read the same way. On
12 000 random WKT texts, accepted and rejected inputs match Shapely 2.2, and so do the
coordinates, except for one GEOS quirk:MULTIPOINT (1 2 3 4, 5 6 7 8)(no inner
parentheses) is ZM here, while GEOS drops its M. - WKT ordinates
NaN,infandInfinity(any case, optional sign) are read as GEOS reads
them instead of raising, so the WKT thatto_wktwrites for a collection whose members mix
dimensions (GEOMETRYCOLLECTION Z(POINT Z(1 2 NaN),...), since 0.3.0) reads back, and Shapely's
Infinityis understood.POINT (NaN NaN)reads asPOINT EMPTY, the GeoArrow empty point.
Known issues
- A
MULTIPOINTwith an empty member point, which Shapely writes to WKB as a NaN NaN point
(MULTIPOINT (EMPTY, (1 1))), reads withis_emptytrue for the whole row, andto_wktof it
raises (:nif_panicked). Present since earlier releases; tracked for a later release. get_coordinatesraisesArgumentErroron an infinite ordinate. Present since earlier releases.