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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 19 01:33:40 PDT 2014


Author: hamish
Date: 2014-05-19 01:33:40 -0700 (Mon, 19 May 2014)
New Revision: 60333

Modified:
   grass-addons/grass6/raster/r.out.mbtiles_prep/r.out.mbtiles_prep
Log:
sql fixes

Modified: grass-addons/grass6/raster/r.out.mbtiles_prep/r.out.mbtiles_prep
===================================================================
--- grass-addons/grass6/raster/r.out.mbtiles_prep/r.out.mbtiles_prep	2014-05-19 08:24:01 UTC (rev 60332)
+++ grass-addons/grass6/raster/r.out.mbtiles_prep/r.out.mbtiles_prep	2014-05-19 08:33:40 UTC (rev 60333)
@@ -502,7 +502,7 @@
       column=`echo "$crop" | cut -f2 -d'/'`
       row=`echo "$crop" | cut -f3 -d'/'`
 
-      echo "INSERT INTO tiles ($zoomlevel, $row, $column, 'X`hexdump -v -e '1/1 "%.2x"' $file`');"
+      echo "INSERT INTO tiles VALUES ($zoomlevel, $row, $column, X'`hexdump -v -e '1/1 "%.2x"' $file`');"
    done
    ) > "${TMPFILE}_tiles.sql"
 
@@ -512,7 +512,7 @@
    echo "COMMIT TRANSACTION;" >> "$TMPFILE.sql"
 
    if [ `wc -l < "${TMPFILE}_tiles.sql"` -gt 65535 ] ; then
-      echo "FIXME: insert some 'COMMIT TRANSACTION; BEGIN TRANSACTION;' inline the sql"
+      echo "FIXME: insert some 'COMMIT TRANSACTION; BEGIN TRANSACTION;' inline the sql every 65535 inserts or so"
    fi
 
    mv "$TMPFILE.sql" "$OUTFILE.sql"



More information about the grass-commit mailing list