[Gdal-dev] JP2 geo info question

Frank Warmerdam fwarmerdam at gmail.com
Thu Dec 9 15:46:57 EST 2004


On Thu, 9 Dec 2004 11:28:38 -0600, Simpson <asimpson at i-55.com> wrote:
> 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?

Drew,

The GDAL JasPer driver should encode the georeferencing information
as a GeoTIFF embedded in the JP2 file.  I thought that the MrSID SDK
would support this,though I haven't tried it personally. 

It seems you don't have a coordinate system defined.  You might want
to try re-encoding the JP2 including a coordinate system.  It is possible
that the MrSID SDK ignores an embedded geotiff if there is no
coordinate system information. 

I'm not sure if the MrSID sdk will support world files for jp2 files.
I'm pretty sure it does support sdw world files for .sid files though. 
You might want to try .sdw, or .j2w world files and see. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list