[gdal-dev] Converting JP2 to GeoTIFF

Zoltan Szecsei zoltans at geograph.co.za
Wed Feb 24 09:35:34 EST 2010


Hi,
I'm trying to convert a jpeg2000 image to a geotiff, but I keep getting 
a segmentation fault. Please can someone point me in the direction of a 
solution.

Thanks in advance,
Zoltan.

**************************************************************************************

zls at gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdal_translate trvr.jp2 
trvr.tif
Segmentation fault

**************************************************************************************

zls at gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdalinfo trvr.jp2
Segmentation fault

**************************************************************************************

zls at gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ ls -la trvr.*
-rwxr-xr-x 1 1001 geograph        151 2010-02-24 16:01 trvr.j2w
-rwxr-xr-x 1 1001 geograph    4031979 2010-02-24 16:01 trvr.jp2
-rwxr-xr-x 1 1001 geograph        417 2010-02-24 16:01 trvr.prj

**************************************************************************************

$ cat trvr.prj
PROJCS["UTM Zone 34, Southern Hemisphere",GEOGCS["Geographic Coordinate 
System",DATUM["WGS84",SPHEROID["WGS84",6378137,298.257223560493]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",21],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",10000000],UNIT["Meter",1]]

**************************************************************************************

zls at gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ cat trvr.j2w
1.00000000000000000
0.00000000000000000
0.00000000000000000
-1.00000000000000000
408298.90989752498000000
6312778.31578812000000000

**************************************************************************************

zls at gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdal_translate
Usage: gdal_translate [--help-general]
       [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
             CInt16/CInt32/CFloat32/CFloat64}] [-strict]
       [-of format] [-b band] [-outsize xsize[%] ysize[%]]
       [-scale [src_min src_max [dst_min dst_max]]]
       [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry]
       [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]
       [-gcp pixel line easting northing [elevation]]*
       [-mo "META-TAG=VALUE"]* [-quiet] [-sds]
       [-co "NAME=VALUE"]*
       src_dataset dst_dataset

GDAL 1.5.4, released 2009/01/07

The following format drivers are configured and support output:
  VRT: Virtual Raster
etc etc



-- 

===========================================
Zoltan Szecsei
Director

Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.

65 Main Road, Muizenberg 7945
Western Cape, South Africa.  

34° 6'16.35"S 18°28'5.62"E 

Tel: +27-21-7884897  Mobile: +27-83-6004028
Fax: +27-86-6115323    www.geograph.co.za
===========================================
-------------- next part --------------
Skipped content of type multipart/alternative


More information about the gdal-dev mailing list