I check crs congruency as means of quality control prior to spatial analysis involving a geodataframe (gdf) and a raster (rstr).
print(gdf.crs)
returns 'epsg:2193'
and
print(rstr.crs)
returns 'EPSG:2193'
which is notionally OK as cross-checking in QGIS confirms they're the same. However, a logical test:
gdf.crs == rstr.crs
returns 'False'
While this appears like it could be a simple matter of case-sensitivity, I noticed they are two different data types (<class 'pyproj.crs.crs.CRS'> and <class 'rasterio.crs.CRS'>, respectively) so maybe that's the inequality?
What's my best option for resolving how the two different packages return crs?