Skip to content

Conversation

@JodokGBS
Copy link

@JodokGBS JodokGBS commented May 8, 2025

According to the specs (http://geotiff.maptools.org/spec/geotiff2.6.html) ModelPixelScale and ModelTiepoint should only be there when the ModelTransformationTag is not set, so we should not automatically add them when a ModelTransformationTag is provided.

@constantinius
Copy link
Member

@DanielJDufour does this look sound to you?

@DanielJDufour
Copy link
Contributor

Yes, looks great. Thank you @JodokGBS for catching this! Good to merge!

Copy link
Collaborator

@TheMrCam TheMrCam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you all! This looks good to me, although I would like to see an example test case which does set ModelTransformationTag so we can make sure not to regress. As it stands, I couldn't find ModelTransformationTag referenced anywhere in the tests (except an unused fetch), so that case would be valuable regardless of any issues here.

@TheMrCam TheMrCam linked an issue Nov 18, 2025 that may be closed by this pull request
@TheMrCam TheMrCam added bugfix Fixes a bug and removed enhancement labels Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

writeGeotiff always adds a ModelPixelScale

5 participants