<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br><div>It would help is you explained what exact algorithm you are using to process the images. Some plugins may not add the CRS to the file while some will not.  Data type and compression will have no effect as expected, unless you are dealing with a bug.  If you keep on having the problems, just open the file, specify the CRS and save it with a new name.  This way, the CRS will be embedded it the tiff header.</div><div><br></div><div>Why are you creating a virtual image in the first place?  Are you trying to stitch multiple files together before doing the pansharpening? IMHO, Results should be better if you go at it one scene at a time and then stitch the results later, unless you have no overlapping scenes…</div><div><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 31 déc. 2022 à 16:35, Grant Boxer via QGIS-User <qgis-user@lists.osgeo.org> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style>@font-face { font-family: "Cambria Math"; }
@font-face { font-family: Calibri; }
p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; }
span.EmailStyle17 { font-family: Calibri, sans-serif; color: windowtext; }
.MsoChpDefault { font-family: Calibri, sans-serif; }
@page WordSection1 { size: 612pt 792pt; margin: 72pt; }
div.WordSection1 { page: WordSection1; }</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal">Happy New Year to all! <o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I have been processing satellite imagery and producing pansharpened images. I create a virtual image with CRS no problem, but when I save  the resulting GeoTiff file it loses its CRS and results in an invalid projection. I have tried changing the data types and compressions with no luck. I find that when you do the first image it might work, but doing a second image it loses the CRS. Not sure whether this is a proj or gdal issue. Any thoughts?<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Cheers Grant, Perth WA.<span style="mso-fareast-language:EN-AU"><o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p></div><span>_______________________________________________</span><br><span>QGIS-User mailing list</span><br><span>QGIS-User@lists.osgeo.org</span><br><span>List info: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br><span>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br></div></blockquote></div></div></body></html>