mapcache

mapcache

Functions

Types and Values

Description

Functions

a_mapcache_init ()

void
a_mapcache_init ();

a_mapcache_add ()

void
a_mapcache_add (GdkPixbuf *pixbuf,
                mapcache_extra_t extra,
                gint x,
                gint y,
                gint z,
                guint16 type,
                gint zoom,
                guint8 alpha,
                gdouble xshrinkfactor,
                gdouble yshrinkfactor,
                const gchar *name);

a_mapcache_get ()

GdkPixbuf *
a_mapcache_get (gint x,
                gint y,
                gint z,
                guint16 type,
                gint zoom,
                guint8 alpha,
                gdouble xshrinkfactor,
                gdouble yshrinkfactor,
                const gchar *name);

a_mapcache_get_extra ()

mapcache_extra_t
a_mapcache_get_extra (gint x,
                      gint y,
                      gint z,
                      guint16 type,
                      gint zoom,
                      guint8 alpha,
                      gdouble xshrinkfactor,
                      gdouble yshrinkfactor,
                      const gchar *name);

a_mapcache_remove_all_shrinkfactors ()

void
a_mapcache_remove_all_shrinkfactors (gint x,
                                     gint y,
                                     gint z,
                                     guint16 type,
                                     gint zoom,
                                     const gchar *name);

a_mapcache_flush ()

void
a_mapcache_flush ();

a_mapcache_flush_type ()

void
a_mapcache_flush_type (guint16 type);

Just remove cache items for the specified map type i.e. all related xyz+zoom+alpha+etc...

Parameters

type

Specified map type

 

a_mapcache_uninit ()

void
a_mapcache_uninit ();

a_mapcache_get_size ()

gint
a_mapcache_get_size ();

a_mapcache_get_count ()

gint
a_mapcache_get_count ();

Types and Values

mapcache_extra_t

typedef struct {
  gdouble duration; // Mostly for Mapnik Rendering duration - negative values indicate not rendered (i.e. read from disk)
} mapcache_extra_t;