@@ -278,9 +278,16 @@ def get_info(self) -> Dict[str, Any]:
278278 rpcs .append (('projection' , self .projection ))
279279
280280 if isinstance (self .geometry , ee .Geometry ):
281- rpcs .append (('bounds' , self .geometry .bounds ()))
281+ rpcs .append (('bounds' , self .geometry .bounds (1 , proj = self . projection )))
282282 else :
283- rpcs .append (('bounds' , self .image_collection .first ().geometry ().bounds ()))
283+ rpcs .append (
284+ (
285+ 'bounds' ,
286+ self .image_collection .first ()
287+ .geometry ()
288+ .bounds (1 , proj = self .projection ),
289+ )
290+ )
284291
285292 # TODO(#29, #30): This RPC call takes the longest time to compute. This
286293 # requires a full scan of the images in the collection, which happens on the
@@ -293,14 +300,16 @@ def get_info(self) -> Dict[str, Any]:
293300 # client-side. Ideally, this would live behind a xarray-backend-specific
294301 # feature flag, since it's not guaranteed that data is this consistent.
295302 columns = ['system:id' , self .primary_dim_property ]
296- rpcs .append ((
297- 'properties' ,
303+ rpcs .append (
298304 (
299- self .image_collection .reduceColumns (
300- ee .Reducer .toList ().repeat (len (columns )), columns
301- ).get ('list' )
302- ),
303- ))
305+ 'properties' ,
306+ (
307+ self .image_collection .reduceColumns (
308+ ee .Reducer .toList ().repeat (len (columns )), columns
309+ ).get ('list' )
310+ ),
311+ )
312+ )
304313
305314 info = ee .List ([rpc for _ , rpc in rpcs ]).getInfo ()
306315
0 commit comments