[Qgis-user] Placing group of image at once

Léopold Stoessel leopold.stoessel at cegepsi.ca
Wed Aug 20 07:20:18 PDT 2025


Hello,

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.

Our goal is to display all the images on a QGIS map at their correct geographic location and with the proper orientation. (Example image: Try.jpg)

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.
Here are the challenges we're facing:

  *   PGW method: 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.
  *   GeoTIFF method: With over 500,000 images, manually georeferencing each one is not feasible.

So I would like to ask for your advice:

  *   Are we on the right track with our approach?
  *   Which method would you recommend in our case?
  *   Do you know of any way to automate the image placement and orientation based on our XML data?
  *   Would it be possible to handle this through the Python console or using PyQGIS?
Any guidance or suggestions would be greatly appreciated.

Thanks in advance for your time and help!




[cid:image002.png at 01DC11B7.F332C3B0]<https://www.cefrail.ca/>[cid:image003.png at 01DC11B7.F332C3B0]<https://www.facebook.com/cefrail> [cid:image004.png at 01DC11B7.F332C3B0] <https://www.linkedin.com/authwall?trk=bf&trkInfo=AQEjKKnHH0hB2QAAAYzqp8YogvhljVV4rfWfPZk4nt7Fxp7t-jgeC03T84SUqgFnFtN8YLHip3me96M7mf832Uiq6YnFyyw3y1AU8c10Tw4twclYPuLl6KexU9lj_p4Hp_UeifI=&original_referer=&sessionRedirect=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fcefrail>
Léopold Stoessel
Stagiaire - Génie ferroviaire
1 866 544-RAIL
leopold.stoessel at cegepsi.ca<mailto:leopold.stoessel at cegepsi.ca>
www.cefrail.ca<http://www.cefrail.ca/>
RAIL est un centre intégré au Cégep de Sept-Îles


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250820/0527603b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 780 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250820/0527603b/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 12263 bytes
Desc: image002.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250820/0527603b/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 505 bytes
Desc: image003.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250820/0527603b/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 5823 bytes
Desc: image004.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250820/0527603b/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Try.jpg
Type: image/jpeg
Size: 538888 bytes
Desc: Try.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250820/0527603b/attachment-0003.jpg>


More information about the QGIS-User mailing list