We analyzed narrow‐angle Mars Orbiter Camera (MOC‐NA) images to produce high‐resolution digital elevation models (DEMs) in order to provide topographic and slope information needed to assess the safety of candidate landing sites for the Mars Exploration Rovers (MER) and to assess the accuracy of our results by a variety of tests. The mapping techniques developed also support geoscientific studies and can be used with all present and planned Mars‐orbiting scanner cameras. Photogrammetric analysis of MOC stereopairs yields DEMs with 3‐pixel (typically 10 m) horizontal resolution, vertical precision consistent with ∼0.22 pixel matching errors (typically a few meters), and slope errors of 1–3°. These DEMs are controlled to the Mars Orbiter Laser Altimeter (MOLA) global data set and consistent with it at the limits of resolution. Photoclinometry yields DEMs with single‐pixel (typically ∼3 m) horizontal resolution and submeter vertical precision. Where the surface albedo is uniform, the dominant error is 10–20% relative uncertainty in the amplitude of topography and slopes after “calibrating” photoclinometry against a stereo DEM to account for the influence of atmospheric haze. We mapped portions of seven candidate MER sites and the Mars Pathfinder site. Safety of the final four sites (Elysium, Gusev, Isidis, and Meridiani) was assessed by mission engineers by simulating landings on our DEMs of “hazard units” mapped in the sites, with results weighted by the probability of landing on those units; summary slope statistics show that most hazard units are smooth, with only small areas of etched terrain in Gusev crater posing a slope hazard.