Closed jpswinski closed 8 months ago
Drilling down, it looks like burning the geojson is very fast, but that the inclusion check is very slow. Looking at the code, it is going through the same getSamples() call that all other GeoRaster and GeoIndexedRaster rasters do. I wonder if the include
function could just convert the coordinates to pixel coordinates itself and do a lookup directly in memory.
Fixed in v4.0.4 - the GeoJsonRaster was reworked to create a local buffer (subset) of pixels with direct access/lookup for the "includes" call.
When making request to subset ATL03 data, if the request includes the "raster" keywork which indicates that the data should be subsetted using a rasterized version of the polygon, then the subsetting request takes about 6x longer.
The following request takes ~18 seconds
The following request takes ~3 seconds