Opened 13 years ago

Closed 13 years ago

#37 closed defect (fixed)

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

Reported by: rnicz Owned by: warmerdam
Priority: normal Milestone:
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 (1)

comment:1 by warmerdam, 13 years ago

Resolution: fixed
Status: newclosed

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.