Hi Carlos,
You can use our CacheGenerator tool (http://wiki.thinkgeo.com/wiki/_media/file/ServicesEditionSample_CacheGenerator_CS_150204.zip) to cache all tiles for GeoTiff layer, then copy the caches to the cache folder of android device.
Please change the code of CacheGenerator tool as following before using it:
In LayerProvider Class:
public static Collection GetLayersToCache()
{
Collection layersToCache = new Collection();
// You can insert your layer to "layersToCache" in this function, they will be used for cache.
GeoTiffRasterLayer layer = new GeoTiffRasterLayer(“Your GeoTiff file path”);
layersToCache.Add(layer);
return layersToCache;
}
Besides, you need to set TileSnappingMode values for LayerOverlay as following:
LayerOverlay layerOverlay = new LayerOverlay();
GeoTiffRasterLayer geoTiffRasterLayer = new GeoTiffRasterLayer(targetDirectory);
geoTiffRasterLayer.UpperThreshold = double.MaxValue;
geoTiffRasterLayer.LowerThreshold = 0;
geoTiffRasterLayer.IsGrayscale = false;
geoTiffRasterLayer.DrawingQuality = DrawingQuality.HighSpeed;
geoTiffRasterLayer.LibraryType = GeoTiffLibraryType.ManagedLibTiff;
layerOverlay.Layers.Add(fileName, geoTiffRasterLayer);
layerOverlay.TileCache = new FileBitmapTileCache(“mnt/sdcard/MapSuiteSampleData/GeoTiffTileCache”, “GeoTiff”);
layerOverlay.TileSnappingMode = TileSnappingMode.Snapping;
Thanks,