Skip to main content
Solved

How to combine a folder of geotiffs satellite imagery files together in a row into a single geotiff

  • June 21, 2021
  • 2 replies
  • 126 views

brian_
Contributor
Forum|alt.badge.img+4

Hi I want to combine a folder of geotiffs satellite imagery files together in a row into a single geotiff. I dont need the coordinate sys of the geotiff output, just the pixels and its value to be stitched together.

 

Basically trying to do the same as this question https://stackoverflow.com/questions/30227466/combine-several-images-horizontally-with-python8rj1GTried the solutions posted there but the python pillow library does not seem to read geotifs

Anyone have an ideas on how to do this?

Thanks

Best answer by redgeographics

So just to clarify, you want to stitch them together horizontally regardless of their original coordinate system?

I'd strip the original coordinate system off (CoordinateSystemRemover), get the coordinate values of the lower left point as well as the pixels sizes (RasterPropertyExtractor) and then use an Offsetter to shift them all in a sort of fake coordinate space to be horizontally aligned and flush to eachother. Then a RasterMosaicker should do the trick.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • Best Answer
  • June 22, 2021

So just to clarify, you want to stitch them together horizontally regardless of their original coordinate system?

I'd strip the original coordinate system off (CoordinateSystemRemover), get the coordinate values of the lower left point as well as the pixels sizes (RasterPropertyExtractor) and then use an Offsetter to shift them all in a sort of fake coordinate space to be horizontally aligned and flush to eachother. Then a RasterMosaicker should do the trick.


brian_
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 4 replies
  • June 24, 2021

So just to clarify, you want to stitch them together horizontally regardless of their original coordinate system?

I'd strip the original coordinate system off (CoordinateSystemRemover), get the coordinate values of the lower left point as well as the pixels sizes (RasterPropertyExtractor) and then use an Offsetter to shift them all in a sort of fake coordinate space to be horizontally aligned and flush to eachother. Then a RasterMosaicker should do the trick.

brilliant thanks