Skip to main content

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

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.


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


Reply