1

Using GDAL and/or Python Red: GeoTIFF raster Map layer 1 Blue: GeoTIFF raster Map layer 2

enter image description here

closed as off-topic by Vince, Jochen Schwarze, Evil Genius, Kadir Şahbaz, BERA Sep 19 '18 at 12:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Vince, Jochen Schwarze, Evil Genius, Kadir Şahbaz, BERA
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Pixel-in-pixel is not a common GIS operation. The relationship will occur infrequently, but regularly, depending on the origins and pixel dimensions. I can't think of any possible use for this information. You'll need to use Python, and include your code in the question body. – Vince Sep 19 '18 at 10:28
0

Assuming no rotation, if you have the coordinates of the center of your pixel, you can check that both the absolute difference between the X or Y coordinates of your "blue" pixel" and the "red" pixel is smaller than the difference between the half-width of the "red pixel" and the "blue" pixel (in the X and Y direction).

gdalinfo will give you the necessary information.

Not the answer you're looking for? Browse other questions tagged or ask your own question.