X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fgis-tile.h;h=d21b771477076aaa51406d66d1f7c0f713f52ba1;hb=cc32fdc32ab49e32fc2fd668c6ae30ade505c027;hp=cda4442be6de3450be53b4da2ec638f41e4c6650;hpb=f510823bdc5b77fa0c5336ad608f13f251a0ada5;p=grits diff --git a/src/gis-tile.h b/src/gis-tile.h index cda4442..d21b771 100644 --- a/src/gis-tile.h +++ b/src/gis-tile.h @@ -18,7 +18,6 @@ #ifndef __GIS_TILE_H__ #define __GIS_TILE_H__ -#include #include typedef struct _GisTile GisTile; @@ -69,6 +68,9 @@ void gis_tile_update(GisTile *root, gdouble lat, gdouble lon, gdouble elev, GisTileLoadFunc load_func, gpointer user_data); +/* Find the leaf tile containing lat-lon */ +GisTile *gis_tile_find(GisTile *root, gdouble lat, gdouble lon); + /* Delete nodes that haven't been accessed since atime */ GisTile *gis_tile_gc(GisTile *root, time_t atime, GisTileFreeFunc free_func, gpointer user_data);