<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Chaitanya,<br>
Thanks for looking.<br>
I did look at the jp2 image in vi, but only saw ER Mapper &amp; ECW in
the gibberish, not MrSID.<br>
Now that you hilited that, I have opened the JP2 in GeoViewer and
successfully exported to TIFF.<br>
<br>
I have provided the  gdalinfo output for this resulting tiff image, for
your interest - I have also provided your requested info so that you
may use it to improve gdal, or tell me to upgrade :-)<br>
<br>
Thanks for your efforts.<br>
<br>
Kind regards,<br>
Zoltan.<br>
(home-time for me now :-) )<br>
*******************************************************************************************<br>
-rwxr-xr-x 1 1001 geograph        151 2010-02-24 16:01 trvr.j2w<br>
-rwxr-xr-x 1 1001 geograph    4031979 2010-02-24 16:01 trvr.jp2<br>
-rwxr-xr-x 1 1001 geograph        417 2010-02-24 16:01 trvr.prj<br>
-rwxr-xr-x 1 1001 geograph        126 2010-02-25 18:23 trvr.tfw<br>
-rwxr-xr-x 1 1001 geograph   35837170 2010-02-25 18:23 trvr.tif<br>
<br>
*******************************************************************************************<br>
<b>zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdalinfo trvr.jp2</b><br>
Segmentation fault<br>
<br>
*******************************************************************************************<br>
<b>zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdalinfo trvr.tif </b><br>
Driver: GTiff/GeoTIFF<br>
Files: trvr.tif<br>
Size is 3243, 3682<br>
Coordinate System is:<br>
LOCAL_CS["unnamed",<br>
    UNIT["unknown",1]]<br>
Origin = (408298.409897524979897,6312778.815788120031357)<br>
Pixel Size = (1.000000000000000,-1.000000000000000)<br>
Metadata:<br>
  AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
  INTERLEAVE=PIXEL<br>
Corner Coordinates:<br>
Upper Left  (  408298.410, 6312778.816) <br>
Lower Left  (  408298.410, 6309096.816) <br>
Upper Right (  411541.410, 6312778.816) <br>
Lower Right (  411541.410, 6309096.816) <br>
Center      (  409919.910, 6310937.816) <br>
Band 1 Block=3243x2 Type=Byte, ColorInterp=Red<br>
Band 2 Block=3243x2 Type=Byte, ColorInterp=Green<br>
Band 3 Block=3243x2 Type=Byte, ColorInterp=Blue<br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ <br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ <br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ <br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ cat trvr.tfw <br>
1.000000000000000<br>
0.000000000000000<br>
0.000000000000000<br>
-1.000000000000000<br>
408298.909897524980000<br>
6312778.315788120000000<br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ <br>
<br>
*******************************************************************************************<br>
<b>zls@gl1:~$ gdalinfo --version</b><br>
GDAL 1.5.4, released 2009/01/07<br>
*******************************************************************************************<br>
<b>zls@gl1:~$ gdalinfo --formats</b><br>
Supported Formats:<br>
  VRT (rw+): Virtual Raster<br>
  GTiff (rw+): GeoTIFF<br>
  NITF (rw+): National Imagery Transmission Format<br>
  RPFTOC (ro): Raster Product Format TOC format<br>
  HFA (rw+): Erdas Imagine Images (.img)<br>
  SAR_CEOS (ro): CEOS SAR Image<br>
  CEOS (ro): CEOS Image<br>
  JAXAPALSAR (ro): JAXA PALSAR Product Reader (Level 1.1/1.5)<br>
  GFF (ro): Ground-based SAR Applications Testbed File Format (.gff)<br>
  ELAS (rw+): ELAS<br>
  AIG (ro): Arc/Info Binary Grid<br>
  AAIGrid (rw): Arc/Info ASCII Grid<br>
  SDTS (ro): SDTS Raster<br>
  OGDI (ro): OGDI Bridge<br>
  DTED (rw): DTED Elevation Raster<br>
  PNG (rw): Portable Network Graphics<br>
  JPEG (rw): JPEG JFIF<br>
  MEM (rw+): In Memory Raster<br>
  JDEM (ro): Japanese DEM (.mem)<br>
  GIF (rw): Graphics Interchange Format (.gif)<br>
  ESAT (ro): Envisat Image Format<br>
  BSB (ro): Maptech BSB Nautical Charts<br>
  XPM (rw): X11 PixMap Format<br>
  BMP (rw+): MS Windows Device Independent Bitmap<br>
  DIMAP (ro): SPOT DIMAP<br>
  AirSAR (ro): AirSAR Polarimetric Image<br>
  RS2 (ro): RadarSat 2 XML Product<br>
  PCIDSK (rw+): PCIDSK Database File<br>
  PCRaster (rw): PCRaster Raster File<br>
  ILWIS (rw+): ILWIS Raster Map<br>
  SGI (ro): SGI Image File Format 1.0<br>
  SRTMHGT (rw): SRTMHGT File Format<br>
  Leveller (rw+): Leveller heightfield<br>
  Terragen (rw+): Terragen heightfield<br>
  GMT (rw): GMT NetCDF Grid Format<br>
  netCDF (rw): Network Common Data Format<br>
  HDF4 (ro): Hierarchical Data Format Release 4<br>
  HDF4Image (rw+): HDF4 Dataset<br>
  PNM (rw+): Portable Pixmap Format (netpbm)<br>
  DOQ1 (ro): USGS DOQ (Old Style)<br>
  DOQ2 (ro): USGS DOQ (New Style)<br>
  ENVI (rw+): ENVI .hdr Labelled<br>
  EHdr (rw+): ESRI .hdr Labelled<br>
  GenBin (ro): Generic Binary (.hdr Labelled)<br>
  PAux (rw+): PCI .aux Labelled<br>
  MFF (rw+): Vexcel MFF Raster<br>
  MFF2 (rw+): Vexcel MFF2 (HKV) Raster<br>
  FujiBAS (ro): Fuji BAS Scanner Image<br>
  GSC (ro): GSC Geogrid<br>
  FAST (ro): EOSAT FAST Format<br>
  BT (rw+): VTP .bt (Binary Terrain) 1.3 Format<br>
  LAN (ro): Erdas .LAN/.GIS<br>
  CPG (ro): Convair PolGASP<br>
  IDA (rw+): Image Data and Analysis<br>
  NDF (ro): NLAPS Data Format<br>
  DIPEx (ro): DIPEx<br>
  ISIS3 (ro): USGS Astrogeology ISIS cube (Version 3)<br>
  ISIS2 (ro): USGS Astrogeology ISIS cube (Version 2)<br>
  PDS (ro): NASA Planetary Data System<br>
  ERS (rw+): ERMapper .ers Labelled<br>
  JPEG2000 (rw): JPEG-2000 part 1 (ISO/IEC 15444-1)<br>
  L1B (ro): NOAA Polar Orbiter Level 1b Data Set<br>
  FIT (rw): FIT Image<br>
  RMF (rw+): Raster Matrix Format<br>
  WCS (ro): OGC Web Coverage Service<br>
  WMS (ro): OGC Web Map Service<br>
  RST (rw+): Idrisi Raster A.1<br>
  INGR (rw+): Intergraph Raster<br>
  GSAG (rw): Golden Software ASCII Grid (.grd)<br>
  GSBG (rw+): Golden Software Binary Grid (.grd)<br>
  GS7BG (ro): Golden Software 7 Binary Grid (.grd)<br>
  COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X)<br>
  TSX (ro): TerraSAR-X Product<br>
  COASP (ro): DRDC COASP SAR Processor Raster<br>
  RIK (ro): Swedish Grid RIK (.rik)<br>
  USGSDEM (rw): USGS Optional ASCII DEM (and CDED)<br>
  GXF (ro): GeoSoft Grid Exchange Format<br>
  HTTP (ro): HTTP Fetching Wrapper<br>
  HDF5 (ro): Hierarchical Data Format Release 5<br>
  HDF5Image (ro): HDF5 Dataset<br>
  ADRG (rw+): ARC Digitized Raster Graphics<br>
zls@gl1:~$ <br>
<br>
<br>
<br>
<br>
<br>
Chaitanya kumar CH wrote:
<blockquote
 cite="mid:eb502d881002250814s431e231cm53b79413e0d9fdb2@mail.gmail.com"
 type="cite">Zoltan,<br>
  <br>
I tested the data provided by you. I was able to open it with GDAL
using the MrSID driver with no problem.<br>
Can you give the details of GDAL version you are using and the output
of the command "gdalinfo --formats"?<br>
  <br>
  <div class="gmail_quote">On Wed, Feb 24, 2010 at 8:19 PM, Zoltan
Szecsei <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:zoltans@geograph.co.za">zoltans@geograph.co.za</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">Herewith .....<br>
Thank you,<br>
Regards,<br>
    <font color="#888888">Zoltan</font>
    <div>
    <div class="h5"><br>
    <br>
Chaitanya kumar CH wrote:
    <blockquote type="cite">Zoltan,<br>
      <br>
Can you provide a sample dataset that raised this error?<br>
      <br>
      <div class="gmail_quote">On Wed, Feb 24, 2010 at 8:05 PM, Zoltan
Szecsei <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:zoltans@geograph.co.za" target="_blank">zoltans@geograph.co.za</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
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.<br>
        <br>
Thanks in advance,<br>
Zoltan.<br>
        <br>
**************************************************************************************<br>
        <br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdal_translate
trvr.jp2 trvr.tif<br>
Segmentation fault<br>
        <br>
**************************************************************************************<br>
        <br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdalinfo trvr.jp2<br>
Segmentation fault<br>
        <br>
**************************************************************************************<br>
        <br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ ls -la trvr.*<br>
-rwxr-xr-x 1 1001 geograph        151 2010-02-24 16:01 trvr.j2w<br>
-rwxr-xr-x 1 1001 geograph    4031979 2010-02-24 16:01 trvr.jp2<br>
-rwxr-xr-x 1 1001 geograph        417 2010-02-24 16:01 trvr.prj<br>
        <br>
**************************************************************************************<br>
        <br>
$ cat trvr.prj<br>
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]]<br>
        <br>
**************************************************************************************<br>
        <br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ cat trvr.j2w<br>
1.00000000000000000<br>
0.00000000000000000<br>
0.00000000000000000<br>
-1.00000000000000000<br>
408298.90989752498000000<br>
6312778.31578812000000000<br>
        <br>
**************************************************************************************<br>
        <br>
zls@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdal_translate<br>
Usage: gdal_translate [--help-general]<br>
     [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/<br>
           CInt16/CInt32/CFloat32/CFloat64}] [-strict]<br>
     [-of format] [-b band] [-outsize xsize[%] ysize[%]]<br>
     [-scale [src_min src_max [dst_min dst_max]]]<br>
     [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry]<br>
     [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]<br>
     [-gcp pixel line easting northing [elevation]]*<br>
     [-mo "META-TAG=VALUE"]* [-quiet] [-sds]<br>
     [-co "NAME=VALUE"]*<br>
     src_dataset dst_dataset<br>
        <br>
GDAL 1.5.4, released 2009/01/07<br>
        <br>
The following format drivers are configured and support output:<br>
 VRT: Virtual Raster<br>
etc etc<br>
        <br>
        <br>
        <br>
-- <br>
        <br>
===========================================<br>
Zoltan Szecsei<br>
Director<br>
        <br>
Geograph (Pty) Ltd.<br>
P.O. Box 7, Muizenberg 7950, South Africa.<br>
        <br>
65 Main Road, Muizenberg 7945<br>
Western Cape, South Africa.  <br>
34° 6'16.35"S 18°28'5.62"E <br>
Tel: +27-21-7884897  Mobile: +27-83-6004028<br>
Fax: +27-86-6115323    <a moz-do-not-send="true"
 href="http://www.geograph.co.za" target="_blank">www.geograph.co.za</a><br>
===========================================<br>
        <br>
        <br>
No virus found in this outgoing message.<br>
Checked by AVG - <a moz-do-not-send="true" href="http://www.avg.com"
 target="_blank">www.avg.com</a><br>
Version: 9.0.733 / Virus Database: 271.1.1/2706 - Release Date:
02/23/10 21:34:00<br>
        <br>
_______________________________________________<br>
gdal-dev mailing list<br>
        <a moz-do-not-send="true" href="mailto:gdal-dev@lists.osgeo.org"
 target="_blank">gdal-dev@lists.osgeo.org</a><br>
        <a moz-do-not-send="true"
 href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
      </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
-- <br>
Best regards,<br>
Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>
+91-9848167848<br>
17.241582N 80.142635E<br>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 

===========================================
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    <a moz-do-not-send="true"
 href="http://www.geograph.co.za" target="_blank">www.geograph.co.za</a>
===========================================</pre>
    </div>
    </div>
    </div>
    <br>
1.00000000000000000<br>
0.00000000000000000<br>
0.00000000000000000<br>
-1.00000000000000000<br>
408298.90989752498000000<br>
6312778.31578812000000000<br>
    <br>
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]]<br>
    <br>
    <br>
No virus found in this outgoing message.<br>
Checked by AVG - <a moz-do-not-send="true" href="http://www.avg.com"
 target="_blank">www.avg.com</a><br>
Version: 9.0.733 / Virus Database: 271.1.1/2706 - Release Date:
02/23/10 21:34:00<br>
    <br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Best regards,<br>
Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>
+91-9848167848<br>
17.241582N 80.142635E<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 

===========================================
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    <a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a>
===========================================</pre>
</body>
</html>