<HTML>
<HEAD>
<TITLE>GDAL/OGR projection problem only with epsg:3785/900913</TITLE>
</HEAD>
<BODY>
<FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>All,<BR>
<BR>
I&#8217;m using GDAL (1.9dev r22508) and getting errors only when reprojecting (raster or vector) to any of the Google Mercator projections. &nbsp;On a number of linux boxes I have, this works fine, but, on a couple its a problem. The only difference on the problem boxes that I can see is that they have the configuration files for vertical datum reprojection and are using external libgeotiff (svn r2002) for use with libLAS and PDAL. Reprojection using either the epsg codes or the full proj string fails.<BR>
<BR>
A couple of example errors<BR>
<BR>
[u4rt9mds@lidarora1 /] ogr2ogr -f &quot;ESRI Shapefile&quot; -t_srs epsg:3785 test.shp cincinnati_forests.shp<BR>
ERROR 1: no system list, errno: 2<BR>
<BR>
Failed to reproject feature 0 (geometry probably out of source or destination SRS).<BR>
ERROR 1: Terminating translation prematurely after failed<BR>
translation of layer cincinnati_forests (use -skipfailures to skip errors)<BR>
<BR>
[u4rt9mds@lidarora1 /] gdalwarp -of vrt -t_srs epsg:900913 -r near cincinnati_bare_earth_01.img test2.vrt<BR>
ERROR 1: no system list, errno: 2<BR>
<BR>
ERROR 1: GDALSuggestedWarpOutput() failed because the passed<BR>
transformer failed.<BR>
<BR>
Reprojection to any other projection seems to work fine<BR>
<BR>
[u4rt9mds@lidarora1 /] gdalwarp -of vrt -t_srs epsg:26919 /u02/LASdata/Office_of_Americas/Cincinnati_OH/Delivery/rasters/cincinnati_bare_earth_01.img test.vrt<BR>
Creating output file that is 20023P x 24321L.<BR>
Processing input file /u02/LASdata/Office_of_Americas/Cincinnati_OH/Delivery/rasters/cincinnati_bare_earth_01.img.<BR>
Using internal nodata values (eg. -3.40282e+38) for image /u02/LASdata/Office_of_Americas/Cincinnati_OH/Delivery/rasters/cincinnati_bare_earth_01.img.<BR>
<BR>
<BR>
[u4rt9mds@lidarora1 /] ogr2ogr -progress -f &quot;ESRI Shapefile&quot; -t_srs epsg:26917 test.shp cincinnati_forests.shp<BR>
0...10...20...30...40...50...60...70...80...90...100 - done.<BR>
<BR>
Testepsg reports the correct output<BR>
<BR>
[u4rt9mds@lidarora1 shapes]$ testepsg epsg:3785<BR>
Validate Succeeds.<BR>
WKT[epsg:3785] =<BR>
PROJCS[&quot;Popular Visualisation CRS / Mercator (deprecated)&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;GEOGCS[&quot;Popular Visualisation CRS&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DATUM[&quot;Popular_Visualisation_Datum&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SPHEROID[&quot;Popular Visualisation Sphere&quot;,6378137,0,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;7059&quot;]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TOWGS84[0,0,0,0,0,0,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;6055&quot;]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PRIMEM[&quot;Greenwich&quot;,0,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UNIT[&quot;degree&quot;,0.0174532925199433,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;9122&quot;]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;4055&quot;]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;UNIT[&quot;metre&quot;,1,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;9001&quot;]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PROJECTION[&quot;Mercator_1SP&quot;],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;central_meridian&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;scale_factor&quot;,1],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;false_easting&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;false_northing&quot;,0],<BR>
&nbsp;&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;&nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;3785&quot;],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;AXIS[&quot;X&quot;,EAST],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;AXIS[&quot;Y&quot;,NORTH]]<BR>
<BR>
Simplified WKT[epsg:3785] =<BR>
PROJCS[&quot;Popular Visualisation CRS / Mercator (deprecated)&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;GEOGCS[&quot;Popular Visualisation CRS&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DATUM[&quot;Popular_Visualisation_Datum&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SPHEROID[&quot;Popular Visualisation Sphere&quot;,6378137,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TOWGS84[0,0,0,0,0,0,0]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PRIMEM[&quot;Greenwich&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UNIT[&quot;degree&quot;,0.0174532925199433]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;UNIT[&quot;metre&quot;,1],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PROJECTION[&quot;Mercator_1SP&quot;],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;central_meridian&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;scale_factor&quot;,1],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;false_easting&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;false_northing&quot;,0]]<BR>
<BR>
Old Style WKT[epsg:3785] = PROJCS[&quot;Popular Visualisation CRS / Mercator (deprecated)&quot;,GEOGCS[&quot;Popular Visualisation CRS&quot;,DATUM[&quot;Popular_Visualisation_Datum&quot;,SPHEROID[&quot;Popular Visualisation Sphere&quot;,6378137,0]],PRIMEM[&quot;Greenwich&quot;,0],UNIT[&quot;degree&quot;,0.0174532925199433]],UNIT[&quot;metre&quot;,1],PROJECTION[&quot;Mercator_1SP&quot;],PARAMETER[&quot;central_meridian&quot;,0],PARAMETER[&quot;scale_factor&quot;,1],PARAMETER[&quot;false_easting&quot;,0],PARAMETER[&quot;false_northing&quot;,0]]<BR>
ESRI'ified WKT[epsg:3785] = <BR>
PROJCS[&quot;Popular_Visualisation_CRS_Mercator_deprecated&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;GEOGCS[&quot;GCS_Popular Visualisation CRS&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DATUM[&quot;D_&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SPHEROID[&quot;Popular_Visualisation_Sphere&quot;,6378137,0]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PRIMEM[&quot;Greenwich&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UNIT[&quot;Degree&quot;,0.017453292519943295]],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PROJECTION[&quot;Mercator&quot;],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;central_meridian&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;false_easting&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;false_northing&quot;,0],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;UNIT[&quot;Meter&quot;,1],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PARAMETER[&quot;standard_parallel_1&quot;,0.0]]<BR>
PROJ.4 rendering of [epsg:3785] = +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<BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>