<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/106007/">http://git.reviewboard.kde.org/r/106007/</a>
     </td>
    </tr>
   </table>
   <br />









<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/106007/diff/1/?file=77389#file77389line79" style="color: black; font-weight: bold; text-decoration: underline;">src/plugins/runner/osm/handlers/OsmMemberTagHandler.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">GeoNode* OsmMemberTagHandler::parse( GeoParser& parser ) const</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">79</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                            <span class="n">envelope</span><span class="p">.</span><span class="n">append</span><span class="p">(</span> <span class="n">GeoDataCoordinates</span> <span class="p">(</span> <span class="n">l</span><span class="o">-></span><span class="n">at</span><span class="p">(</span><span class="n">x</span><span class="p">).</span><span class="n">longitude</span><span class="p">(),</span> <span class="n">l</span><span class="o">-></span><span class="n">at</span><span class="p">(</span><span class="n">x</span><span class="p">).</span><span class="n">latitude</span><span class="p">()</span> <span class="p">)</span> <span class="p">);</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Any reason why not using l->at(x) directly?
Thinking of GeoDataCoordinates copy ctor.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/106007/diff/1/?file=77389#file77389line84" style="color: black; font-weight: bold; text-decoration: underline;">src/plugins/runner/osm/handlers/OsmMemberTagHandler.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">GeoNode* OsmMemberTagHandler::parse( GeoParser& parser ) const</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">84</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                    <span class="k">else</span> <span class="k">if</span> <span class="p">(</span> <span class="n">l</span><span class="o">-></span><span class="n">first</span><span class="p">().</span><span class="k">operator</span> <span class="o">==</span><span class="p">(</span><span class="n">envelope</span><span class="p">.</span><span class="n">first</span><span class="p">())</span> <span class="p">)</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">why not use == instead of operator== ?</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/106007/diff/1/?file=77389#file77389line93" style="color: black; font-weight: bold; text-decoration: underline;">src/plugins/runner/osm/handlers/OsmMemberTagHandler.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">GeoNode* OsmMemberTagHandler::parse( GeoParser& parser ) const</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">93</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                        <span class="n">envelope</span><span class="p">.</span><span class="k">operator</span> <span class="o">=</span><span class="p">(</span> <span class="o">*</span><span class="n">temp</span> <span class="p">);</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">= instead of operator= ?</pre>
</div>
<br />



<p>- Thibaut</p>


<br />
<p>On August 14th, 2012, 8:43 a.m., Ander Pijoan wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Marble.</div>
<div>By Ander Pijoan.</div>


<p style="color: grey;"><i>Updated Aug. 14, 2012, 8:43 a.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Extension for the .osm file parser. Relations can be built with different ways (for example for describing a building with a hole in it) tagged as members.

So with this diff, <member> tag is parsed and ways are stored for then a relation to have them available if necessary.

Moreover a relation can also contain another relation, so a relation factory has also been created to store them.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Testing done with some .osm files with different ways of representing buildings and using relations. Works OK.</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>src/plugins/runner/osm/CMakeLists.txt <span style="color: grey">(6e92624)</span></li>

 <li>src/plugins/runner/osm/OsmParser.cpp <span style="color: grey">(5285566)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmElementDictionary.h <span style="color: grey">(2d40f6b)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmElementDictionary.cpp <span style="color: grey">(c99d4a9)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmGlobals.cpp <span style="color: grey">(0b5ea25)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmMemberTagHandler.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmMemberTagHandler.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmNodeFactory.h <span style="color: grey">(b9c6580)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmNodeFactory.cpp <span style="color: grey">(c51e373)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmNodeTagHandler.cpp <span style="color: grey">(f433a5d)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmOsmTagHandler.cpp <span style="color: grey">(997f628)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmRelationFactory.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmRelationFactory.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmRelationTagHandler.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmRelationTagHandler.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmTagTagHandler.cpp <span style="color: grey">(7a8f432)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmWayFactory.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmWayFactory.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/plugins/runner/osm/handlers/OsmWayTagHandler.cpp <span style="color: grey">(fdcd2a8)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/106007/diff/" style="margin-left: 3em;">View Diff</a></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Screenshots </h1>

<div>

 <a href="http://git.reviewboard.kde.org/r/106007/s/675/"><img src="http://git.reviewboard.kde.org/media/uploaded/images/2012/08/14/OsmParserImprovement_400x100.png" style="border: 1px black solid;" alt="Osm parser test" /></a>

</div>


  </td>
 </tr>
</table>








  </div>
 </body>
</html>