dtcc-platform / dtcc-model

MIT License
1 stars 1 forks source link

Make LandUse fit into new data model #38

Open anderslogg opened 2 months ago

anderslogg commented 2 months ago

Where does it belong? Some kind of values? Or an object?

snjsomnath commented 2 months ago

Use case A: Interoperability

There are not many analysis-related use cases that would directly consume the LandUse object (that I can think of). However, almost all use cases would benefit from having interoperability to return a GeoPandas GeoDataframe object from a LandUse object. To achieve this the model also needs to know the coordinate system. Perhaps include a Transform parameter?

Use case B: Visualisation pipeline:

In the Unreal Engine pipeline, we use raster masks for each land-use type. A raster mask is a black-and-white raster, where black indicates the absence of land use and white indicates its presence. Since the LandUse object contains a vector geometry as a Shapely Polygon, a .to_raster_mask() method will be nice to have where raster cell-spacing and bounds can be passed in as arguments.