[FWTools] JPEG Worldfile options
Travis Kirstine
traviskirstine at gmail.com
Wed Jan 7 15:02:17 EST 2009
Hi All
I have create several thousand jpg files from tiff \ tfw using
gdal_translate (gdal_translate -of JPEG in.tif out.jpg). The problem
that I am now having is that the associated .aux.xml file with
<GeoTransform> information is not recognized by older versions of gdal
/ mapserver. Is there any utility to convert that xml info to a
worldfile without reprocessing the rasters?
# Old GDAL
[root at pc338 0837DURH_1km_jpg]# gdalinfo --version
GDAL 1.3.2.0, released 2006/05/02
[root at pc338 0837DURH_1km_jpg]# gdalinfo ORTH176600486502008FBS.jpg
Driver: JPEG/JPEG JFIF
Size is 5010, 5010
Coordinate System is `'
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 5010.0)
Upper Right ( 5010.0, 0.0)
Lower Right ( 5010.0, 5010.0)
Center ( 2505.0, 2505.0)
Band 1 Block=5010x1 Type=Byte, ColorInterp=Red
Overviews: 2505x2505, 1253x1253, 627x627
Band 2 Block=5010x1 Type=Byte, ColorInterp=Green
Overviews: 2505x2505, 1253x1253, 627x627
Band 3 Block=5010x1 Type=Byte, ColorInterp=Blue
Overviews: 2505x2505, 1253x1253, 627x627
# New GDAL
[support at server26 0837DURH_1km_jpg]$ gdalinfo --version
GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03
[support at server26 0837DURH_1km_jpg]$ gdalinfo ORTH176600486502008FBS.jpg
Driver: JPEG/JPEG JFIF
Files: ORTH176600486502008FBS.jpg
ORTH176600486502008FBS.jpg.ovr
ORTH176600486502008FBS.jpg.aux.xml
Size is 5010, 5010
Coordinate System is `'
Origin = (659999.000000000116415,4866001.000000000000000)
Pixel Size = (0.200000000000000,-0.200000000000000)
Image Structure Metadata:
INTERLEAVE=PIXEL
COMPRESSION=JPEG
Corner Coordinates:
Upper Left ( 659999.000, 4866001.000)
Lower Left ( 659999.000, 4864999.000)
Upper Right ( 661001.000, 4866001.000)
Lower Right ( 661001.000, 4864999.000)
Center ( 660500.000, 4865500.000)
Band 1 Block=5010x1 Type=Byte, ColorInterp=Red
Overviews: 2505x2505, 1253x1253, 627x627
Image Structure Metadata:
COMPRESSION=JPEG
Band 2 Block=5010x1 Type=Byte, ColorInterp=Green
Overviews: 2505x2505, 1253x1253, 627x627
Image Structure Metadata:
COMPRESSION=JPEG
Band 3 Block=5010x1 Type=Byte, ColorInterp=Blue
Overviews: 2505x2505, 1253x1253, 627x627
Image Structure Metadata:
COMPRESSION=JPEG
Thanks
--
Travis K.
Toronto, Canada
------------------------------------------------------------
"She knows there's no success like failure
And that failure's no success at all."
-Bob Dylan-
------------------------------------------------------------
More information about the FWTools
mailing list