geofileops.cmp#

geofileops.cmp(path1: str | PathLike[Any], path2: str | PathLike[Any]) bool#

Compare if two geofiles are identical.

For geofiles that use multiple files, all relevant files must be identical. Eg. for shapefiles, the .shp, .shx and .dbf file must be identical.

Parameters:
  • path1 (PathLike) – path to the first file. GDAL vsi paths are not supported.

  • path2 (PathLike) – path to the second file. GDAL vsi paths are not supported.

Returns:

True if the files are identical

Return type:

bool