[GRASS-SVN] r60283 - grass-addons/grass6/raster/r.out.mbtiles_prep

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 17 05:19:52 PDT 2014


Author: hamish
Date: 2014-05-17 05:19:51 -0700 (Sat, 17 May 2014)
New Revision: 60283

Modified:
   grass-addons/grass6/raster/r.out.mbtiles_prep/description.html
Log:
add handy gdalbuildvrt + r.external example, note TODOs

Modified: grass-addons/grass6/raster/r.out.mbtiles_prep/description.html
===================================================================
--- grass-addons/grass6/raster/r.out.mbtiles_prep/description.html	2014-05-17 08:52:02 UTC (rev 60282)
+++ grass-addons/grass6/raster/r.out.mbtiles_prep/description.html	2014-05-17 12:19:51 UTC (rev 60283)
@@ -43,6 +43,26 @@
 r.out.mbtiles_prep -t in=shaded_soilsID out=shaded_soil_tiles format=jpeg
 </pre></div>
 
+
+<p>
+Example 3:
+Take a series of georegistered JPEG images (with .jgw world files),
+combine them into a virtual raster map with GDAL's <tt>gdalbuildvrt</tt>,
+import into a virtual GRASS raster map with <em>r.external</em>,
+and export as a TMS tileset ready for conversion into MBTiles. This
+is somewhat more computationally expensive but much easier on the
+disk space since the intermediate files are relatively tiny.
+
+<div class="code"><pre>
+gdalbuildvrt ortho_images.vrt *.jpg
+r.external in=ortho_images.vrt out=ortho.mosaic \
+   title="Rural Aerial Photos (2009-2011)"
+g.region rast=ortho.mosaic.1
+
+r.out.mbtiles_prep -t in=ortho.mosaic out=ortho_mosaic format=jpeg
+</pre></div>
+
+
 <!-- prep companion data for North Carolina
 # in lat/lon location
 v.proj in=usgsgages map=PERMANENT loc=nc_spm_08
@@ -58,6 +78,14 @@
 -->
 
 
+<h2>TODO</h2>
+
+Ability to create the MBTiles SQLite database directly.
+<p>
+On MS Windows <tt>gdal2tiles.py</tt> is called <tt>gdal2tiles.bat</tt>.
+Some minor adjust is needed in the script to select the correct name.
+
+
 <h2>SEE ALSO</h2>
 
 <em><a href="i.group.html">i.group</a></em>



More information about the grass-commit mailing list