Ticket #37 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Bad formatting of tag value in listgeo output is not detected by geotifcp

Reported by: rnicz Owned by: warmerdam
Priority: normal Component: libgeotiff
Version: Keywords:
Cc:

Description

Wrongly formatted tag values in metadata file (generated by listgeo), are not detected by geotifcp -g. Such metadata files are parsed without any error messages, and wrong values are copied to output tiffs.

Original file (expected output of listgeo):

ModelPixelScaleTag? (1,3):

0.500226363569095 0.500226363569095 0

Listgeo actual output:

ModelPixelScaleTag? (1,3):

0.5002263635690950.5002263635690950

geotifcp read from meta file and copy to tiff (listgeo output):

ModelPixelScaleTag? (1,3):

0.5002263635690950 0

It should be noticed, that again first and second field of tag value are not separated - it should be

ModelPixelScaleTag? (1,3):

0.500226363569095 0 0

Probably problem is in ReadTag?() procedure in geo_print.c file.

--

Best regards

RNicz

Change History

Changed 2 years ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed

I have modified geo_print.c to put a space between numbers to avoid this problem (r1987).

Essentially the same issue as #36.

Note: See TracTickets for help on using tickets.