[Gdal-dev] JP2 geo info question
Simpson
asimpson at i-55.com
Thu Dec 9 12:28:38 EST 2004
Greetings,
I am trying to re-encode a JP2 with gdal->jasper to see if encoding is
related to a MapServer problem I'm having.
I convert to GeoTiff first and gdalinfo shows all geo information still ok.
Then I convert the GeoTiff to a JP2.
gdalinfo->mrsid sdk on the JP2 reports no geo info.
mrsidinfo on the JP2 reports no geo info.
gdalinfo->jasper on the JP2 reports geo info.
Does Jasper encode the geo info differently in the JP2?
Will this cause issues when rendering maps from mapserver->gdal->mrsid sdk?
If so, can one use a world file for JP2s?
I found mapserver->gdal->jasper too slow for serving maps.
Thanks for any info,
Drew.
gdal 1.2.5
jasper 1.701.0
linux 2.4.20-28.8
========= GDALINFO OF GEOTIFF ====================
Driver: GTiff/GeoTIFF
Size is 6269, 7016
Coordinate System is `'
Origin = (512303.195000,3041873.243000)
Pixel Size = (1.00000000,-1.00000000)
Metadata:
...
IMAGE__XY_ORIGIN=512303.695000,3041872.743000
IMAGE__X_RESOLUTION=1.000000
IMAGE__Y_RESOLUTION=1.000000
IMAGE__INPUT_FILE_SIZE=6677134.000000
Corner Coordinates:
Upper Left ( 512303.195, 3041873.243)
Lower Left ( 512303.195, 3034857.243)
Upper Right ( 518572.195, 3041873.243)
Lower Right ( 518572.195, 3034857.243)
Center ( 515437.695, 3038365.243)
Band 1 Block=6269x1 Type=Byte, ColorInterp=Red
Band 2 Block=6269x1 Type=Byte, ColorInterp=Green
Band 3 Block=6269x1 Type=Byte, ColorInterp=Blue
============== GDALINFO->MRSID SDK OF RESULTING JP2 ======================
Driver: MrSID/Multi-resolution Seamless Image Database (MrSID)
Size is 6269, 7016
Coordinate System is `'
Metadata:
GEOTIFF_NUM__1025=1
IMAGE__WIDTH=6269
IMAGE__HEIGHT=7016
IMAGE__COLOR_SCHEME=0
IMAGE__DATA_TYPE=0
IMAGE__DYNAMIC_RANGE_WINDOW=256.000000
IMAGE__DYNAMIC_RANGE_LEVEL=127.500000
IMAGE__XY_ORIGIN=0.000000,7015.000000
IMAGE__X_RESOLUTION=1.000000
IMAGE__Y_RESOLUTION=1.000000
IMAGE__INPUT_FILE_SIZE=40376283.000000
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 7016.0)
Upper Right ( 6269.0, 0.0)
Lower Right ( 6269.0, 7016.0)
Center ( 3134.5, 3508.0)
Band 1 Block=6269x64 Type=Byte, ColorInterp=Red
Overviews: 3135x3508, 1567x1754, 784x877, 392x439
Band 2 Block=6269x64 Type=Byte, ColorInterp=Green
Overviews: 3135x3508, 1567x1754, 784x877, 392x439
Band 3 Block=6269x64 Type=Byte, ColorInterp=Blue
Overviews: 3135x3508, 1567x1754, 784x877, 392x439
============== GDALINFO->JASPER OF RESULTING JP2 ======================
Driver: JPEG2000/JPEG-2000 part 1 (ISO/IEC 15444-1)
Size is 6269, 7016
Coordinate System is `'
Origin = (512303.195000,3041873.243000)
Pixel Size = (1.00000000,-1.00000000)
Corner Coordinates:
Upper Left ( 512303.195, 3041873.243)
Lower Left ( 512303.195, 3034857.243)
Upper Right ( 518572.195, 3041873.243)
Lower Right ( 518572.195, 3034857.243)
Center ( 515437.695, 3038365.243)
Band 1 Block=6269x7016 Type=Byte, ColorInterp=Red
Band 2 Block=6269x7016 Type=Byte, ColorInterp=Green
Band 3 Block=6269x7016 Type=Byte, ColorInterp=Blue
More information about the Gdal-dev
mailing list