<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
<BR>
<BR>
On Tue, 2011-01-18 at 10:06 -0700, Kyle Shannon wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    Gavin,<BR>
    Is GDAL_DATA environment variable set on the Fedora system?<BR>
</BLOCKQUOTE>
<BR>
yip: GDAL_DATA=/opt/gdal_data<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    On Tue, Jan 18, 2011 at 04:15, Gavin &lt;<A HREF="mailto:gavin@afrispatial.co.za">gavin@afrispatial.co.za</A>&gt; wrote:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        gdalwarp with -t_srs 'EPSG:3857' produces expected output on one system but not on another. It seems gdal can't find the projection definition on System 2 (below). System 2 is the one where I need it to work and where I ultimately need to publish as 900913 through geoserver.&nbsp; <BR>
        <BR>
        What am I missing?<BR>
        <BR>
        This command was run on both systems (both have gdal 1.7 and proj 4.9.1):<BR>
        <BR>
        gdalwarp -s_srs &quot;+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs&quot; -t_srs 'EPSG:3857' -r near -multi -dstnodata &quot;0 0 0&quot; -dstnodata &quot;0 0 0&quot; -dstalpha -co COMPRESS=&quot;DEFLATE&quot; -co &quot;TILED=YES&quot; -of GTiff 2627BB_05_1117_RGB_RECT.TIF /tmp/test900913.tif<BR>
        <BR>
        Geotiff header output:<BR>
        <BR>
        System1 (Ubuntu 10.10):<BR>
        <BR>
        <BLOCKQUOTE>
            Driver: GTiff/GeoTIFF<BR>
            Files: /tmp/test.tif<BR>
            Size is 10749, 11713<BR>
            Coordinate System is:<BR>
            PROJCS[&quot;WGS 84 / Pseudo-Mercator&quot;,<BR>
            &nbsp;&nbsp;&nbsp; GEOGCS[&quot;WGS 84&quot;,<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATUM[&quot;WGS_1984&quot;,<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRIMEM[&quot;Greenwich&quot;,0],<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.0174532925199433],<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]],<BR>
            &nbsp;&nbsp;&nbsp; PROJECTION[&quot;Mercator_1SP&quot;],<BR>
            &nbsp;&nbsp;&nbsp; PARAMETER[&quot;central_meridian&quot;,0],<BR>
            &nbsp;&nbsp;&nbsp; PARAMETER[&quot;scale_factor&quot;,1],<BR>
            &nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_easting&quot;,0],<BR>
            &nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_northing&quot;,0],<BR>
            &nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;3857&quot;],<BR>
            &nbsp;&nbsp;&nbsp; EXTENSION[&quot;PROJ4&quot;,&quot;+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext&nbsp; +no_defs&quot;],<BR>
            &nbsp;&nbsp;&nbsp; UNIT[&quot;metre&quot;,1,<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;9001&quot;]]]<BR>
            Origin = (3111167.042467535007745,-2998912.428198689594865)<BR>
            Pixel Size = (0.557611099232479,-0.557611099232479)<BR>
            Metadata:<BR>
            &nbsp; AREA_OR_POINT=Area<BR>
            Image Structure Metadata:<BR>
            &nbsp; COMPRESSION=DEFLATE<BR>
            &nbsp; INTERLEAVE=PIXEL<BR>
            Corner Coordinates:<BR>
            Upper Left&nbsp; ( 3111167.042,-2998912.428) ( 27d56'53.12&quot;E, 25d59'55.10&quot;S)<BR>
            Lower Left&nbsp; ( 3111167.042,-3005443.727) ( 27d56'53.12&quot;E, 26d 3'4.90&quot;S)<BR>
            Upper Right ( 3117160.804,-2998912.428) ( 28d 0'6.95&quot;E, 25d59'55.10&quot;S)<BR>
            Lower Right ( 3117160.804,-3005443.727) ( 28d 0'6.95&quot;E, 26d 3'4.90&quot;S)<BR>
            Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( 3114163.923,-3002178.078) ( 27d58'30.04&quot;E, 26d 1'30.01&quot;S)<BR>
        </BLOCKQUOTE>
        <BR>
        System 2 (Fedora 10):<BR>
        <BR>
        <BLOCKQUOTE>
            Driver: GTiff/GeoTIFF<BR>
            Files: test3857.tif<BR>
            Size is 10749, 11713<BR>
            Coordinate System is:<BR>
            PROJCS[&quot;unnamed&quot;,<BR>
            &nbsp;&nbsp;&nbsp; GEOGCS[,<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATUM[&quot;unknown&quot;,<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID[&quot;unretrievable - using WGS84&quot;,6378137,298.257223563]],<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRIMEM[&quot;Greenwich&quot;,0],<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.0174532925199433]],<BR>
            &nbsp;&nbsp;&nbsp; UNIT[&quot;metre&quot;,1,<BR>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;9001&quot;]],<BR>
            &nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;3857&quot;]]<BR>
            Origin = (3111167.042467534542084,-2998912.428198689594865)<BR>
            Pixel Size = (0.557611099232459,-0.557611099232459)<BR>
            Metadata:<BR>
            &nbsp; AREA_OR_POINT=Area<BR>
            Image Structure Metadata:<BR>
            &nbsp; COMPRESSION=DEFLATE<BR>
            &nbsp; INTERLEAVE=PIXEL<BR>
            Corner Coordinates:<BR>
            Upper Left&nbsp; ( 3111167.042,-2998912.428) <BR>
            Lower Left&nbsp; ( 3111167.042,-3005443.727) <BR>
            Upper Right ( 3117160.804,-2998912.428) <BR>
            Lower Right ( 3117160.804,-3005443.727) <BR>
            Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( 3114163.923,-3002178.078)<BR>
        </BLOCKQUOTE>
        <BR>
        <BR>
        thanks<BR>
        <BR>
        <FONT COLOR="#888888">Gavin</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
        _______________________________________________<BR>
        gdal-dev mailing list<BR>
        <A HREF="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</A><BR>
        <A HREF="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</A>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
</BODY>
</HTML>