Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open files in selected layer #16

Closed
wants to merge 0 commits into from
Closed

Conversation

huobos
Copy link
Contributor

@huobos huobos commented Jan 17, 2017

These changes are for the following workflow:

  1. Open Side Panel.
  2. Click an existing layer, e.g. My Bike Tracks.
  3. File->Open. Select multiple GPX files. OK.
  4. All GPX tracks are added to Top Layer->My Bike Tracks->Tracks.

@@ -289,7 +289,7 @@ static void datasource_bfilter_exclude_polygon_get_process_options ( VikLayerPar

VikDataSourceInterface vik_datasource_bfilter_exclude_polygon_interface = {
N_("Waypoints Outside This"),
N_("Polygonzied Layer"),
N_("Polygonized Layer"),
VIK_DATASOURCE_CREATENEWLAYER,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This typo fix change has nothing to do with this overall commit.

}
}

int i,j;
if ((fd_dst = g_file_open_tmp("tmp-viking.XXXXXX", &name_dst, NULL)) >= 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also seems irrelevant to the overall commit.

A further comment to explain why this useful (such as avoid running GPSBabel if possible).
I think it to be very rare that input arguments would only be "-i gpx".

Copy link
Collaborator

@rnorris rnorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code to open files in selected layer looks good.
If you remove the unnecessary changes for this commit (and hopefully make them separate change requests), I will certainly approve and merge the changes.
Thanks.

@huobos
Copy link
Contributor Author

huobos commented Jan 17, 2017 via email

@huobos
Copy link
Contributor Author

huobos commented Jan 18, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants