<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/104042/">http://git.reviewboard.kde.org/r/104042/</a>
     </td>
    </tr>
   </table>
   <br />


<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 Javier Becerra Elcinto.</div>







<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;">Add support for TileMapServer storageLayout in DGML files (similar to OpenStreetMap mode, but y coordinates start at the bottom of the map rather than at the top).

Add support for TileMapServer storageLayout in DGML files (similar to
OpenStreetMap mode, but y coordinates start at the bottom of the map
rather than at the top).
Changes include a new TmsServerLayout class to transfom the y coordinate
and modifications in  GeoSceneTexture::relativeTileFileName to take into
account the new TmsServerLayout (tiles are stored locally with the same
filename as it would have in the remote server, allowing the use of
locally stored maps without changing the filenames).
As a side note, running marble --tile-id will show the original marble
coordinates (y starting at top), not the TMS ones, which can be
confusing. Moreover, we can mix two textures with different
modes (i.e. OpenStreetMap and TileMapService), and only one tile-id per
tile will be shown.</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;">1) Create a tileset using gdal2tiles.py (available in gdal-python)
     gdal2tiles.py -p mercator -z 0 13 yourgeotiff.tiff
2) Copy the generated tiles directory tree (i.e. the folders named 0 to 13) to Marble's local directory as a new map earth theme (in linux you would move them to ~/.local/share/marble/maps/earth/mynewtheme). Remember that you must have a level 0 transparent tile, no m
3) Modify an existing dgml (from Marble's system path, /usr/local/share/marble/data/maps/earth/...) file or create a new one which includes the following texture layer within the first layer of the map (<layer backend="texture"...>) (modify parameters to suit your files, and don't forget to check that the maximum zoom level is enough to view you geotiff file at a proper scale-if it is not enough then go back to first step and change the 13 (maximum zoom level) by the level of your choice)
    <texture name="yourname">
     <sourcedir format="png">earth/mynewtheme</sourcedir>
     <tileSize width="256" height="256"/>
     <storageLayout mode="TileMapService" levelZeroRows="1" levelZeroColumns="1" maximumTileLevel="13"/>
     <projection name="Mercator"/>
     <blending name="AlphaBlending"/>
    </texture>
     
4) Open Marble, select your modified theme and check that your geotiff file is overlaid at the right place.
</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/lib/ServerLayout.h <span style="color: grey">(04c244f)</span></li>

 <li>src/lib/ServerLayout.cpp <span style="color: grey">(deb9d66)</span></li>

 <li>src/lib/geodata/handlers/dgml/DgmlStorageLayoutTagHandler.cpp <span style="color: grey">(7619175)</span></li>

 <li>src/lib/geodata/scene/GeoSceneTexture.h <span style="color: grey">(7a3fd00)</span></li>

 <li>src/lib/geodata/scene/GeoSceneTexture.cpp <span style="color: grey">(3201820)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/104042/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/104042/s/439/"><img src="http://git.reviewboard.kde.org/media/uploaded/images/2012/02/22/0001-Add-support-for-TileMapServer-storageLayout-in-DGML-_400x100.png" style="border: 1px black solid;" alt="File erdas_spnad83.tif overlaid on OpenStreetMap using Marble (downloaded from http://dl.maptools.org/dl/geotiff/samples/other/)" /></a>

</div>


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




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