Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for world (.wld) files for georeferencing with cloud projects #5451

Closed
cruelaid opened this issue Jul 18, 2024 · 7 comments · Fixed by #5453 or opengisch/libqfieldsync#90
Closed

Comments

@cruelaid
Copy link

cruelaid commented Jul 18, 2024

Describe the issue

QGIS can create and display linearly transformed georeferenced images in a world file. This small-file alternative to GeoTIFF seems like a no-brainer for integration in Qfield, yet it currently does not work.

Reproduction steps

Steps to reproduce the behavior:

  1. Georeference an image in QGIS using a linear or helmert transformation and select "Create world file only."
  2. Output the result to your project's synced directory. Make sure the source image is in the same folder.
  3. Sync the project and open in Qfield.

Expected behavior

The georeferenced image layer should appear in the correct size and position as specified by the .wld file.

Observed behavior

The georeferenced image appears in a completely incorrect location, indicating the transformation data in the world file was not used.

Desktop (please complete the following information)

  • OS: Windows
  • QGIS Version 3.38.0
  • QFieldSync Version 4.9.1

Mobile (please complete the following information)

  • Device: Samsung Galaxy A13
  • OS: Android 14
  • QField version: 3.3.6 (78a4fe)
@m-kuhn
Copy link
Member

m-kuhn commented Jul 18, 2024

Thank you for this suggestion.
Can you add a sample project (zipped) with files for reproduction?

@cruelaid
Copy link
Author

Sure thing!

world file demo.zip

@m-kuhn m-kuhn removed the feedback label Jul 19, 2024
@nirvn
Copy link
Member

nirvn commented Jul 20, 2024

@cruelaid , QField does support (.wld), but I think you're running into a different problem. Are you trying to open the project by opening the ZIP file via messenger / email app?

@nirvn
Copy link
Member

nirvn commented Jul 20, 2024

@cruelaid , can you try the APK in this pull request (#5453), I believe it will fix your issue.

Proof of life:
image

@cruelaid
Copy link
Author

Indeed, the problem had something to do with QFieldCloud as the project worked as intended in the release version when opened up from a zip. However, there was no change in behavior from the APK provided when syncing from QFieldCloud.

@nirvn
Copy link
Member

nirvn commented Jul 21, 2024

@cruelaid , ah I see, that'd be a different issue here then. I'll reopen and indicate it's a cloud - specific issue.

Nevertheless, glad this got us to fix the zipped project issue :)

@nirvn nirvn reopened this Jul 21, 2024
@nirvn nirvn changed the title Add support for world (.wld) files for georeferencing. Add support for world (.wld) files for georeferencing with cloud projects Jul 21, 2024
@nirvn
Copy link
Member

nirvn commented Jul 22, 2024

@cruelaid , a fix has been implemented and should make its way to app.qfield.cloud in the coming weeks. In the meantime, one work around for you would be to rename Morocco Geology.wld to Morocco Geology.pgw, that would lead to a valid layer in your cloud project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants