<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi </DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying to use gdal_translate to convert some image files (PNGs and JPEGs) into GeoTIFFs for using in Mapserver. I am using the gdal_translate utility. The problem I am having is getting the proper Projection information embedded. I want to assign EPSG:2193 (NZGD2000 / New Zealand Transverse Mercator 2000).</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have .jgw / .pgw worldfiles and ESRI .prj files for my input files.</DIV>
<DIV>&nbsp;</DIV>
<DIV>When I try:</DIV>
<DIV>&nbsp;</DIV>
<DIV>gdal_translate -of GTiff -co "TILED=YES" -a_srs "EPSG:2193" infile.jpg outfile.tif</DIV>
<DIV>&nbsp;</DIV>
<DIV>then examine outfile.tif with gdalinfo, it shows:</DIV>
<DIV>&nbsp;</DIV>
<DIV>PROJCS["unnamed",<BR>&nbsp;&nbsp;&nbsp; GEOGCS[,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATUM["unknown",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRIMEM["Greenwich",0],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNIT["degree",0.0174532925199433]],<BR>&nbsp;&nbsp;&nbsp; UNIT["metre",1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY["EPSG","9001"]],<BR>&nbsp;&nbsp;&nbsp; AUTHORITY["EPSG","2193"]]</DIV>
<DIV>&nbsp;</DIV>
<DIV>It doesn't seem to be finding the correct EPSG reference. I have GDAL_DATA environment variable specified, and have also included it in my path. I am using the gdal utilities that came with ms4w.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Many thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson</DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc.  </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>