Add force-gps flag

Former-commit-id: f6199b44f4
pull/1161/head
nchamo 2019-08-13 14:04:38 -03:00
rodzic ecac85cf30
commit bb3b85d3e4
4 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -61,3 +61,4 @@ project_path: '/' #DO NOT CHANGE THIS OR DOCKER WILL NOT WORK. It should be '/'
#orthophoto_bigtiff: IF_SAFER # Options are [YES, NO, IF_NEEDED, IF_SAFER]
#build_overviews: FALSE
#pc-classify: none
#force_gps: False

Wyświetl plik

@ -574,6 +574,12 @@ def config():
'Options: %(choices)s. Default: '
'%(default)s'))
parser.add_argument('--force-gps',
action='store_true',
default=False,
help=('Use images\' gps exif data for reconstruction, even if there are gcps present.'
'This flag is useful if you have high precision gps measurements.'))
args = parser.parse_args()
# check that the project path setting has been set properly

Wyświetl plik

@ -133,7 +133,8 @@ class OSFMContext:
if gcp_path:
config.append("bundle_use_gcp: yes")
config.append("bundle_use_gps: no")
if not args.force_gps:
config.append("bundle_use_gps: no")
io.copy(gcp_path, self.path("gcp_list.txt"))
config = config + append_config

Wyświetl plik

@ -61,3 +61,4 @@ project_path: '' # Example: '/home/user/ODMProjects'
#orthophoto_bigtiff: IF_SAFER # Options are [YES, NO, IF_NEEDED, IF_SAFER]
#build_overviews: FALSE
#pc-classify: none
#force_gps: False