Hi 
 
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).
 
I have .jgw / .pgw worldfiles and ESRI .prj files for my input files.
 
When I try:
 
gdal_translate -of GTiff -co "TILED=YES" -a_srs "EPSG:2193" infile.jpg 
outfile.tif
 
then examine outfile.tif with gdalinfo, it shows:
 
PROJCS["unnamed",
    GEOGCS[,
        DATUM["unknown",
            SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","2193"]]
 
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.
 
Many thanks,
 
Robert Sanson
------------------------------------------------------------------
The contents of this email are confidential to AsureQuality. If you have 
received this communication in error please notify the sender immediately and 
delete the message and any attachments. The opinions expressed in this email 
are not necessarily those of AsureQuality. This message has been scanned for 
known viruses before delivery. AsureQuality supports the Unsolicited Electronic 
Messages Act 2007. If you do not wish to receive similar communications in 
future, please notify the sender of this message.
------------------------------------------------------------------


This message has been scanned for malware by SurfControl plc. 
www.surfcontrol.com
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to