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
projcrs
objects are equivalent if they have the same geographic CRS, projection method, projection parameters, and length unit.Two
geocrs
objects 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
isequal
function returns0
(false
), you can inspect the WKT strings for differences using thewktstring
function.
Version History
Introduced in R2021a