geocrs
R2026bGeographic coordinate reference system object
Description
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. Optionally, a
geocrs object can represent a compound CRS or a 3-D geographic CRS by
including a vertical CRS.
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.
Creation
You can create a geographic CRS object in these ways:
Import raster data using functions such as
readgeorasterorwmsread, and then query theGeographicCRSproperty of the returned raster reference object.Import vector data by using the
readgeotablefunction, and then query theGeographicCRSproperty of the shape objects in the returned geospatial table.Get information about a shapefile using the
shapeinfofunction, and then query theCoordinateReferenceSystemfield of the returned structure.Access the geographic CRS of a projected CRS by querying the
GeographicCRSproperty of aprojcrsobject.Use the
geocrsfunction (described here).