It would seem that Tiles can be made of complete RGB-data (FMERGB24Tile for instance), but the getTile() method seems to be available from FMEBand only, which in turn will only contain a single color channel, as generated from FMERaster.getBand(). Is there some elegant way to generate an FMERGB24Tile from an input raster?
Can you generate an FMERGB24Tile from an FMERaster?
Best answer by stephenwu
Thank you all for the discussion. In speaking to the lead raster developer at Safe, he confirms that the FMERGB*Tile objects are used solely for the purpose of palettes.
The confusion here may stem from the doc string for FMEBandProperties.getInterpretation() and FMEBandProperties.setInterpretation(). Both methods state that a band interpretation can possibly be FME_INTERPRETATION_RGB*, where in actuality they can only be single component interpretations like FME_INTERPRETATION_RED (We will correct the doc string to remove them). This basically means bands are retrieved from a raster and each band represents a single component that is retrieved as tiles. We have plans to improve our Python FME Objects API doc and hope to roll that out for users.
For palette values, the possible interpretations are FME_INTERPRETATION_RGB24, FME_INTERPRETATION_RGBA32, FME_INTERPRETATION_RGB48, FME_INTERPRETATION_RGBA64, FME_INTERPRETATION_GRAY8, FME_INTERPRETATION_GRAY16, FME_INTERPRETATION_STRING, FME_INTERPRETATION_NULL. There isn't a direct method on the API to get a palette value's interpretation, so the way to do it is FMEPalette.getValueTile().getInterpretation().The raster API in its current state is up to date and closely matches the C++ raster API.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.