Opened 14 years ago

Closed 8 years ago

#931 closed defect (wontfix)

gdal_merge and jp2 files

Reported by: cschong@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by Even Rouault)

I am trying to mosaic jp2 files. Below is the error message that I got.

>C:\temp>gdal_merge -of JP2KAK -o mosaic.jp2 flornsw.jp2 clintse.jp2
>ERROR 6: GDALDriver::Create() ... no create method implemented for this format.
>
>Traceback (most recent call last):
>  File "C:\PROGRA~1\FWTOOL~1.9\pymod\gdal_merge.py", line 412, in ?
>    t_fh.SetGeoTransform( geotransform )
>AttributeError: 'NoneType' object has no attribute 'SetGeoTransform'

Change History (2)

comment:1 Changed 14 years ago by cschong@…

Sorry for too brief. 
My goal is to convert MrSid file to JP2 and reproject JP2 into different
projection. Then mosaic all jp2 files. (Gdalwarp doesn't work if I convert MrSid
to JP2 directly)

Steps that I already did: 
1. (FWTools0.9.9 with MrSid plugin) I converted MrSid file to Gtiff.
- gdalwarp -s_srs "+proj=utm +zone=15 +datum=NAD83" -t_srs "+proj=tmerc
+lat_0=32.5 +lon_0=-89.75 +k=0.999834 +x_0=500000 +y_0=1300000 +no_defs
+a=6378137 +rf=298.257222101 +towgs84=0.000,0.000,0.000" clintnw.sid clintnw.tif

2. (FWTools0.9.9 without MrSid plugin) I converted Gtiff to JP2
- gdal_translate -ot byte -of jp2kak -a_srs "+proj=tmerc +lat_0=32.5
+lon_0=-89.75 +k=0.999834 +x_0=500000 +y_0=1300000 +no_defs +a=6378137
+rf=298.257222101 +towgs84=0.000,0.000,0.000" -co "quality=10" clintnw.tif
clintnw.jp2

3. (FWTools0.9.9 without MrSid plugin) I tried to mosaic all jp2 files
- >C:\temp>gdal_merge -of JP2KAK -o mosaic.jp2 flornsw.jp2 clintse.jp2
>ERROR 6: GDALDriver::Create() ... no create method implemented for this format.
>
>Traceback (most recent call last):
>  File "C:\PROGRA~1\FWTOOL~1.9\pymod\gdal_merge.py", line 412, in ?
>    t_fh.SetGeoTransform( geotransform )
>AttributeError: 'NoneType' object has no attribute 'SetGeoTransform'

I got errors at step 3.

comment:2 Changed 8 years ago by Even Rouault

Description: modified (diff)
Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.