Adding OSM data masks to an existing torchGeo geospatial data set #951
Replies: 2 comments 2 replies
-
Hi @dsterlingdg, this doesn't exist in TorchGeo (although would be a cool feature!). To implement this you would need to know how to talk to an OSM API (e.g. Overpass). The |
Beta Was this translation helpful? Give feedback.
-
To add to what @calebrob6 said, you would want to create a new image = ... # some image dataset, might be different res or CRS
mask = ... # some mask dataset, might be different res or CRS
osm = OSM(...)
dataset = image & mask & osm
dataloader = DataLoader(dataset, ...) |
Beta Was this translation helpful? Give feedback.
-
I would like to create a custom data loader that wraps an existing torchGeo geospatial data set to return a data mask containing Open Street Maps (OSM) labels in addition to the default image and label mask. I'm relatively new to working with geospatial data --- are there primitives in torchGeo that I can/should use to carry out the task of acquiring the OSM data for a given bounding box and then performing any coordinate system transformation/registration tasks required to get pixel level alignment of OSM labels and the raster data?
Beta Was this translation helpful? Give feedback.
All reactions