[Gdal-dev] RE: Kakadu georeferencing

Gerald Buckmaster gbuckmaster at cox.net
Wed Oct 15 19:58:45 EDT 2003


Frank,

This is a bit off-topic, development-wise, but the thread touched off a 
question.

I am using geotifcp, and gdal_translate.exe with Kakadu to georeference and 
compress BMP files, first converting the BMP to a regular TIF, then TIF to 
GeoTIFF, and finally GeoTIFF to JP2 format.  I use a VBScript to do the 
number crunching and passing of variables to the executables for processing.  
Is there a way I can go straight from BMP to JP2 using only a geotiff tag, 
like the one below, without the 2 intermediate conversion steps?  I'm looking 
to reduce the processing time per image (currently 60 seconds per 82mb BMP 
file)?

v/r

Buck

Geotiff_Information:
Version: 1
Key_Revision: 1.0
Tagged_Information:
ModelTransformationTag(4,4):
3.17756913644005E-07 1.56182512826881E-06 0 -147.895661114049
1.56182512826881E-06 -3.17756913644005E-07 0 33.2643388859509
0 0 0 0
0 0 0 1
End_Of_Tags.
Keyed_Information:
GTModelTypeGeoKey (Short,1): ModelTypeGeographic
GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
GeographicTypeGeoKey (Short,1): GCS_WGS_84
End_Of_Keys.
End_Of_Geotiff.



On Tuesday 14 October 2003 10:46 am, Frank Warmerdam wrote:
> Chris G. Nicholas wrote:
> > Just wondering if the Kakadu driver will properly pick up an external
> > ".wld" file in the context of Minn Map Server.  We have a bunch of shtuff
> > from before GeoJP2 was invented...
> >
> > pogo-> more S-18-00.wld
> > 28.500000000000000
> > 0.000000000000000
> > 0.000000000000000
> > 28.500000000000000
> > 116023.500000000000000
> > 997.500000000000000
> > pogo->
>
> Chris,
>
> GDAL doesn't currently look for .wld files for JP2 files, but UMN MapServer
> will always look for a .wld file for files read through GDAL if
> GDALGetGeoTransform() returns an error.  Looking at the code, it seems it
> would better to change this to look for the world file if the
> georeferencing is the null transform too.
>
> ...
>    else if( layer->transform )
>    {
>        if (GDALGetGeoTransform( hDS, adfGeoTransform ) != CE_None)
>            GDALReadWorldFile((char *)GDALGetDescription(hDS),
>                              "wld", adfGeoTransform);
>
> However, if you don't mind recompiling I have added .wld file support into
> the CVS version of the JP2KAK driver just now.
>
> Best regards,




More information about the Gdal-dev mailing list