<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>Hi</FONT></SPAN></DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>I ran into a problem
converting a GeoTiff to a Jpeg200 image, using gdal_translate and the JP2ECW
driver.</FONT></SPAN></DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>My geotiff has GCP's as the
georeference. Here is the output from gdalinfo:</FONT></SPAN></DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>Driver:
GTiff/GeoTIFF<BR>Files: 01122010-1509.tif<BR>Size is 1680, 916<BR>Coordinate
System is `'<BR>GCP Projection =<BR>GEOGCS["WGS 84",<BR>
DATUM["WGS_1984",<BR> SPHEROID["WGS
84",6378137,298.257223563,<BR>
AUTHORITY["EPSG","7030"]],<BR>
AUTHORITY["EPSG","6326"]],<BR>
PRIMEM["Greenwich",0],<BR>
UNIT["arc-second",4.848136811095361e-006],<BR>
AUTHORITY["EPSG","4326"]]<BR>GCP[ 0]: Id=1,
Info=<BR> (0,0) ->
(126151.273546348,115626.820459333,0)<BR>GCP[ 1]: Id=2,
Info=<BR> (0,916) ->
(126145.399132411,115623.500933949,0)<BR>GCP[ 2]: Id=3,
Info=<BR> (1680,916) ->
(126151.213029255,115615.934065356,0)<BR>GCP[ 3]: Id=4,
Info=<BR> (1680,0) ->
(126157.194618444,115619.120192017,0)<BR>Metadata:<BR>
TIFFTAG_XRESOLUTION=1<BR> TIFFTAG_YRESOLUTION=1<BR>
AREA_OR_POINT=Area<BR>Image Structure Metadata:<BR>
INTERLEAVE=PIXEL<BR>Corner Coordinates:<BR>Upper Left (
0.0, 0.0)<BR>Lower Left ( 0.0,
916.0)<BR>Upper Right ( 1680.0, 0.0)<BR>Lower Right (
1680.0, 916.0)<BR>Center (
840.0, 458.0)<BR>Band 1 Block=256x256 Type=Byte, ColorInterp=Red<BR>Band 2
Block=256x256 Type=Byte, ColorInterp=Green<BR>Band 3 Block=256x256 Type=Byte,
ColorInterp=Blue<BR></FONT></SPAN></DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>after converting to jp2
using the command:</FONT></SPAN></DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>gdal_translate -of jp2ecw
01122010-1509.tif 01122010-1509.jp2</FONT></SPAN></DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>I get this from
gdalinfo:</FONT></SPAN></DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>E:\Data\test>gdalinfo
01122010-1509.jp2<BR>Driver: JP2ECW/ERMapper JPEG2000<BR>Files:
01122010-1509.jp2<BR>
01122010-1509.jp2.aux.xml<BR>Size is 1680, 916<BR>Coordinate System
is:<BR>GEOGCS["WGS 84",<BR>
DATUM["WGS_1984",<BR> SPHEROID["WGS
84",6378137,298.257223563,<BR>
AUTHORITY["EPSG","7030"]],<BR>
AUTHORITY["EPSG","6326"]],<BR>
PRIMEM["Greenwich",0],<BR>
UNIT["degree",0.0174532925199433],<BR>
AUTHORITY["EPSG","4326"]]<BR>GCP Projection =<BR>GEOGCS["WGS
84",<BR>
DATUM["WGS_1984",<BR> SPHEROID["WGS
84",6378137,298.257223563,<BR>
AUTHORITY["EPSG","7030"]],<BR>
AUTHORITY["EPSG","6326"]],<BR>
PRIMEM["Greenwich",0],<BR>
UNIT["degree",0.0174532925199433],<BR>
AUTHORITY["EPSG","4326"]]<BR>GCP[ 0]: Id=1,
Info=<BR> (0,0) ->
(126151.273546348,115626.820459333,0)<BR>GCP[ 1]: Id=2,
Info=<BR> (0,916) ->
(126145.399132411,115623.500933949,0)<BR>GCP[ 2]: Id=3,
Info=<BR> (1680,916) ->
(126151.213029255,115615.934065356,0)<BR>GCP[ 3]: Id=4,
Info=<BR> (1680,0) ->
(126157.194618444,115619.120192017,0)<BR>Metadata:<BR>
TIFFTAG_XRESOLUTION=1<BR> TIFFTAG_YRESOLUTION=1<BR>
AREA_OR_POINT=Area<BR>Corner Coordinates:<BR>Upper Left
( 0.0, 0.0)<BR>Lower Left
( 0.0, 916.0)<BR>Upper Right ( 1680.0,
0.0)<BR>Lower Right ( 1680.0,
916.0)<BR>Center ( 840.0,
458.0)<BR>Band 1 Block=1680x1 Type=Byte, ColorInterp=Red<BR> Overviews:
arbitrary<BR>Band 2 Block=1680x1 Type=Byte, ColorInterp=Green<BR>
Overviews: arbitrary<BR>Band 3 Block=1680x1 Type=Byte,
ColorInterp=Blue<BR> Overviews: arbitrary</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial>I think the problem is that
both projectionRef, and GCPProjection are defined. This causes Global Mapper to
fail reading the geo-reference data.</FONT></SPAN></DIV>
<DIV><SPAN class=332444315-30112010><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><FONT face=Arial><SPAN class=332444315-30112010>Is it a known problem, or
am I doing something wrong?</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=332444315-30112010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=332444315-30112010>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=332444315-30112010>Yehiyam Livneh</SPAN><SPAN
class=332444315-30112010></DIV></SPAN></FONT>
<HR><Font face=arial size=2 color=black><I>
This message (including any attachments) issued by RAFAEL- ADVANCED DEFENSE SYSTEMS LTD.
(hereinafter "RAFAEL") contains confidential information intended for a specific individual and purpose, may
constitute information that is privileged or confidential or otherwise protected from disclosure. If you are not
the intended recipient, you should contact us immediately and thereafter delete this message from your
system. You are hereby notified that any disclosure, copying, dissemination, distribution or forwarding of this
message, or the taking of any action based on it, is strictly prohibited. If you have received this e-mail in error,
please notify us immediately by e-mail mailto:lawraf@rafael.co.il and completely delete or destroy any and all
electronic or other copies of the original message and any attachments thereof.
</font><HR>
</BODY></HTML>