You can't mix "+a=6378137 +b=6378137" and "+datum=WGS84".<br>The control +datum implies an ellipsoid, which will conflict with the definition of the sphere. Presumably the behaviour of the program is to consider the last to be specified.<br>
<br>The conversion from WGS84 geographic coordinates to Google Mercator in the command line does not need CS2CS. It can be done with PROJ, since it doesn't involve a datum transformation:<br><br>echo -5.625 52.4827802220782 | proj +a=6378137 +b=6378137 +proj=merc<br>
-626172.14 6887893.49<br><br><br>Regards<br><br>Jose' <br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
</div>You have forgotten to specify the datum for the projected CRS :<br>
<br>
cs2cs +proj=latlong +datum=WGS84 +to +proj=merc +a=6378137 +b=6378137<br>
+lat_t1=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +datum=WGS84 +units=m<br>
+nadgrids=@null +no_defs<br>
-5.625 52.4827802220782<br>
-626172.14 6853979.30 0.00<br>
<font color="#888888"><br>
Jean-Claude</font><br></blockquote></div>