From: Rob Norris Date: Fri, 6 Nov 2015 16:00:21 +0000 (+0000) Subject: Save bfilter values used for subsequent reuse in a session. X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/c7b4a328044063c6dc8406768ac8c4fc8d770a7a Save bfilter values used for subsequent reuse in a session. --- diff --git a/help/C/viking.xml b/help/C/viking.xml index 09d649c3..d023ce81 100644 --- a/help/C/viking.xml +++ b/help/C/viking.xml @@ -3509,6 +3509,12 @@ Accept: */* Or in Windows use C:/Progra~1/Stellarium/stellarium.exe - This string value must use Unix separators and not have spaces. Further note due to this Bug in Stellarium means this does not actually work. You will need to reference a shortcut, rather than the executable directly. + + bfilter_simplify=100 + + + bfilter_compress=0.001 +
diff --git a/src/datasource_bfilter.c b/src/datasource_bfilter.c index e12c322c..c4aad5ca 100644 --- a/src/datasource_bfilter.c +++ b/src/datasource_bfilter.c @@ -58,6 +58,9 @@ static void datasource_bfilter_simplify_get_process_options ( VikLayerParamData po->babelargs = g_strdup ( "-i gpx" ); po->filename = g_strdup ( input_filename ); po->babel_filters = g_strdup_printf ( "-x simplify,count=%d", paramdatas[0].u ); + + // Store for subsequent default use + bfilter_simplify_params_defaults[0].u = paramdatas[0].u; } #define VIK_SETTINGS_BFILTER_SIMPLIFY "bfilter_simplify" @@ -134,6 +137,9 @@ static void datasource_bfilter_compress_get_process_options ( VikLayerParamData po->babelargs = g_strdup ( "-i gpx" ); po->filename = g_strdup ( input_filename ); po->babel_filters = g_strdup_printf ( "-x simplify,crosstrack,error=%-.5f%c", paramdatas[0].d, units ); + + // Store for subsequent default use + bfilter_compress_params_defaults[0].d = paramdatas[0].d; } #define VIK_SETTINGS_BFILTER_COMPRESS "bfilter_compress"