]> Pileus Git - grits/blobdiff - src/data/gis-wms.c
Force WMS to only update once
[grits] / src / data / gis-wms.c
index 23bc3f74e43c43e802c815ad066d14289e1db560..9d388625556a26d0028705cd73b8746fb31d6ae6 100644 (file)
@@ -96,6 +96,7 @@ gchar *gis_wms_fetch(GisWms *self, GisTile *tile, GisCacheType mode,
        gchar *uri   = _make_uri(self, tile);
        gchar *tilep = gis_tile_get_path(tile);
        gchar *local = g_strdup_printf("%s%s", tilep, self->extension);
+       mode = GIS_ONCE;
        gchar *path  = gis_http_fetch(self->http, uri, local,
                        mode, callback, user_data);
        g_free(uri);
@@ -109,6 +110,7 @@ GisWms *gis_wms_new(
        const gchar *uri_format, const gchar *prefix,
        const gchar *extension, gint width, gint height)
 {
+       g_debug("GisWms: new - %s", uri_prefix);
        GisWms *self = g_new0(GisWms, 1);
        self->http         = gis_http_new(prefix);
        self->uri_prefix   = g_strdup(uri_prefix);
@@ -122,6 +124,7 @@ GisWms *gis_wms_new(
 
 void gis_wms_free(GisWms *self)
 {
+       g_debug("GisWms: free - %s", self->uri_prefix);
        gis_http_free(self->http);
        g_free(self->uri_prefix);
        g_free(self->uri_layer);