GRASS logo

NAME - Checks if two GRASS GIS maps are identical.


general, map management, list

SYNOPSIS --help [-gct] ainput=name binput=string type=datatype[,datatype,...] [--help] [--verbose] [--quiet] [--ui]


Return output in shell script style (0 fail, 1 success)
Does not consider the color table for raster
Does not consider the topology for vector
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


ainput=name [required]
Name of first map to check
binput=string [required]
Name of second map to check
type=datatype[,datatype,...] [required]
Data type(s)
Options: raster, vector
Default: raster

Table of contents

DESCRIPTION is a module that checks if two GRASS maps are identical. It uses the MD5 cryptographic hash function. For vector map layers it does not check if the attribute table(s) are identical, too.


North Carolina example, with elevation map:
# copy a raster map
g.copy raster=elevation,dem

# now check and return TRUE ainput=elevation binput=dem

# now change the color table
r.colors map=dem color=srtm

# check again and it should return FALSE ainput=elevation binput=dem

# but when adding the -c flag (ignore color table), TRUE is returned -c ainput=elevation binput=dem


Luca Delucchi, Fondazione Edmund Mach, Research and Innovation Centre, Department of Biodiversity and Molecular Ecology, GIS and Remote Sensing Unit, Italy


Available at: source code (history)

Latest change: Wednesday Jun 28 19:14:49 2023 in commit: 7845080509185ee0c7e7bd9129e8fe548c014f7b

Main index | General index | Topics index | Keywords index | Graphical index | Full index

© 2003-2024 GRASS Development Team, GRASS GIS 8.3.3dev Reference Manual