]> Pileus Git - grits/blobdiff - src/tile-test.c
libgis -> grits: Fix build after rename
[grits] / src / tile-test.c
index ccac9f3b256ab3582b1f890f63d2c7eb8eb86e11..edaabe617c9c7124036a9ef0411073eda24ad837 100644 (file)
@@ -18,9 +18,9 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
-#include "gis-tile.h"
-#include "gis-wms.h"
-#include "gis-util.h"
+#include "grits-util.h"
+#include "data/grits-wms.h"
+#include "objects/grits-tile.h"
 
 struct CacheState {
        GtkWidget *image;
@@ -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);