Global Mapper Pro

Would like to get palette value from GeoTiff

dcoggin
dcoggin Global Mapper UserTrusted User
edited September 2011 in SDK
Mike,

I'm working with 8-bit land cover GeoTiffs over large areas. I would like to get the stored 8-bit value or palette code rather than the RGB color. It would be nice to have a function like GetPixelData to get that value directly.

Thanks for your help.

David

Comments

  • global_mapper
    global_mapper Administrator
    edited September 2011
    David,

    If you call GM_GetLayerInfo you can get the layer information which includes the palette, then lookup the retrieved color from the palette to get the palette index.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
Sign In or Register to comment.