X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Ftile-test.c;h=66e105d1ed499f32bc5a35fbb0d78c662a1bebb5;hb=b9f5eb2820a7eddf625a17de87a48e70e0a4179f;hp=7953ec51ee75792be7d64f71929630689934402d;hpb=1f59c39cbad9112d2c3fc06967f6e99a3d9c5a00;p=grits diff --git a/src/tile-test.c b/src/tile-test.c index 7953ec5..66e105d 100644 --- a/src/tile-test.c +++ b/src/tile-test.c @@ -18,8 +18,8 @@ #include #include -#include "gis-wms.h" #include "gis-util.h" +#include "data/gis-wms.h" #include "objects/gis-tile.h" struct CacheState { @@ -58,7 +58,7 @@ gpointer do_bmng_cache(gpointer _image) GisWms *bmng_wms = gis_wms_new( "http://www.nasa.network.com/wms", "bmng200406", "image/jpeg", "bmng_test/", "jpg", 512, 256); - const char *path = gis_wms_make_local(bmng_wms, tile); + const char *path = gis_wms_fetch(bmng_wms, tile, GIS_ONCE, NULL, NULL); g_message("Loading bmng image: [%s]", path); GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(path, NULL); @@ -84,7 +84,7 @@ gpointer do_osm_cache(gpointer _image) GisWms *osm_wms = gis_wms_new( "http://labs.metacarta.com/wms/vmap0", "basic", "image/png", "osm_test/", "png", 512, 256); - const char *path = gis_wms_make_local(osm_wms, tile); + const char *path = gis_wms_fetch(osm_wms, tile, GIS_ONCE, NULL, NULL); g_message("Loading osm image: [%s]", path); GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(path, NULL);