OK, I checked. QGIS QTiles is the same for QGIS 2 and 3 and hasn't changed 
since 2017.It doesn't give the option of altering the filename extension. 

So to use the directory hierarchy of tiles in OsmAnd without generating a 
.sqlite we have to recurse through the directory hierarchy that QTiles made 
and change *.png to *.png.tile

In Windows, I think the easiest way is to make yourself a file called 
addtile.bat containing the single line:
for /r %%x in (*.png) do ren "%%x" *.png.tile

Drop that .bat in the top level of the hierarchy and double-click to run it.

Alternatively, if you use Windows Powershell, navigate to the top level and 
do this:
Get-ChildItem -Recurse -Include *.png | Rename-Item -NewName { 
$_.Name.replace(".png",".png.tile") }

In Linux, a combination of find and rename (e.g. here 
<https://superuser.com/questions/213134/recursively-rename-files-change-extension-in-linux>)
 looks 
like it does the job, but I haven't tested this.


-- 
You received this message because you are subscribed to the Google Groups 
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to