Skip to content
Browse files

CameraBBox: adjust lon only for non-projected georef

  • Loading branch information...
1 parent 3c63d77 commit b031224d0ee265bc48ae1d500342bbf3f89a9c2e @oleg-alexandrov oleg-alexandrov committed Dec 21, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/asp/Tools/orthoproject.cc
View
5 src/asp/Tools/orthoproject.cc
@@ -326,9 +326,10 @@ int main(int argc, char* argv[]) {
// Throw an error if there turns out to be no overlap.
projection_bbox = cam_bbox; projection_bbox.crop(dem_bbox);
- if ( projection_bbox.empty() ) {
+ if ( projection_bbox.empty() && !dem_georef.is_projected()) {
- // If the boxes do not intersect, it may be that one box is shifted in respect to the other by 360 degrees.
+ // If the boxes do not intersect, it may be that one box is
+ // shifted in respect to the other by 360 degrees.
// Attempt 1
projection_bbox = cam_bbox - Vector2(360.0, 0.0); projection_bbox.crop(dem_bbox);
if ( projection_bbox.empty() ) {

0 comments on commit b031224

Please sign in to comment.
Something went wrong with that request. Please try again.