From 3585be8e749b5b925b042905a692bd31d3cc4600 Mon Sep 17 00:00:00 2001 From: Oleg Alexandrov Date: Tue, 20 Aug 2024 15:35:24 -0700 Subject: [PATCH] More code format --- src/asp/Tools/mapproject_single.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/asp/Tools/mapproject_single.cc b/src/asp/Tools/mapproject_single.cc index 00895b434..86525cf55 100644 --- a/src/asp/Tools/mapproject_single.cc +++ b/src/asp/Tools/mapproject_single.cc @@ -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) { @@ -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; } }