shawnlaffan / biodiverse

A tool for the spatial analysis of diversity
http://shawnlaffan.github.io/biodiverse/
GNU General Public License v3.0
75 stars 19 forks source link

GUI: Improve warning message when no shapes overlap the plot area #835

Closed shawnlaffan closed 1 year ago

shawnlaffan commented 1 year ago

When a shapefile is plotted that has no features overlapping the plot area we raise a warning and return. We should provide more details to the user, as we do when the feature extent overlaps but is very small.

https://github.com/shawnlaffan/biodiverse/blob/c59780906214e6f5925f6fc5d49ee9348efb63a9/lib/Biodiverse/GUI/Grid.pm#L664-L670

https://github.com/shawnlaffan/biodiverse/blob/c59780906214e6f5925f6fc5d49ee9348efb63a9/lib/Biodiverse/GUI/Grid.pm#L746

One possible cause is that the shapefile coordinate system does
not match that of the BaseData, for example your BaseData
is in a UTM coordinate system but the shapefile is in
decimal degrees.  If this is the case then your shapefile
can be reprojected to match your spatial data using GIS software.