I played around with gdaldem and the first part of your script and created
quite what I wanted. A combination of hillshade and color coded slope
inclination.
(Only for some tiles in Austria currently.)
It looks nice in qgis, but I'd like to see it together with osmand maps.
Related question: Is there any way to render osmand's obf files with some
overlay to get a preview on the PC?
The lower part of your script merges everything in a huge tiff and transforms
coordinates. I guess this is neccessary to be compatible with osmand's
requirements.
Then it creates those sqlite files (which takes by far the most time).
What modifications did you make in ./gdal2tiles_gray2alpha_sqlite.py? Does it
some channel mapping? This could be important because my hillshade is no
longer a single gray channel image, but RGB color.
And finally: Is it possible, as long as the complete file is small, to feed the
sqlite produced by this step into osmand, skipping extractSqlite.py?
I've just added the sqlite converter in osmand-tools/hillshade
The gdal2tile issue is a bigger one. Do you have a screenshot of the TIFF you obtained that please you?
For the issue with resolution, you should use gdal2tiles with -antialias from z11.
For tiles vs sqlite: try once to play 'rm -rf' on the all world at z11 :)
The artifacts came from resampling the tile edges, it's better if gdal know the neighbour pixel. It's hard to find a recent gdal package, and complicated to compile all dependencies.
For the benchmark, you really don't want to try, it take a few minutes to copy a big sqlite, hours for all these all pkg.
But given the small areas with steep slopes, a vector layer could be better handled by Osmand, and much lighter than tiles. Off course you won't have the smooth coloring effect, but you can style the area for better visibility.
Use original gdal2tiles with --resampling=antialias for better looking resampling. That's what I've done for hillshading.The artifacts came from resampling the tile edges, it's better if gdal know the neighbour pixel. It's hard to find a recent gdal package, and complicated to compile all dependencies.
But given the small areas with steep slopes, a vector layer could be better handled by Osmand, and much lighter than tiles. Off course you won't have the smooth coloring effect, but you can style the area for better visibility.
But given the small areas with steep slopes, a vector layer could be better handled by Osmand, and much lighter than tiles. Off course you won't have the smooth coloring effect, but you can style the area for better visibility.
Could give it a try,
I think polygonize should be used on two or three values slope layer, like white 0-30deg., gray 30-40, black 40+.
I've now managed created the tiles for this layer for the whole world. Still to be done are the per-country sqlites.Would you prefer the vector-data solution?
--
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 osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
True! Thanks, Yves! Still interested in seeing stuff like this in vector format, it could give us more flexibilty here, could maybe revolutionize things a bit ... :-)
--