Download to cache a given territory

Topics: General
Jul 24, 2011 at 4:13 PM

Greetings to all.
Can I somehow get forced into the cache card for the specific territory?
I apologize if this question has already been discussed.

Jul 24, 2011 at 4:20 PM

use integrated tile prefetchers in demos, select area holding alt and click prefetch

Jul 25, 2011 at 2:40 AM


It work.

But, it work only WindowsForms project. I had to edit the code in a WPF Project to make it work, is a major project WindowsForms?

Jul 25, 2011 at 6:50 AM

what exactly doesn't work in wpf version? Well i'm keeping both version working, from time to time some version gets more attention, but there is no 'major' project ;}

Jul 25, 2011 at 8:01 AM

In WPF version don't work Export/Import button, because not include string in file GMapControl.cs:

#define SQLite

If I find something else I write.

Jul 25, 2011 at 8:21 AM


Jul 25, 2011 at 4:49 PM

Can not download the map via Prefetch.


In the Bug I created a theme on this issue, but now it somehow does not.

Jul 25, 2011 at 4:55 PM

i know, no need to repeat it in other posts ;}

Jul 25, 2011 at 5:02 PM

I'm sorry.

Jul 25, 2011 at 7:02 PM

fixed, thx

Jul 26, 2011 at 5:51 AM

Prefetch don't work in WPF.

The reason not to work properly:

if(task.Value.Img != null && task.Value.Img.CanRead)
where task.Value.Img.CanRead=false

I can not understand why tileCacheQueue.Items [0]. Img.CanRead EnqueueCacheTask in the method is true, but in CacheEngineLoop is false - using in WPF, but WindowsForms is all ok (CacheEngineLoop is true).

Jul 26, 2011 at 10:18 AM
Edited Jul 26, 2011 at 11:07 AM

The stream is not available because of the code

if (img! = null)
      img.Dispose ();
      img = null;

to perform:

if (task.Value.Img! = null & & task.Value.Img.CanRead)
Jul 26, 2011 at 8:16 PM


Jul 27, 2011 at 1:41 AM
Edited Jul 27, 2011 at 1:42 AM

Thanks. Work. Very good.

Quickly corrected. Well you know your project!