Hi Chaitanya,
Thanks for looking.
I did look at the jp2 image in vi, but only saw ER Mapper & ECW in the gibberish, not MrSID.
Now that you hilited that, I have opened the JP2 in GeoViewer and successfully exported to TIFF.

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 :-)

Thanks for your efforts.

Kind regards,
Zoltan.
(home-time for me now :-) )
*******************************************************************************************
-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
-rwxr-xr-x 1 1001 geograph        126 2010-02-25 18:23 trvr.tfw
-rwxr-xr-x 1 1001 geograph   35837170 2010-02-25 18:23 trvr.tif

*******************************************************************************************
z...@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdalinfo trvr.jp2
Segmentation fault

*******************************************************************************************
z...@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdalinfo trvr.tif
Driver: GTiff/GeoTIFF
Files: trvr.tif
Size is 3243, 3682
Coordinate System is:
LOCAL_CS["unnamed",
    UNIT["unknown",1]]
Origin = (408298.409897524979897,6312778.815788120031357)
Pixel Size = (1.000000000000000,-1.000000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  408298.410, 6312778.816)
Lower Left  (  408298.410, 6309096.816)
Upper Right (  411541.410, 6312778.816)
Lower Right (  411541.410, 6309096.816)
Center      (  409919.910, 6310937.816)
Band 1 Block=3243x2 Type=Byte, ColorInterp=Red
Band 2 Block=3243x2 Type=Byte, ColorInterp=Green
Band 3 Block=3243x2 Type=Byte, ColorInterp=Blue
z...@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$
z...@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$
z...@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$
z...@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ cat trvr.tfw
1.000000000000000
0.000000000000000
0.000000000000000
-1.000000000000000
408298.909897524980000
6312778.315788120000000
z...@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$

*******************************************************************************************
z...@gl1:~$ gdalinfo --version
GDAL 1.5.4, released 2009/01/07
*******************************************************************************************
z...@gl1:~$ gdalinfo --formats
Supported Formats:
  VRT (rw+): Virtual Raster
  GTiff (rw+): GeoTIFF
  NITF (rw+): National Imagery Transmission Format
  RPFTOC (ro): Raster Product Format TOC format
  HFA (rw+): Erdas Imagine Images (.img)
  SAR_CEOS (ro): CEOS SAR Image
  CEOS (ro): CEOS Image
  JAXAPALSAR (ro): JAXA PALSAR Product Reader (Level 1.1/1.5)
  GFF (ro): Ground-based SAR Applications Testbed File Format (.gff)
  ELAS (rw+): ELAS
  AIG (ro): Arc/Info Binary Grid
  AAIGrid (rw): Arc/Info ASCII Grid
  SDTS (ro): SDTS Raster
  OGDI (ro): OGDI Bridge
  DTED (rw): DTED Elevation Raster
  PNG (rw): Portable Network Graphics
  JPEG (rw): JPEG JFIF
  MEM (rw+): In Memory Raster
  JDEM (ro): Japanese DEM (.mem)
  GIF (rw): Graphics Interchange Format (.gif)
  ESAT (ro): Envisat Image Format
  BSB (ro): Maptech BSB Nautical Charts
  XPM (rw): X11 PixMap Format
  BMP (rw+): MS Windows Device Independent Bitmap
  DIMAP (ro): SPOT DIMAP
  AirSAR (ro): AirSAR Polarimetric Image
  RS2 (ro): RadarSat 2 XML Product
  PCIDSK (rw+): PCIDSK Database File
  PCRaster (rw): PCRaster Raster File
  ILWIS (rw+): ILWIS Raster Map
  SGI (ro): SGI Image File Format 1.0
  SRTMHGT (rw): SRTMHGT File Format
  Leveller (rw+): Leveller heightfield
  Terragen (rw+): Terragen heightfield
  GMT (rw): GMT NetCDF Grid Format
  netCDF (rw): Network Common Data Format
  HDF4 (ro): Hierarchical Data Format Release 4
  HDF4Image (rw+): HDF4 Dataset
  PNM (rw+): Portable Pixmap Format (netpbm)
  DOQ1 (ro): USGS DOQ (Old Style)
  DOQ2 (ro): USGS DOQ (New Style)
  ENVI (rw+): ENVI .hdr Labelled
  EHdr (rw+): ESRI .hdr Labelled
  GenBin (ro): Generic Binary (.hdr Labelled)
  PAux (rw+): PCI .aux Labelled
  MFF (rw+): Vexcel MFF Raster
  MFF2 (rw+): Vexcel MFF2 (HKV) Raster
  FujiBAS (ro): Fuji BAS Scanner Image
  GSC (ro): GSC Geogrid
  FAST (ro): EOSAT FAST Format
  BT (rw+): VTP .bt (Binary Terrain) 1.3 Format
  LAN (ro): Erdas .LAN/.GIS
  CPG (ro): Convair PolGASP
  IDA (rw+): Image Data and Analysis
  NDF (ro): NLAPS Data Format
  DIPEx (ro): DIPEx
  ISIS3 (ro): USGS Astrogeology ISIS cube (Version 3)
  ISIS2 (ro): USGS Astrogeology ISIS cube (Version 2)
  PDS (ro): NASA Planetary Data System
  ERS (rw+): ERMapper .ers Labelled
  JPEG2000 (rw): JPEG-2000 part 1 (ISO/IEC 15444-1)
  L1B (ro): NOAA Polar Orbiter Level 1b Data Set
  FIT (rw): FIT Image
  RMF (rw+): Raster Matrix Format
  WCS (ro): OGC Web Coverage Service
  WMS (ro): OGC Web Map Service
  RST (rw+): Idrisi Raster A.1
  INGR (rw+): Intergraph Raster
  GSAG (rw): Golden Software ASCII Grid (.grd)
  GSBG (rw+): Golden Software Binary Grid (.grd)
  GS7BG (ro): Golden Software 7 Binary Grid (.grd)
  COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X)
  TSX (ro): TerraSAR-X Product
  COASP (ro): DRDC COASP SAR Processor Raster
  RIK (ro): Swedish Grid RIK (.rik)
  USGSDEM (rw): USGS Optional ASCII DEM (and CDED)
  GXF (ro): GeoSoft Grid Exchange Format
  HTTP (ro): HTTP Fetching Wrapper
  HDF5 (ro): Hierarchical Data Format Release 5
  HDF5Image (ro): HDF5 Dataset
  ADRG (rw+): ARC Digitized Raster Graphics
z...@gl1:~$





Chaitanya kumar CH wrote:
Zoltan,

I tested the data provided by you. I was able to open it with GDAL using the MrSID driver with no problem.
Can you give the details of GDAL version you are using and the output of the command "gdalinfo --formats"?

On Wed, Feb 24, 2010 at 8:19 PM, Zoltan Szecsei <[email protected]> wrote:
Herewith .....
Thank you,
Regards,
Zoltan


Chaitanya kumar CH wrote:
Zoltan,

Can you provide a sample dataset that raised this error?

On Wed, Feb 24, 2010 at 8:05 PM, Zoltan Szecsei <[email protected]> wrote:
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.

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

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

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

z...@gl1:/mnt/gm0_sdd1/gisortho/t4a/breederivier$ gdalinfo trvr.jp2
Segmentation fault

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

z...@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]]

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

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

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

z...@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
===========================================


No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2706 - Release Date: 02/23/10 21:34:00

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev



--
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9848167848
17.241582N 80.142635E


-- 

===========================================
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
===========================================

1.00000000000000000
0.00000000000000000
0.00000000000000000
-1.00000000000000000
408298.90989752498000000
6312778.31578812000000000

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]]


No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2706 - Release Date: 02/23/10 21:34:00




--
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9848167848
17.241582N 80.142635E


-- 

===========================================
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
===========================================
No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2709 - Release Date: 02/25/10 
09:34:00
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to