locationtech / geotrellis

GeoTrellis is a geographic data processing engine for high performance applications.
http://geotrellis.io
Other
1.33k stars 360 forks source link

SpatialJoin not working properly in case of overlapping rasters #3366

Open CatchSandeepVaid opened 3 years ago

CatchSandeepVaid commented 3 years ago

Describe the bug

I have 2 rasters which are overlapping (having same bounds (0,0) to (74,159). I am doing a spatial join on them but the resulting RDD is not the intersection of these 2 rasters (rather i think it is same as raster1)

To Reproduce

Provide as able:

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

Add any other context about the problem here.

moradology commented 2 years ago

As described this doesn't appear to be a bug. For any two extents E1, E2 the intersection of them should be equal to both E1 and E2. I would expect the intersection of two neatly overlapping rasters to be the same as both of the inputs to the intersection operation.

Perhaps you can provide more details to help us reproduce this error?