This function opens a window that asks the user to select a shapefile for aggregation. The file selection window looks like this.

Figure: Dialog to select your shapefile

Select your folder and file and click Open. Clicking Cancel on this window will trigger a flag to cancel GAT.

locateGATshapefile(myfile = "", step = 1, msg = "", myprogram = "GAT")

Arguments

myfile

String denoting default file name and location to open.

step

Step number to print in title bar. Default is 1.

msg

String denoting your message to display in the status bar.

myprogram

String denoting the program name. GAT is the default.

Details

This function returns a list with the following elements.

  • The full name and path for the shapefile, without the extension.

  • The name of the shapefile, without the extension.

  • The full path for the shapefile.

The window may be hidden behind other windows. If so, minimize or close the other windows or click on it to bring it to the front.

Examples


if (interactive()) {
# navigate to and select a shapefile
locateGATshapefile()

# provide a default location to start
locateGATshapefile(
  msg = "Select your shapefile",
  myfile = getwd()
)

}
#> $userin
#> [1] "cancel"
#> 
#> $filein
#> [1] ""
#> 
#> $pathin
#> [1] ""
#>