Skip to main content
Solved

Floating Point for Raster

  • February 5, 2014
  • 1 reply
  • 33 views

Is it not possible to have a floating point value for raster cells? I tried to put 4.2 in the RasterCellValueReplacer and all of the values came out as 4.

 

 

Thanks

Best answer by takashi

Hi,

 

 

I think it depends on "interpretation" type of the raster. If the interpretation was an Int type, cell values cannot contain decimal fraction. The RasterCellValueReplacer would round the specified value.

 

You can check interpretation type using the RasterPropertiesExtractor. And in some cases, the RasterInterpretationCoercer can be used to change the interpretation type.

 

 

Takashi
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

1 reply

takashi
Influencer
  • Best Answer
  • February 5, 2014
Hi,

 

 

I think it depends on "interpretation" type of the raster. If the interpretation was an Int type, cell values cannot contain decimal fraction. The RasterCellValueReplacer would round the specified value.

 

You can check interpretation type using the RasterPropertiesExtractor. And in some cases, the RasterInterpretationCoercer can be used to change the interpretation type.

 

 

Takashi

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