Geographic coordinate reference system
A geographic coordinate reference system (CRS) provides information that assigns latitude, longitude, and height coordinates to physical locations. Geographic CRSs consist of a datum, a prime meridian, and an angular unit of measurement.
Projected CRSs consist of a geographic CRS and several parameters that are used to
transform coordinates to and from the geographic CRS. For more information about projected
CRSs, see projcrs
.
There are several ways to create geographic CRS objects, including:
Import raster data using functions such as readgeoraster
or wmsread
, and then query the
GeographicCRS
property of the returned raster reference object.
Get information about a shapefile using the shapeinfo
function, and then query the
CoordinateReferenceSystem
field of the returned structure.
Access the geographic CRS of a projected CRS by querying the
GeographicCRS
property of a projcrs
object.
Use the geocrs
function (described here).
wktstring | Well-known text string |
Even when the property values of two geocrs
objects are the same, the WKT
for the objects might be different. As a result, when you compare two geocrs
objects by using the isequal
function, the function might return
0 (false)
, even when the property values are the same. Compare
geocrs
objects by directly comparing their property values instead.