Skip to content

Commit

Permalink
More code format
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov committed Aug 20, 2024
1 parent 80fce7f commit 3585be8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/asp/Tools/mapproject_single.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,7 @@ void calc_target_geom(// Inputs
float auto_res = -1.0; // will be updated
bool quick = datum_dem; // The non-quick option does not make sense with huge DEMs.
try {
cam_box = camera_bbox(dem, dem_georef,
target_georef,
camera_model,
cam_box = camera_bbox(dem, dem_georef, target_georef, camera_model,
image_size.x(), image_size.y(), auto_res, quick);
} catch (std::exception const& e) {
if (opt.target_projwin == BBox2() || calc_target_res) {
Expand All @@ -271,8 +269,8 @@ void calc_target_geom(// Inputs
if (target_georef.is_projected()) {
current_resolution = opt.mpp; // Use units of meters
} else { // Not projected, GDC coordinates only.
current_resolution = 1/opt.ppd; // Use units of degrees
// Lat/lon degrees are different so we never want to do this!
// Use units of degrees. Lat/lon degrees are different so, this should be avoided.
current_resolution = 1/opt.ppd;
}
}

Expand Down

0 comments on commit 3585be8

Please sign in to comment.