<html 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" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<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: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;}
span.lineno
        {mso-style-name:lineno;}
span.keyword
        {mso-style-name:keyword;}
span.keywordflow
        {mso-style-name:keywordflow;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The question is for the developers of QGIS.<o:p></o:p></p>
<p class="MsoNormal">In my python classes I use a lot the boundingBox function for QgsGeometry class.<o:p></o:p></p>
<p class="MsoNormal">I would like to know if it is possible to see the algorithm for this function.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I found this but it is not really the algorithm<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00858"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8"><a href="https://qgis.org/api/2.18/classQgsGeometry.html#adfc04c94b51cdeb55942b699fdd4d564"><span style="color:#4665A2;background:#C8C8C8"> 
 858</span></a></span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> <a href="https://qgis.org/api/2.18/classQgsRectangle.html"><span style="color:#4665A2">QgsRectangle</span></a>
<a href="https://qgis.org/api/2.18/classQgsGeometry.html#adfc04c94b51cdeb55942b699fdd4d564">
<span style="color:#4665A2">QgsGeometry::boundingBox</span></a>()</span><span class="keyword"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:green"> const</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00859"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8">  859</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00860"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8">  860</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> 
</span><span class="keywordflow"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:#E08000">if</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> ( d-><a href="https://qgis.org/api/2.18/structQgsGeometryPrivate.html#ac49a8dd9cb78a9d041d1a46ac6a7ef15"><span style="color:#4665A2">geometry</span></a>
 )<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00861"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8">  861</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> 
 {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00862"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8">  862</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> 
</span><span class="keywordflow"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:#E08000">return</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> d-><a href="https://qgis.org/api/2.18/structQgsGeometryPrivate.html#ac49a8dd9cb78a9d041d1a46ac6a7ef15"><span style="color:#4665A2">geometry</span></a>-><a href="https://qgis.org/api/2.18/classQgsAbstractGeometryV2.html#ac6806e752aeda4f347741a0c7eb37167"><span style="color:#4665A2">boundingBox</span></a>();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00863"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8">  863</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> 
 }<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00864"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8">  864</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> 
</span><span class="keywordflow"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:#E08000">return</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black">
<a href="https://qgis.org/api/2.18/classQgsRectangle.html"><span style="color:#4665A2">QgsRectangle</span></a>();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00865"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8">  865</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><a name="l00866"></a><span class="lineno"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black;background:#E8E8E8">  866</span></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:-39.75pt"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:black">Where<o:p></o:p></span></p>
<p class="MsoNormal">I create some polygons with QGIS which are exported to another system which use a bounding box formula that gives infinity.
<o:p></o:p></p>
<p class="MsoNormal">The other system includes a check of the South Pole in the bounding box it also takes in consideration the orientation of the polygon coordinates.
<o:p></o:p></p>
<p class="MsoNormal">It seems in one of the orientation the South Pole is inside the bounding box and if I switch the orientation the South Pole is not anymore inside.<o:p></o:p></p>
<p class="MsoNormal">QGIS seems to be immune of how the coordinates are oriented. Regardless of the order QGIS gives a finite bounding box without having a South Pole inside.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can someone help me?<o:p></o:p></p>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
<p class="MsoNormal">Marian<o:p></o:p></p>
<p class="MsoNormal">Anyone can help me?<o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This electronic message, as well as any transmitted files included in the electronic message, may contain privileged or confidential information and is intended solely for the use of the individual(s) or entity to which it is addressed. If you have received
 this electronic message in error please notify the sender immediately and delete the electronic message. Any unauthorized copying, disclosure or distribution of the electronic message is strictly forbidden. NAV CANADA accepts no liability for any damage caused
 by any virus and/or other malicious code transmitted by this electronic communication.<br>
<br>
Le présent message électronique et tout fichier qui peut y être joint peuvent contenir des renseignements privilégiés ou confidentiels destinés à l’usage exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez reçu ce message électronique
 par erreur, veuillez en informer l’expéditeur immédiatement et supprimez le. Toute reproduction, divulgation ou distribution du présent message électronique est strictement interdite. NAV CANADA n’assume aucune responsabilité en cas de dommage causé par tout
 virus ou autre programme malveillant transmis par ce message électronique.<br>
</font>
</body>
</html>