I have found that the existing MrSID gdal driver will ignore j2w files for
geotransform information if present with JPEG2000 formatted files.

While symlinking the j2w files to sdw is an option, adding code to look for
and use a j2w files is simple and seemingly useful.

I added and tested such code to

trunk 
<http://trac.osgeo.org/gdal/browser/trunk>/gdal<http://trac.osgeo.org/gdal/browser/trunk/gdal>
/frmts 
<http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts>/mrsid<http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/mrsid>
/mrsiddataset.cpp<http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/mrsid/mrsiddataset.cpp>

at line 1311

|| GDALReadWorldFile( GetDescription(), ".j2w",
                      adfGeoTransform )


and this change appears to do the right thing with j2w files.  Please
consider integrating this change into the next gdal release.

Best,


-- 
John Novak





-- 
John Novak
Novacell Technologies and the Old Topo Depot
http://www.novacell.com
585-OLD-TOPOS (585-653-8676)
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to