<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17063" name=GENERATOR>
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:0in;
        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:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</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 lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=713341116-29092010><FONT face=Arial color=#0000ff>Hi 
Francois,</FONT></SPAN></DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial color=#0000ff>If you are in 
Python, you could use GDAL with something like the 
following:</FONT></SPAN></DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial color=#0000ff>import 
osr</FONT></SPAN></DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial 
color=#0000ff>...</FONT></SPAN></DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial color=#0000ff>theProj4Str = 
"<FONT color=#000000>+proj=utm +zone=36 +south +a=6378249.144808011 
+b=6356514.966204134 +units=m +no_defs</FONT>"<BR>outSr = 
osr.SpatialReference()<BR>outSr.ImportFromProj4(theProj4Str)<BR>outWkt = 
outSr.ExportToWkt()</FONT></SPAN></DIV>
<DIV><SPAN class=713341116-29092010></SPAN><SPAN class=713341116-29092010><FONT 
face=Arial color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial color=#0000ff>and use 
outWkt as the&nbsp;'dst_wtk' parameter for raster creation.</FONT></SPAN></DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial 
color=#0000ff>HTH,</FONT></SPAN></DIV>
<DIV><SPAN class=713341116-29092010><FONT face=Arial 
color=#0000ff>Benoit</FONT></SPAN></DIV>
<DIV><SPAN class=713341116-29092010></SPAN><FONT face=Tahoma size=2><SPAN 
class=713341116-29092010><FONT face=Arial color=#0000ff 
size=3>&nbsp;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Tahoma size=2><SPAN 
class=713341116-29092010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma size=2><SPAN 
class=713341116-29092010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma size=2><SPAN 
class=713341116-29092010>&nbsp;</SPAN>-----Original Message-----<BR><B>From:</B> 
qgis-developer-bounces@lists.osgeo.org 
[mailto:qgis-developer-bounces@lists.osgeo.org]<B>On Behalf Of </B>Francois 
Maass<BR><B>Sent:</B> Wednesday, 29 September 2010 17:33<BR><B>To:</B> 
qgis-developer@lists.osgeo.org<BR><B>Subject:</B> [Qgis-developer] QGis AutoGCP 
Plugin<BR><BR></DIV></FONT>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=WordSection1>
  <P class=MsoNormal>Hello everyone!<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>I&#8217;ve been struggling with this for quite some time now, but 
  I can&#8217;t seem to find the proper solution.&nbsp; We need to set the projection 
  definition to provided datasets, and have, up to now, been doing it by using 
  our own projection dialog. We now want to change our plugin to use the, 
  already implemented, QGIS projection dialog.<BR><BR>So my question is as 
  follows:&nbsp; <BR><BR>Is there a way to convert a projection definition such 
  as those returned by the QGIS projection dialog <BR>eg:<BR>&nbsp;&nbsp; 
  +proj=utm +zone=36 +south +a=6378249.144808011 +b=6356514.966204134 +units=m 
  +no_defs<BR><BR>to the extended form such as the following:<o:p></o:p></P>
  <P class=MsoNormal><BR>&nbsp;&nbsp; PROJCS["UTM Zone 36, Southern 
  Hemisphere",GEOGCS["Unknown datum based upon the Clarke 1880 
  ellipsoid",DATUM["Not specified (based on Clarke 1880 
  spheroid)",SPHEROID["Clarke 
  1880",6378249.144808011,293.4663076556303,AUTHORITY["EPSG","7034"]]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",33],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",10000000],UNIT["Meter",1]]<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>The reason for this is that the GDAL functions for setting 
  the projection definition, only accepts the extended form.&nbsp; If this is 
  already implemented in a QGIS or other class that you know of, I would greatly 
  appreciate it.&nbsp; (I don&#8217;t think I am qualified enough to attempt doing it 
  myself. <SPAN style="FONT-FAMILY: Wingdings">J</SPAN> )<BR><BR>Thank you for 
  your time and efforts!<BR>Francois Maass<BR>Foxhat 
  Solutions<o:p></o:p></P></DIV></BLOCKQUOTE></BODY></HTML>