Yes, you can use any image as an overlay/underlay in OsmAnd using free
tools, whatever the map projection used for the image. I did this myself a
while ago (with no prior experience) and kept careful notes. There will be
other ways, this is just what I stumbled on. These notes were written for
my eyes only so I hope they make sense. Good luck!
First, we need to georeference as described here:
http://www.qgistutorials.com/en/docs/georeferencing_basics.html
- Start QGIS and activate the "Georeferencer GDAL" built-in plugin if
not already
- Open the plugin with Raster>Georeferencer>Georeferencer
- Open the source image with File>Open Raster
- Assuming our control points will be given GPS-style, make sure WGS 84
is the selected CRS (if taking them from the map image itself, the CRS and
datum would be chosen accordingly)
- Use the pan and zoom tools to home in on identifiable spots, then use
the "add point" tool to give their coordinates. Need to do at least four;
if we're changing the projection of the map then more will give better
results. Right clicking on Bing maps is an easy way to get a point's
coordinates.
- Settings>Transformation Settings (should persist from previous usage)
- Transformation Type: Thin Plate Spline
- Output Raster: pick a name for the GeoTiff if default not wanted
- Check "Load in QGIS when done"
- File>Start Georeferencing
- If desired, save points before closing the plugin, and save the
project when back in QGIS
Now we generate the tiles:
- Open the QTiles plugin (install / activate if necessary)
- Output: choose a directory and tileset name. Tiles will sit under a
new directory of the tileset name within the chosen directory.
- Choose min and max zoom. Osmand zoom level 7 has England filling the
screen of my Nexus 7 tablet. The map won't be shown at <minzoom, but is
visible at >maxzoom --- but then you're zooming in on pixels. For a UK
rainfall map I used 6-8.
- Run with standard parameters, then close
Now we make the sqlite database file for OsmAnd using Mobile Atlas Creator
(MOBAC) as described here:
https://groups.google.com/forum/#!topic/osmand/8iLr2fZKMpc
- Give the directory (full pathname XXX) that was created with the
tileset name above in a file called local.xml in the mapsources folder of
MOBAC:
<?xml version="1.0" encoding="UTF-8"?>
<localTileFiles>
<name>LocalTileTree</name>
<sourceType>DIR_ZOOM_X_Y</sourceType>
<sourceFolder>XXX</sourceFolder>
<invertYCoordinate>false</invertYCoordinate> <!-- optional -->
<backgroundColor>#000000</backgroundColor>
</localTileFiles>
- Start MOBAC.
- Atlas>New Atlas, and select OSMAND SQLite
- Then from the list of sources choose "LocalTileTree" (or whatever is
tagged as <name> in the xml above). The map should show.
- Selection>Selection Mode, and draw around the part of the map to use
- Pick the zoom levels to include
- Selection>Add Selection
- You can supposedly add disjoint regions, possibly with different
zooms, by repeating the previous three steps. But it doesn't seem to be as
effective at omitting tiles as it could be - they can be deleted by hand
before starting MOBAC, though.
- Atlas>Create Atlas
Put the resulting .sqlitedb into the tiles folder of OsmAnd.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.