OK - I've just run a test here where a small DiskMemImage is created
having 4 tiles, using a DiskMemTileCache that can only hold a single
tile in memory. The test gets a Graphics object for the image and
draws into each tile in turn It then draws into the tiles again, in
the same order as before. This means that each tile will have been
flushed to disk with the result of the first draw, then restored to
memory to be drawn into again.

The result (just displayed on screen by the test at the moment) looks
fine to me. So it seems that a tile remains writable after being
disk-cached. I actually thought it would be OK since both DiskMemImage
and DiskMemTileCache received a lot of testing by several users when
first released.

Tomorrow (Sydney time) I'll tidy up the unit test and commit it to the
jaitools repo.

Meanshile, Akos - I'm not sure I understand your idea about the
graphics transformations ? is this something else we can add a test
for ?

Michael


On 20 January 2013 21:24, Ákos Maróy <a...@maroy.hu> wrote:
> On 20/01/13 11:14, Michael Bedward wrote:
>> On 20 January 2013 21:09, Andrea Aime <andrea.a...@geo-solutions.it> wrote:
>>> Hmm... labels are always drawn last, wondering if with bigger images the
>>> tiles are getting swapped to disk, and
>>> when they are retrieved back to draw the labels for some reason they are not
>>> "writable" anymore.
>>>
>>> Just a hunch, got nothing better
>>>
>> Good theory (even though I hope it's not true :).
>>
>> I'll create a unit test for that in JAITools and see what happens.
>>
> thank you!
>
> looking at the images, it seems that labels are only drawn on the
> 'top-left corner' of the image, so my hunch would be that only the
> 'top-left tile' gets the labels drawn? and that this might be related to
> the transforms that are added to the Graphics object when drawn?
>
> well, it's just wild guessing anyway

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to