Skip to main content
Solved

Conflict between Format Attribute and Writer Parameter

  • March 18, 2017
  • 4 replies
  • 34 views

takashi
Celebrity

We sometimes encounter a conflict between a format attribute held by the feature and writer parameter setting, especially in a case where the writer format is the same as the reader format.

It may be difficult to define generic rules regarding which one should take priority, but in this case, I think the Compression Method parameter setting for the writer should be respected regardless of the value of "geotiff_compression_method".

Convert Packbits geotiff to lzw

How do you think about this?

Best answer by fmelizard

Hi @takashi. I added a comment to the question after discussion with development. Improvements are planned for raster and point cloud formats (Known Issue 31125), as well as GEOTIFF specifically (Known Issue 31121).

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.

4 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • March 20, 2017

Hi @takashi. I believe that if a feature type parameter conflicts with a writer-level parameter, then the writer parameter will be ignored and the feature type parameter will be used.

 

Is this what you are asking about?

takashi
Celebrity
  • Author
  • March 20, 2017

Hi @takashi. I believe that if a feature type parameter conflicts with a writer-level parameter, then the writer parameter will be ignored and the feature type parameter will be used.

 

Is this what you are asking about?
Hi @NatalieAtSafe, no, I mean that there is a case where a writer (feature type) parameter will be ignored if it conflicts with a format attribute held by the feature.

 

In the question I have linked, the GeoTIFF writer works with the pack-bits compression method when the GeoTIFF reader implicitly set "pack-bits" to a format attribute called "geotiff_compression_mode", even though the user explicitly set "lzw" to the "Compression Method" parameter in the writer feature type. This happens when the source GeoTIFF raster is compressed with the pack-bits method.

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • Best Answer
  • March 21, 2017

Hi @takashi. I added a comment to the question after discussion with development. Improvements are planned for raster and point cloud formats (Known Issue 31125), as well as GEOTIFF specifically (Known Issue 31121).


takashi
Celebrity
  • Author
  • March 22, 2017

Hi @takashi. I added a comment to the question after discussion with development. Improvements are planned for raster and point cloud formats (Known Issue 31125), as well as GEOTIFF specifically (Known Issue 31121).

Thanks for your response. Hope the issue will be resolved in the near future.