isequal
Syntax
Description
returns logical tf = isequal(crs1,crs2)1 (true) if the coordinate reference
systems (CRSs) crs1 and crs2 are equivalent.
Otherwise, it returns logical 0 (false).
Two
projcrsobjects are equivalent if they have the same geographic CRS, projection method, projection parameters, and length unit.Two
geocrsobjects are equivalent if they have the same datum name, reference spheroid, prime meridian, and angle unit.
The isequal function does not consider CRS names.
Examples
Input Arguments
Tips
If you expect two coordinate reference systems to be equivalent, but the
isequalfunction returns0(false), you can inspect the WKT strings for differences using thewktstringfunction.
Version History
Introduced in R2021a