<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"><head><META content="text/html; charset=us-ascii" http-equiv="Content-Type">
<!-- Template generated by Exclaimer Mail Disclaimers on {Current Date} -->
<STYLE TYPE="text/css">P.16db9b72-c6ca-48b7-8376-75f565cbbc0c {        MARGIN: 0cm 0cm 0pt}LI.16db9b72-c6ca-48b7-8376-75f565cbbc0c {        MARGIN: 0cm 0cm 0pt}DIV.16db9b72-c6ca-48b7-8376-75f565cbbc0c {        MARGIN: 0cm 0cm 0pt}TABLE.16db9b72-c6ca-48b7-8376-75f565cbbc0cTable {        MARGIN: 0cm 0cm 0pt}DIV.Section1 {        page: Section1}</STYLE>

<meta content="text/html; charset=us-ascii" http-equiv=Content-Type>
<meta content="Microsoft Word 12 (filtered medium)" name=Generator>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head><BODY>

<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hello
All,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
have written a python module (using Python26) to perform some operations on
rasters and use r.out.gdal at the end to export the resulting raster grid to a
geoTiff.&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>grass.read_command(&quot;r.out.gdal&quot;,
input=inGrid, output=outTif, flags=&quot;c&quot;, nodata=nv, type='Float32')<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The
problem is that the DATUM and SPHEROID information are not being properly
exported from the LOCATION.&nbsp; If I run the exact same r.out.gdal command
from the GRASS GUI on the same raster, the DATUM and SPHEROID are fine.&nbsp;
The EPSG code for the projection that I am using is 27700 (OSGB National Grid).&nbsp;
(The same happens when using another set of data with projection code
EPSG:3035)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>My
question is:&nbsp; are GRASS and python using different projection libraries
and, if so, what do I need to do to make the python version of r.out.gdal pick
up the correct projection??<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>gdalinfo
output&nbsp;on the python-run command gives:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>...<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Coordinate
System is:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>PROJCS[&quot;Transverse
Mercator&quot;,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;
GEOGCS[&quot;airy&quot;,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DATUM[&quot;unknown&quot;,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SPHEROID[&quot;unnamed&quot;,6377563.396,299.3249646000044]],<o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>PRIMEM[&quot;Greenwich&quot;,0]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>.....<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>but
the gdalinfo output from the GRASS-run r.out.gdal command gives:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>...<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Coordinate
System is:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>PROJCS[&quot;Transverse
Mercator&quot;,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;
GEOGCS[&quot;airy&quot;,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DATUM[&quot;OSGB-1936&quot;,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SPHEROID[&quot;Airy 1830&quot;,6377563.396,299.3249646000044,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;7001&quot;]],<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AUTHORITY[&quot;EPSG&quot;,&quot;6277&quot;]],<o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>PRIMEM[&quot;Greenwich&quot;,0]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>.....<o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks
for your help.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Anne<o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Anne
Brookes<o:p></o:p></span></b></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Senior
Analyst<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

 
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="700">
<TBODY></TBODY></TABLE>
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c">&nbsp;</P>
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0cTable" COLS="3" WIDTH="700">
<TBODY>
<TR>
<TD>
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c">&nbsp;</P></TD>
<TD HEIGHT="100" WIDTH="106">
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c"><A HREF="http://www.jbaconsulting.com/"><IMG BORDER="0" HEIGHT="90" ID="IMG1" SRC="cid:imageb99cff.png@37061e49.dce74f99" WIDTH="100"></A></P></TD>
<TD HEIGHT="100" VALIGN="center" WIDTH="364">
<P><FONT FACE="Arial" SIZE="1">South Barn<br>Broughton Hall<BR>Skipton<BR>North Yorkshire<BR>BD23 3AE<BR>T: +44 (0)1756 799919 F: 0845 8627772&nbsp;</FONT></P></TD>
<TD COLSPAN="2" VALIGN="center">
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c"><FONT COLOR="#27829e" FACE="Arial" SIZE="2"><STRONG>The JBA Family</STRONG></FONT></P>
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c"><A HREF="http://www.jbagroup.co.uk/"><IMG BORDER="0" HEIGHT="49" ID="IMG1" SRC="cid:image85729d.png@d9271108.e72a4f69" WIDTH="49"></A>&nbsp; <A HREF="http://www.jbarisk.com/"><IMG BORDER="0" HEIGHT="49" ID="IMG1" SRC="cid:image9af215.png@4c725787.8599430d" WIDTH="49"></A>&nbsp; <A HREF="http://www.jbaenergy.com/"><IMG BORDER="0" HEIGHT="49" ID="IMG1" SRC="cid:imagebe19bb.png@e8e902a7.50154621" WIDTH="49"></A>&nbsp; <A HREF="http://www.jbatrust.org/"><IMG BORDER="0" HEIGHT="49" ID="IMG1" SRC="cid:imagebb07b6.png@ddf92649.d3864b1a" WIDTH="49"></A> <FONT COLOR="#27829e" FACE="Arial" SIZE="2"><STRONG><A HREF="http://www.jbaconsulting.com/" STYLE="COLOR: #27829e; TEXT-DECORATION: none"><BR>www.jbaconsulting.com</A></STRONG></FONT></P></TD></TR>
<TR>
<TD BGCOLOR="#b8ab9e">
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c">&nbsp;</P></TD>
<TD BGCOLOR="#b8ab9e" COLSPAN="2" HEIGHT="56" WIDTH="470">
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c"><FONT COLOR="#ffffff" FACE="Arial" SIZE="1"><STRONG>This email is covered by JBA Consulting's <A HREF="http://www.jbaconsulting.com/disclaimer" STYLE="COLOR: #ffffff; TEXT-DECORATION: none"><U>email disclaimer</U></A>&nbsp; JBA Consulting is the trading name of Jeremy Benn Associates Limited, registered in England, company number 03246693, South Barn, Broughton Hall, Skipton, North Yorkshire, BD23 3AE.</STRONG></FONT></P></TD>
<TD ALIGN="middle" BGCOLOR="#b8ab9e" VALIGN="center" WIDTH="187">
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c"><A HREF="http://www.jbaconsulting.com/nce-winner-2010"><IMG BORDER="0" HEIGHT="39" ID="IMG1" SRC="cid:image921697.png@1d7f2e9e.d17e4000" WIDTH="70"></A>&nbsp;&nbsp;<A HREF="http://twitter.com/JBAConsulting"><IMG BORDER="0" HEIGHT="39" ID="IMG1" SRC="cid:imagebeab8c.png@e6d3bdc2.3c6e41f6" WIDTH="90"></A></P></TD>
<TD BGCOLOR="#b8ab9e" HEIGHT="56" WIDTH="40"></TD></TR>
<TR>
<TD>
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c">&nbsp;</P></TD>
<TD COLSPAN="2">
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c">&nbsp;</P></TD>
<TD COLSPAN="2">
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c">&nbsp;</P></TD></TR></TBODY></TABLE></P>
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c">&nbsp;</P>
<P CLASS="16db9b72-c6ca-48b7-8376-75f565cbbc0c"></P><TD></TD><TR></TR>
<TABLE>
<TBODY></TBODY></TABLE><TBODY></TBODY>
<TABLE>
<TBODY></TBODY></TABLE><STRONG></STRONG><TD></TD><TR></TR><TBODY></TBODY>
<TABLE>
<TBODY></TBODY></TABLE></BODY></HTML>