Skip to content

worldFileMatrix

geometry · scripts/geometry/worldFileMatrix.m

WORLDFILEMATRIX  2-by-3 world file matrix from a raster reference (MATLAB Mapping).
  W = WORLDFILEMATRIX(R) returns the affine world-file matrix for a
  MapCellsReference / MapPostingsReference / GeographicCellsReference /
  GeographicPostingsReference object or struct with the same fields.

  Given W = [A B C; D E F], intrinsic (xi, yi) maps to world (xw, yw) by:
    xw = A*(xi-1) + B*(yi-1) + C
    yw = D*(xi-1) + E*(yi-1) + F
  For geographic rasters, xw is longitude and yw is latitude.
  Rectilinear references have B = D = 0.

  Parity target: MATLAB R2026a Mapping Toolbox (tol 1e-8 on coordinates).
  GitLab bryan.taylor/nexus#2097 / val-map-004.