Repository navigation
GeoFrame 0.1.1
Like 0.1.0, it is distributed through the v0.1.1 git tag and GitHub release, not through Hex.
Results change in three places, each to match GEOS or PROJ: is_valid and make_valid on
collinear (zero-area) rings, polygonize and build_area with node: true, and to_crs on
ESRI WKT1 .prj files, which now get the datum shift PROJ applies.
Added
set_crs/2onGeoSeriesandGeoDataFrameaccepts a positive integer EPSG code, like
to_crs/2already did:set_crs(series, 3857)stores"EPSG:3857", the same label as the
string input. A non-positive integer raisesArgumentError.
Changed
- A polygon ring whose vertices are all collinear (zero area) is now invalid, as in GEOS:
is_validis false (reasonSelf-intersection[...]orToo few points in geometry component[...]) andmake_validcollapses it to linework (MULTILINESTRING,LINESTRINGor
POINT) instead of returning it unchanged. A valid polygon with a collinear hole, or a
multipolygon with a collinear part, becomes aGEOMETRYCOLLECTIONof the polygon and the
linework. The reference
suite is now 18 134 agree and 730 documented deviations out of 18 864. polygonizeandbuild_areawithnode: truekeep every input vertex that lies on the merged
outline, as GeoPandas does (shapely.polygonize([union_all()])). Two squares sharing an edge
now givePOLYGON ((0 0, 0 1, 1 1, 2 1, 2 0, 1 0, 0 0))instead of dropping the collinear
vertices. On a 400-case fuzz against GEOS,polygonizemismatches fell from 232 to 8 and
build_areafrom 245 to 134, with no case worse.- An ESRI WKT1
.prj(GCS_.../D_...names, noAUTHORITY) now gets the datum shift PROJ
applies, identified by the DATUM name instead of the GEOGCS name: ED50 about 138 m, OSGB36
about 109 m, Tokyo about 463 m, NAD27 UTM about 20 m. Before,to_crs/2returned the unshifted
coordinates for that text. Against pyproj on 1 110 CRSs written as WKT1_ESRI, mismatches over
5 cm fell from 716 to 60, with no case worse. GDA94, GDA2020 and CR-SIRGAS are not covered, and
a definition with a non-Greenwich prime meridian (Ferro, Paris, Rome, ...) keeps its previous
result.
Fixed
- An ESRI WKT1
.prjfor a StatePlane CRS (for example ESRI:102649, Arizona Central in US
survey feet) is now read byto_crs/2,set_crs/2andGeoFrame.Kino.deck/2instead of
raisingunsupported WKT definition. WKT1 parameter names are matched without regard to
case (ESRI writesFalse_Easting,Standard_Parallel_1), and ESRI's
Lambert_Conformal_Conicis read as the 2SP method when it has a second standard parallel, and
as the 1SP method (withStandard_Parallel_1equal toLatitude_Of_Origin, as ESRI writes it)
otherwise; a lone standard parallel that differs from the origin is still refused.
Foot_USandFootunits are honoured. Reprojection matches pyproj. - Mixed-dimension geometry collections (XY, XYZ, XYM and XYZM members together) no longer print
GeoArrow panic messages on stderr. The error returned is the same and behaviour is unchanged.
Documentation
- The description of GEOS
set_precisionon invalid multipolygons indocs/parity.mdis
corrected: GEOS keeps a part whose edges meet no other part's, merges parts with coinciding
edges, and raisesTopologyExceptionon crossing edges.
Internal
- CI caches the compiled NIF together with
_build. - The linear-referencing property test no longer asserts that
projectreturns the earliest
pass on overlapping lines, which GEOS does not guarantee either.
Full changelog: CHANGELOG.md