BTW, is there a way to ``lock'' on a raster (or its data at
        least), so that it could be opened (or rewound) multiple times
        and, e. g., `G_get_raster_row' would return the same data, even
        if the raster was, e. g., renamed meanwhile?

        It seems to me that the combination of the dup () and lseek ()
        (or rather rewind ()?) likes for GRASS rasters would do the
        trick.  Are such library functions currently there?  Does it
        seem reasonable to implement them?

        I'd like to mention that given the standard Unix-like semantics,
        such a locking would imply that one could read a raster that was
        `g.remove'd meanwhile.  I think it's a nice feature for
        long-running GRASS modules, having to read certain rasters
        multiple times per run.

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to