Skip to content

Conversation

soniacq
Copy link
Contributor

@soniacq soniacq commented Jul 9, 2025

This PR introduces initial support for loading and processing raster datasets within UrbanMapper. It includes a flexible RasterLoader capable of reading a variety of raster formats and exposing them in multiple representations suitable for analysis and visualization.

Key Features

  • Raster File Loading
    Supports GeoTIFF, PNG, JP2, and other formats via rasterio.

  • Multiple Output Modes

    • Returns raster data as a 3D NumPy array
    • Supports downsampling into spatial blocks and exporting as a GeoDataFrame with geometry
  • Spatial Aggregation
    Enables block-wise summarization of raster values with centroid and area geometry for scalable spatial analysis.

  • Tests & Example Usage
    Includes basic unit tests and example usage in notebooks to demonstrate integration into the UrbanMapper workflow.

@JUDITH-sketch feel free to update this description if needed.


📚 Documentation preview 📚: https://UrbanMapper--70.org.readthedocs.build/en/70/

@soniacq soniacq marked this pull request as draft July 10, 2025 21:42
@soniacq soniacq force-pushed the feat/support_raster_data branch from ab32d4a to 1a88f9b Compare July 17, 2025 21:50
@JUDITH-sketch JUDITH-sketch force-pushed the feat/support_raster_data branch from 1a88f9b to fdfb4c7 Compare July 18, 2025 16:23
@soniacq soniacq force-pushed the feat/support_raster_data branch from 755b651 to eaa6319 Compare July 21, 2025 21:44
@JUDITH-sketch JUDITH-sketch force-pushed the feat/support_raster_data branch from eaa6319 to 53af02e Compare July 21, 2025 21:52
@soniacq soniacq force-pushed the feat/support_raster_data branch from 53af02e to 8be720a Compare July 21, 2025 22:03
- Implement RasterLoader to load raster files with rasterio
- Support loading GeoTIFF, PNG, JP2 and other formats
- Modified to add example usage of raster loader
- Raster loader returning 3D array
- Implement RasterLoader with block-wise downsampling and polygon geometry
- Convert raster pixels into aggregated blocks with spatial geometry
- Output GeoDataFrame with pixel_id, coordinates, value, area
@JUDITH-sketch JUDITH-sketch force-pushed the feat/support_raster_data branch from 8be720a to 7d61fc4 Compare July 21, 2025 22:10
@simonprovost
Copy link
Member

simonprovost commented Aug 22, 2025

Hi @soniacq, hoping all is well :)

May you kindly please let me know how far along this draft is? As of right present, the PR seems to be dead (i.e., no update for a month). Yet, is it perhaps discontinued for the time being? Or are people still working on it, and as such the draft status makes sense (maybe people are on annual leave, in which case the one-month no update makes 100% sense)? If the latter, it will not hurt to provide a quick update in the comments whenever anyone in charge can, please 🙏

Wishing you guys a nice weekend ahead (no high rush as to answer this; just friendly requesting an update) :)

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants