Hi All:
I believe these will be oblique photo's and therefore not georeferenced
in the traditional sense. Therefor, world files would not work as they
are not designed to handle perspective geometry. I believe geotiffs
can handle perspective geometry.
Good Luck
Kirk Schmidt
On 8/20/2025 7:04 PM, Richard Duivenvoorde via QGIS-User wrote:
Hi,
Looks like a fun project.
Can you provide the accompanying xml file for 'Try.jpg'?
Because if you can create some script to convert that Try.xml to
Try.wld (or whatever extension gdal/QGIS wants for a jpeg world file),
you can maybe create a mosaic geotiff from it, though it will be
HUGE...).
Looking at: https://gdal.org/en/stable/drivers/raster/jpeg.html GDAL
(the lib that loads rasters for QGIS, expects .jgw, .jpgw/.jpegw or
.wld suffixes, not PGW ???)
There is also a 'vrt' (GDAL Virtual Format) for all your jpg+wld files
(https://gdal.org/en/latest/drivers/raster/vrt.html).
Normally you will create a 'shapefile' then with the extents of all
the images, which is then used as spatial index for gdal.
Not sure if that can take into account rotation though.
Hopefully somebody has some info about that.
Last option could be, depending on the names of the xml and jpg files
to do this loading 'on the fly' using some pyqgis... Like find all
files in current extent and (by reading/interpreting the xml files)
create the wld file on the fly and load every jpg+wld as layer...
Also you do want to view all the raster/photo's as rasters, yes? Not
as vector points with a popup showing the (rotated?) image?
See what others come up with?
It IS a lot of data to play with though :-)
Regards,
Richard Duivenvoorde
On 20-08-2025 16:20, Léopold Stoessel via QGIS-User wrote:
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!
**
**
** <https://www.cefrail.ca/>**
<https://www.facebook.com/cefrail>**<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.stoes...@cegepsi.ca <mailto:leopold.stoes...@cegepsi.ca>_
_www.cefrail.ca <http://www.cefrail.ca/> _
/RAIL est un centre intégré au Cégep de Sept-Îles/
_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
--
Kirk Schmidt, MScF, BScF, RPF
General Manager
Nortek Resource Solutions Inc.
26 Church Road
Sutherlands River, NS
B0K 1W0
Tel (902) 922.3607
Email: k...@nortekresources.com
Web: www.nortekresources.com
_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user