Working with point data #723
Replies: 2 comments 7 replies
-
Hi @adamjstewart, I am looking into this now and would like to start thinking about the implementation of the PointGeoSampler. Say I have an instance of the GBIF dataset, which contains lat/lon or are you assuming the PointGeoSampler already should contain the satellite image and the lat/lon points? Let me know your thoughts |
Beta Was this translation helpful? Give feedback.
-
Hi @adamjstewart, could you please take a look at this code and tell me if this is in the right direction for this? or what is missing? The I would like to understand how:
|
Beta Was this translation helpful? Give feedback.
-
A user asked me how to use point data in TorchGeo, so I'm writing a summary of how I would do this. Note that this is experimental and subject to change.
I think the workflow would look something like this:
The workflow is almost identical to https://github.com/microsoft/torchgeo#geospatial-datasets-and-samplers but with one key difference:
PointGeoSampler
.PointGeoSampler
hasn't been written yet, but it would behave something like this. First, instead of taking in a singledataset
as input, it would take inimage
andpoint
datasets separately. The__init__
method would look something like:Basically, we're just trying to make sure all of our points are within the bounds of the images in our image dataset.
The
__iter__
method would look something like:I haven't yet found the time to work on
PointGeoSampler
. There's a research project I'm working on that may need this eventually, so I'm hoping to implement this later this fall. But if anyone wants to take a stab at this, I would be happy to review a PR!Beta Was this translation helpful? Give feedback.
All reactions