<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Léopold,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">These are "top-view" images - right? Taken from a drone? Or a special rail coach and a </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Maybe you can mosaic the images with some photogrammetry software and create GeoTIFF images?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The display performance of many thousand individual images (each on its own) might not perform / scale too well?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Greetings,</div><div class="gmail_default" style="font-size:small">Andreas</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 20 Aug 2025 at 16:20, Léopold Stoessel via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3730582639085955668">
<div lang="FR-CA" style="overflow-wrap: break-word;">
<div class="m_-5264179854695846578WordSection1">
<p class="MsoNormal"><span lang="EN-CA">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">Our team is currently working on a project to reconstruct the railways of Canada using QGIS. To do this, we collect data directly on the rails, taking a photo every 2 meters. Each image (JPG) is accompanied by an XML
file containing its GPS coordinates (EPSG:4326) and orientation.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">Our goal is to display all the images on a QGIS map at their correct geographic location and with the proper orientation. (Example image:
<i>Try.jpg</i>)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">As far as I understand, a JPG file needs either an associated PGW world file or must be converted into a georeferenced TIFF in order to be correctly placed on the map.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">Here are the challenges we're facing:<u></u><u></u></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoNormal"><b><span lang="EN-CA">PGW method</span></b><span lang="EN-CA">: I tried placing a PNG file with a PGW of the same name in the same directory, but QGIS seems to ignore the PGW file and creates HTML document
with other coordinates instead.<u></u><u></u></span></li><li class="MsoNormal"><b><span lang="EN-CA">GeoTIFF method</span></b><span lang="EN-CA">: With over 500,000 images, manually georeferencing each one is not feasible.<u></u><u></u></span></li></ul>
<p class="MsoNormal" style="margin-left:36pt"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">So I would like to ask for your advice:<u></u><u></u></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoNormal"><span lang="EN-CA">Are we on the right track with our approach?<u></u><u></u></span></li><li class="MsoNormal"><span lang="EN-CA">Which method would you recommend in our case?<u></u><u></u></span></li><li class="MsoNormal"><span lang="EN-CA">Do you know of any way to automate the image placement and orientation based on our XML data?<u></u><u></u></span></li><li class="MsoNormal"><span lang="EN-CA">Would it be possible to handle this through the Python console or using PyQGIS?<u></u><u></u></span></li></ul>
<p class="MsoNormal"><span lang="EN-CA">Any guidance or suggestions would be greatly appreciated.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">Thanks in advance for your time and help!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-CA" style="font-size:10pt;font-family:"Gisha",sans-serif"><img width="576" height="6" style="width: 6in; height: 0.0625in;" id="m_-5264179854695846578Picture_x0020_1" src="cid:ii_198c84028974ce8e91"><span> </span></span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-CA" style="font-size:4pt;font-family:"Gisha",sans-serif"> </span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<table border="0" cellspacing="0" cellpadding="0" width="765" style="width:573.75pt;border-collapse:collapse">
<tbody>
<tr style="height:131.85pt">
<td width="191" valign="top" style="width:143.25pt;border-width:medium 1pt medium medium;border-style:none solid none none;border-color:currentcolor rgb(51,102,102) currentcolor currentcolor;padding:0cm 5.4pt;height:131.85pt">
<p class="MsoNormal"><span style="font-size:6pt;font-family:"Calibri",sans-serif"> </span><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><a href="https://www.cefrail.ca/" title="https://www.cefrail.ca/" target="_blank"><b><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif;color:blue;text-decoration:none"><img border="0" width="183" height="91" style="width: 1.9097in; height: 0.9513in;" id="m_-5264179854695846578Image_x0020_2" src="cid:ii_198c84028975b16b22"></span></b></a><a href="https://www.facebook.com/cefrail" title="https://www.facebook.com/cefrail" target="_blank"><b><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif;color:blue;text-decoration:none"><img border="0" width="27" height="27" style="width: 0.2777in; height: 0.2777in;" id="m_-5264179854695846578Image_x0020_3" src="cid:ii_198c8402897692e333"></span></b></a><b><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif"> </span></b><a href="https://www.linkedin.com/authwall?trk=bf&trkInfo=AQEjKKnHH0hB2QAAAYzqp8YogvhljVV4rfWfPZk4nt7Fxp7t-jgeC03T84SUqgFnFtN8YLHip3me96M7mf832Uiq6YnFyyw3y1AU8c10Tw4twclYPuLl6KexU9lj_p4Hp_UeifI=&original_referer=&sessionRedirect=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fcefrail" title="https://www.linkedin.com/authwall?trk=bf&trkInfo=AQEjKKnHH0hB2QAAAYzqp8YogvhljVV4rfWfPZk4nt7Fxp7t-jgeC03T84SUqgFnFtN8YLHip3me96M7mf832Uiq6YnFyyw3y1AU8c10Tw4twclYPuLl6KexU9lj_p4Hp_UeifI=&original_referer=&sessionRedirect=https%3A%2F%2Fwww.linkedin.com%2Fco" target="_blank"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:blue;text-decoration:none"><img border="0" width="26" height="26" style="width: 0.2708in; height: 0.2708in;" id="m_-5264179854695846578Image_x0020_4" src="cid:ii_198c84028987745b44"></span></a><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
</td>
<td width="334" valign="top" style="width:250.6pt;padding:0cm 5.4pt;height:131.85pt">
<p class="MsoNormal"><b><span style="font-family:"Segoe UI Light",sans-serif">Léopold Stoessel</span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif">Stagiaire - Génie ferroviaire</span><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif">1 866 544-RAIL</span><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><u><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:blue"><a href="mailto:leopold.stoessel@cegepsi.ca" target="_blank"><span style="color:rgb(70,120,134)">leopold.stoessel</span><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif;color:rgb(70,120,134)">@cegepsi.ca</span></a></span></u><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif;color:rgb(14,58,79)"> </span><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><u><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif;color:rgb(14,58,79)"><a href="http://www.cefrail.ca/" target="_blank"><span style="color:blue">www.cefrail.ca</span></a> </span></u><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif">RAIL est un centre intégré au Cégep de Sept-Îles</span></i><span style="font-size:10pt;font-family:"Segoe UI Light",sans-serif;color:rgb(14,58,79)"> </span><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
</td>
<td width="243" valign="top" style="width:182.6pt;padding:0cm 5.4pt;height:131.85pt">
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br>--<br>Andreas Neumann<br></div><a href="http://QGIS.ORG" target="_blank">QGIS.ORG</a> board member (treasurer)<br></div></div>