geopandas.testing.assert_geoseries_equal(left, right, check_dtype=True, check_index_type=False, check_series_type=True, check_less_precise=False, check_geom_type=False, check_crs=True, normalize=False)[source]#

Test util for checking that two GeoSeries are equal.

left, righttwo GeoSeries
check_dtypebool, default False

If True, check geo dtype [only included so it’s a drop-in replacement for assert_series_equal].

check_index_typebool, default False

Check that index types are equal.

check_series_typebool, default True

Check that both are same type (and are GeoSeries). If False, will attempt to convert both into GeoSeries.

check_less_precisebool, default False

If True, use geom_equals_exact with relative error of 0.5e-6. If False, use geom_equals.

check_geom_typebool, default False

If True, check that all the geom types are equal.

check_crs: bool, default True

If check_series_type is True, then also check that the crs matches.

normalize: bool, default False

If True, normalize the geometries before comparing equality. Typically useful with check_less_precise=True, which uses geom_equals_exact and requires exact coordinate order.