A collection of functions to browse lidar data collections, query collections for coverage for specific locations, and retrieve data covering locations.
Creative Commons Zero v1.0 Universal
5
stars
1
forks
source link
Using Spatial* data types and lon-lat coordinates causes problems #17
For the query functions, providing Spatial objects for the aoi parameter or specifying an (x,y) and returnType = "Spatial" causes problems due to the use of geos buffering function (requires planar coordinates). You can work around this by using returnType = "sf" when using (x,y) or converting a Spatial object to sf and then using the sf object in the function call.
The fix for this needs to rework the prepareTargetData function to use sf objects internally. Also may have to add documentatoin that it really doesn't makes sense to use lon-lat and a buffer since the actual buffer size will vary depending on where you are on the earth.
For the query functions, providing Spatial objects for the aoi parameter or specifying an (x,y) and returnType = "Spatial" causes problems due to the use of geos buffering function (requires planar coordinates). You can work around this by using returnType = "sf" when using (x,y) or converting a Spatial object to sf and then using the sf object in the function call.
The fix for this needs to rework the prepareTargetData function to use sf objects internally. Also may have to add documentatoin that it really doesn't makes sense to use lon-lat and a buffer since the actual buffer size will vary depending on where you are on the earth.