projfwd
Project latitude-longitude coordinates to x-y map coordinates
Description
[
transforms the latitude-longitude coordinates specified by x,y] =
projfwd(proj,lat,lon)lat
and lon to the x and
y map coordinates in the projected coordinate reference
system specified by proj. Specify proj
using a projcrs
object (since R2020b), a map projection structure, or a GeoTIFF
information structure.
Examples
Input Arguments
Output Arguments
Tips
If the geographic CRS of lat and lon does
not match the geographic CRS of proj, then the values of
x and y may be inaccurate. When
proj is a projcrs object, you can find its
geographic CRS by querying its GeographicCRS property. For example,
this code shows how to create a projcrs object from EPSG code 32610 and
find the associated geographic CRS.
proj = projcrs(32610); proj.GeographicCRS.Name
ans =
"WGS 84"