Solved

Convert Packbits geotiff to lzw

  • 17 March 2017
  • 4 replies
  • 18 views

I'm new to FME, and I need to transform a Packbit compressed geotiff file to a LZW compressed geotiff file. I'm using a geotiff reader and a geotiff writer, the later configured to use LZW compression. The output file is still in packbits

icon

Best answer by takashi 18 March 2017, 08:58

View original

4 replies

Userlevel 3
Badge +17

Hi @juanpablomenich, I was able to reproduce the same situation: Read a raster feature from a geotiff file compressed by pack-bits method with GEOTIFF reader, write the raster with GEOTIFF writer having "lzw" set as the Compression Method parameter, but the resulting geotiff file is still compressed by pack-bits method.

I guess that a format attribute called "geotiff_compression_method" defined by the reader conflicts with the Compression Method parameter setting for the writer Try once exposing the "geotiff_compression_method" attribute and removing it before writing.

Hi @juanpablomenich, I was able to reproduce the same situation: Read a raster feature from a geotiff file compressed by pack-bits method with GEOTIFF reader, write the raster with GEOTIFF writer having "lzw" set as the Compression Method parameter, but the resulting geotiff file is still compressed by pack-bits method.

I guess that a format attribute called "geotiff_compression_method" defined by the reader conflicts with the Compression Method parameter setting for the writer Try once exposing the "geotiff_compression_method" attribute and removing it before writing.

Thanks! worked like a charm

 

 

Badge

Hi @juanpablomenich, I was able to reproduce the same situation: Read a raster feature from a geotiff file compressed by pack-bits method with GEOTIFF reader, write the raster with GEOTIFF writer having "lzw" set as the Compression Method parameter, but the resulting geotiff file is still compressed by pack-bits method.

I guess that a format attribute called "geotiff_compression_method" defined by the reader conflicts with the Compression Method parameter setting for the writer Try once exposing the "geotiff_compression_method" attribute and removing it before writing.

Thanks for this Takashi. I just ran into the same problem and this solved it. I would definitely call this a bug.

 

 

Userlevel 4
Badge +13

Hi @juanpablomenich, I was able to reproduce the same situation: Read a raster feature from a geotiff file compressed by pack-bits method with GEOTIFF reader, write the raster with GEOTIFF writer having "lzw" set as the Compression Method parameter, but the resulting geotiff file is still compressed by pack-bits method.

I guess that a format attribute called "geotiff_compression_method" defined by the reader conflicts with the Compression Method parameter setting for the writer Try once exposing the "geotiff_compression_method" attribute and removing it before writing.

Hi @juanpablomenich, @takashi and @mbu. Development is aware of this issue and has made some plans for improvement. Improvements are planned for raster and point cloud formats, as well as GEOTIFF specifically. We will update this question when Development has implemented these improvements.

 

Reply