<br><br><div class="gmail_quote">On Fri, Oct 7, 2011 at 5:22 AM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
Rainer M Krug wrote:<br>
<br>
> > Monitoring the filesystem is likely to be unreliable, as there's no<br>
> > straightforward way to determine when files are in a consistent state.<br>
><br>
> Thanks for pointing this out and saving me some work - otherwise I might<br>
> have chosen that path...<br>
<br>
</div>Also, doing this at the library level would have similar issues,<br>
albeit less severe.<br>
<br>
E.g. when a module finishes writing the actual raster data (i.e.<br>
G_close_cell() or Rast_close()), often the next thing it does is to<br>
write metadata (categories, colour table, history). There is no<br>
specific "event" which signals that the output raster is "complete".<br>
<br>
Generating notifications on "close" operations would ensure that<br>
individual files are consistent, but that doesn't mean that the raster<br>
as a whole is consistent.<br>
<br>
This is something that has been discussed in the past, but without<br>
resolution. Improvements in this area are certainly desirable; e.g.<br>
reading a map in another mapset relies upon luck, as there is no<br>
mechanism to ensure that the owner of that mapset isn't modifying the<br>
map in question at the time. Unfortunately, the issues are complex,<br>
making it hard to decide what should be done, let alone doing it.<br></blockquote><div><br>Thanks a lot for all your input - I think I will put in a mechanism in the model (i.e. writing a file when a layer has been updated ) which I can react on from an external viewer / application.<br>
<br>Cheers,<br><br>Rainer <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br><br>Centre of Excellence for Invasion Biology<br>Stellenbosch University<br>
South Africa<br><br>Tel : +33 - (0)9 53 10 27 44<br>Cell: +33 - (0)6 85 62 59 98<br>Fax (F): +33 - (0)9 58 10 27 44<br><br>Fax (D): +49 - (0)3 21 21 25 22 44<br><br>email: <a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a><br>
<br>Skype: RMkrug<br><br>