@@ -58,15 +58,15 @@ function extract end
5858 names= _names (x), name= names, skipmissing= false , geometry= true , index= false , geometrycolumn= nothing , kw...
5959)
6060 n = DD. _astuple (name)
61- _extract (x, data;
61+ geoms = _get_geometries (data, geometrycolumn)
62+ _extract (x, geoms;
6263 dims= DD. dims (x, DEFAULT_POINT_ORDER),
6364 names= NamedTuple {n} (n),
6465 # These keywords are converted to _True/_False for type stability later on
6566 # The @inline above helps constant propagation of the Bools
6667 geometry= _booltype (geometry),
6768 index= _booltype (index),
6869 skipmissing= _booltype (skipmissing),
69- geometrycolumn,
7070 kw...
7171 )
7272end
7878function _extract (A:: RasterStackOrArray , geom; names, kw... )
7979 _extract (A, GI. geomtrait (geom), geom; names, kw... )
8080end
81- function _extract (A:: RasterStackOrArray , :: Nothing , data ;
82- names, skipmissing, geometrycolumn, kw...
81+ function _extract (A:: RasterStackOrArray , :: Nothing , geoms ;
82+ names, skipmissing, kw...
8383)
84- geoms = _get_geometries (data, geometrycolumn)
8584 T = _rowtype (A, eltype (geoms); names, skipmissing, kw... )
8685 # Handle empty / all missing cases
8786 (length (geoms) > 0 && any (! ismissing, geoms)) || return T[]
0 commit comments