Message Boards Message Boards

Import multiple files with Import and FileNameSetter for open street map

I am wondering if there is a way to import multiple files at once with FileNameSetter[] and or Import. I am working on importing pictures of trees with geotagged data to add to Open Street Map as tree point objects in my city of Huntington, West Virginia, United States. I have a list of files I am working on building that I will name filepaths and then turn into GeoPositions.

AssociationMap[
 GeoPosition[{Import[#, "MetaInformation"]["Exif"]["GPSLatitude"], 
    Import[#, "MetaInformation"]["Exif"][
     "GPSLongitude"]}] &, filepaths]

I am using File Explorer in Windows 10 and Import and FileNameSetter to import the names of the files one by one into my notebook but am wondering if there is a faster way.

I figured it out with {FileNameSetter[Dynamic[f], "OpenList"], Dynamic[f]}. I can replace this example of f with a variable such as TreeFiles or TreeImages.

POSTED BY: Peter Burbery
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract