This function reads and validates a polygon file containing the extent. It checks if the file has the correct format and extracts the geometry.
read_extent_polygon(file_path, show_modal = FALSE)
A spatial object representing the extent if the file is valid, NULL otherwise.
Path to the polygon file containing the extent.
Optional. Logical. Whether to show a modal notification for warnings. Default is FALSE.