X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fgis-tile.h;h=dc571ac4bc082c622829d320a1242cba027e0501;hb=ccfdb537f75386aa38db18660f14f0dc41b54ed8;hp=cda4442be6de3450be53b4da2ec638f41e4c6650;hpb=f510823bdc5b77fa0c5336ad608f13f251a0ada5;p=grits diff --git a/src/gis-tile.h b/src/gis-tile.h index cda4442..dc571ac 100644 --- a/src/gis-tile.h +++ b/src/gis-tile.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Andy Spencer + * Copyright (C) 2009-2010 Andy Spencer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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);