How terrain places a camera pixel on the map#

Start with one output cell: its position on the map grid is fixed, but the source image sample selected for that cell depends on the terrain height used to locate it.

From a map cell to an image line and sample#

The grid supplies the cell’s horizontal position, and the DEM supplies the terrain height there. Once position and height are expressed in the references the camera model expects, the rational polynomial coefficients relate that ground position to a line and sample in the source image.

RPC holds detached coefficients and metadata. An RPCTransformer or an orthorectification plan uses them to evaluate positions.

One NAVD88 elevation interpreted two ways#

Hold the grid and camera model fixed. Compare converting a DEM elevation from NAVD88 to ellipsoidal height with using the same numeric value directly as ellipsoidal height. Where the conversion changes the height and the camera mapping is height-sensitive, the same map cell can select a different source sample. A feature can therefore shift within the fixed output grid. The direction and displacement depend on the scene.

In the NAVD88 workflow, the grid directory and decimal epoch are inputs to Proj’s vertical conversion. The selected CUDA orthorectification stage is separate: it uses the ground position, including the converted height, to select the source image sample for the output cell.

What validity says about placement#

A cell can receive a valid sample and zero status under an incorrect height assumption. Those fields report sampling success. Checking the height reference addresses whether the sample is placed correctly.

For the separate question of why particular cells have invalid output, see Check coverage and diagnose invalid output.