locationtech / rasterframes

Geospatial Raster support for Spark DataFrames
http://rasterframes.io
Apache License 2.0
243 stars 46 forks source link

Add functionality to filter based on tile dimensions #421

Open emc5ud opened 4 years ago

emc5ud commented 4 years ago

What I'd like to do:

chipped_rf.filter(rf_dimensions('B4') == (256, 256))

What I had to do instead:

chipped_rf.filter(rf_dimensions('B4).cols == 256).filter(rf_dimensions('B4').rows == 256)
metasim commented 4 years ago

This looks more like generic tuple predicates. Might require method injection onto Python column class.