Opened 17 years ago

Last modified 17 years ago

#1509 closed defect (invalid)

GetPaletteInterpretation returning invalid data

Reported by: richard.matsunaga@… Owned by: szekerest
Priority: high Milestone:
Component: CSharpBindings Version: 1.4.0
Severity: normal Keywords:
Cc: richard.matsunaga@…

Description

ColorTable.GetPaletteInterpretation() is returning garbage data.

GDALINFO.EXE returns a value of ColorInterp=Gray, while calling the above method from the C# bindings returns a value of 95146480.

Change History (2)

comment:1 by richard.matsunaga@…, 17 years ago

Sorry, this was a problem with going out of scope and the unmanaged handle no longer being valid.

comment:2 by szekerest, 17 years ago

My upcoming addition will provide the results as the following enum type:

public enum PaletteInterp {
  GPI_Gray = 0,
  GPI_RGB = 1,
  GPI_CMYK = 2,
  GPI_HLS = 3
}

BTW I wonder how this problem have arised?
Note: See TracTickets for help on using tickets.