assert_geom_equal#
- assert_geom_equal(geom_1: str | CloudPath | Path | GeoDataFrame, geom_2: str | CloudPath | Path | GeoDataFrame, ignore_z: bool = True, ignore_order: bool = True) None[source]#
Assert that two geometries are equal (do not check equality between geodataframe as they may differ on other fields).
Useful for pytests.
- Parameters:
Warning
- Only checks:
valid geometries
length of GeoDataFrame
CRS
Example
>>> path = r"CI/DATA/vectors/aoi.geojson" >>> assert_geom_equal(path, path) >>> # Raises AssertionError if sth goes wrong