Repository navigation
GeoFrame 0.3.2
Like earlier releases, it is distributed through the v0.3.2 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 that fixes the two known issues listed with 0.3.1: rows holding an empty member
point, and get_coordinates on non-finite values. No public function changes its signature.
Fixed
get_coordinatesreturns NaN and infinite ordinates (:nan,:infinity,:neg_infinity)
as Shapely does instead of raisingArgumentError: an infinite X, Y, Z or M, or a NaN X or Y,
could not cross from the NIF.to_wktwrites an empty member asEMPTY, as GEOS does. AMULTIPOINTwith an empty member
point (Shapely writesMULTIPOINT (EMPTY, (1 1))to WKB as a NaN point) madeto_wktraise a
NIF panic, and an empty member line of aMULTILINESTRINGor an empty ring of aPOLYGONwas
written as(), which no reader accepts.from_wktnow also readsMULTIPOINT (EMPTY, ...).- A
MULTIPOINTor collection with an empty member point (as Shapely writes
MULTIPOINT (EMPTY, (1 1))to WKB) is no longer treated as missing. As in GEOS, the member
takes no part in computations (is_emptyis false, andbounds,centroid, the measures,
predicates and constructive functions see the other members) but is still a member
(count_geometriescounts it,get_geometryandexplodereturn it asPOINT EMPTY, and the
affine functions keep it). Before,is_emptywas true and every measure null, and a
GeoPackage written from such a row read back as null. Checked on 1 200 random rows against
Shapely 2.2.
Known issues
- A
MULTIPOLYGONwith an empty member polygon (MULTIPOLYGON (EMPTY, ((0 0, 1 0, 1 1, 0 0))),
in WKT or WKB) cannot be stored and is rejected with a misleading message about mixed
dimensions. Present since earlier releases.