Skip to main content
Solved

Increase significant digits of world file (tfw)

  • July 3, 2019
  • 5 replies
  • 19 views

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies

Is there a way to increase the number of significant digits in the world file on the tif writer?

 

 

I have a large imagery dataset with a native resolution of 2.9456395e-6.

When tiling them as set of tif+tfw (required for 3rd party software) the tfw is written as 0.0000029456.

This truncation leads to minor offsets in the tiled images and every 340000 pixels or so, the cumulative offset is a full pixel, leading to black lines when the adjoining tiles are mosaiked.

 

 

Best answer by mark2atsafe

I suspect that's a limitation of the writer and I'll pass it on to the developers to see what they can do. I don't think it's a limitation of the world file format (since an example on the Esri web site shows more digits than that).

What to do... I can only think to use a FeatureWriter to write the tif data, then follow that up by updating/overwriting the tfw file with the correct info.

But I'll put it to the developers and see what they can do.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • July 3, 2019

tif reader? Or writer?


jdh
Contributor
Forum|alt.badge.img+37
  • Author
  • Contributor
  • 2002 replies
  • July 3, 2019

tif reader? Or writer?

Writer. I plead no caffeine today.


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • Best Answer
  • July 3, 2019

I suspect that's a limitation of the writer and I'll pass it on to the developers to see what they can do. I don't think it's a limitation of the world file format (since an example on the Esri web site shows more digits than that).

What to do... I can only think to use a FeatureWriter to write the tif data, then follow that up by updating/overwriting the tfw file with the correct info.

But I'll put it to the developers and see what they can do.


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • July 3, 2019

Writer. I plead no caffeine today.

No worries. I know the feeling when I don't get my morning cup of tea. Filed with the developers as FMEENGINE-60590 and I'll let you know the response.


jdh
Contributor
Forum|alt.badge.img+37
  • Author
  • Contributor
  • 2002 replies
  • July 3, 2019

I suspect that's a limitation of the writer and I'll pass it on to the developers to see what they can do. I don't think it's a limitation of the world file format (since an example on the Esri web site shows more digits than that).

What to do... I can only think to use a FeatureWriter to write the tif data, then follow that up by updating/overwriting the tfw file with the correct info.

But I'll put it to the developers and see what they can do.

It's not a limitation on the world file format.

I am currently post processing the tfws to restore the resolution, but it's not the ideal scenario.

 

 

I'm okay with rounding/truncating the resolution in general, because I wouldn't want a resolution of 1.00000000000001 for instance, but it should be based on significant digits, not string length.