Global Mapper Pro

Select GPX files inside a bounding box

darrepac
darrepac Global Mapper User

Hi


I have tons of GPX files, I can load them all with a catalogue into GM. I would like to choose a lat/lon rectangular bounding box and put GPX files that are inside such box into a specific folder on my machine.

I do not see how to achieve that...


thanks for your help

Tagged:

Answers

  • 946
    946 Global Mapper User Trusted User

    Hi,


    So you need to crop according to the bounding box and than export only what is inside that to new GPX files?

    If so you can use crop to selected area with option to keep crop parts in same layer in case you need separately.

    It s this what you are after?

  • darrepac
    darrepac Global Mapper User

    Interesting, but I would like to keep the original files as it is. Just remove the ones outside the box (or copy in other places, the one inside the box)

  • bmg_mike
    bmg_mike Global Mapper Guru Moderator, Trusted User

    There's not really a way to do file operations like that directly in Global Mapper.

    What you could do is load all of the GPX files directly and zoom in so only the bounds you want are onscreen. Then, do a batch convert from GPX to GPX with the output going in the new desired folder.

    If you want to do the file operations and are comfortable with Python, you can use the new Python scripting in v23.0 Pro to cycle through the maps in a catalog and check the bounds. You could then call file copy routines in Python to move the files to the desired location.

    Thanks,

    Mike

    Global Mapper Guru

    geohelp@bluemarblegeo.com

  • darrepac
    darrepac Global Mapper User

    Thanks for the hint. It could work. But as I have many files, I load them through a map catalog but then when I do the batch convert from GPX tp GPX and try to add "on screen files", I got an error "No files matching the convert from type are loaded"

  • bmg_mike
    bmg_mike Global Mapper Guru Moderator, Trusted User

    I actually noticed the same issue when batch converting from a map catalog and trying to load Onscreen Files. I have fixed this issue for the upcoming v23.1 release.

    There is a workaround though as the files are actually added to the list when you see that error, the list just isn't refreshed. So if you add Onscreen from the catalog and get the error, you can then add a single file that is recognized (just randomly pick one of the GPX files from disk), then everything added before will show up, as well as the new file. Just remove the just added file from the list and proceed.

    Thanks,

    Mike

    Global Mapper Guru

    geohelp@bluemarblegeo.com

Sign In or Register to comment.