loc input sanity
mdsumner opened this issue · 1 comments
mdsumner commented
These funny cases need handling when loc
is spatial, rather than being a lon-lat pair:
- a single point, because no extent
- a raster extent, because no crs (assume lonlat if reasonable, with a warning - don't assume it's mercator)
- any object without a crs (do the same as extent, assume lonlat if
couldBeLonLat()
with a warning - buffer set explicitly to 0 or lower