Skip to main content
Question

Limits of PNGRASTER size ?


lifalin2016
Supporter
Forum|alt.badge.img+38

Hi.

I've just tried to create a large PNG raster mosaic. I get this error in the log file:

1PNGRASTER writer: libpng: Image width exceeds user limit in IHDR
2PNGRASTER writer: libpng: Image height exceeds user limit in IHDR
3PNGRASTER writer: libpng: Invalid IHDR data
4PNGRASTER writer: Failed to write dataset ....

The tile grid is 6 tiles wide and 12 tiles high, and each tile is 20000x20000 pixels.

But what is the effective limit of a PNGRASTER output ?

According to the libpng documentation, PNG allows 2^31-1 rows and columns, but libpng has "arbitrarily" set the maximum to 1 million. And that's well below my max 240K requirement.

Cheers

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.

2 replies

david_r
Celebrity
  • October 5, 2018

What do you mean by "max 240K requirement"? Your tile is 400 megapixels, which is fairly large.

My recommendation would be to try progressively smaller tile sizes until you get it working.

I was unable to find any hard limitations in the FME docs.


mark2atsafe
Safer
Forum|alt.badge.img+55
  • Safer
  • October 5, 2018

I too read the maximum width as 1 million. Given that you should have 120,000 x 240,000 then it is confusing. Can you log or inspect the data before it goes to the writer? Just to confirm what the exact characteristics of that raster are (num cols, num rows, cell size, etc).

With that info I can check with our developers to see if they know what the problem might be. In fact I can check anyway to see why 1,000,000 is the maximum.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings