Ejemplo n.º 1
0
int Rast3d__remove_tile(RASTER3D_Map * map, int tileIndex)
{
    if (!map->useCache)
	return 1;

    if (!Rast3d_cache_remove_elt(map->cache, tileIndex)) {
	Rast3d_error("Rast3d_removeTile: error in Rast3d_cache_remove_elt");
	return 0;
    }

    return 1;
}
Ejemplo n.º 2
0
int Rast3d_cache_remove_all(RASTER3D_cache * c)
{
    int index;

    for (index = 0; index < c->nofElts; index++)
	if (IS_ACTIVE_ELT(index))
	    if (!Rast3d_cache_remove_elt(c, c->names[index])) {
		Rast3d_error
		    ("Rast3d_cache_remove_all: error in Rast3d_cache_remove_elt");
		return 0;
	    }

    return 1;
}