Changes between Version 55 and Version 56 of LibMemphis


Ignore:
Timestamp:
Oct 25, 2009, 1:11:47 AM (4 years ago)
Author:
simon
Comment:

remove all debug level funtions and add new debug functions

Legend:

Unmodified
Added
Removed
Modified
  • LibMemphis

    v55 v56  
    99make 
    1010sudo make install 
     11}}} 
     12 
     13If you want to enable very verbose debug messages use:  
     14{{{ 
     15./configure --enable-debug 
    1116}}} 
    1217 
     
    4045The tile renderer implements the 'Slippy Map Tilename' specification, like Mapnik and Osmarender. It supports zoom level 12 to 18, projected with the Mercator projection. Every level has 2^zoom level^ images in x and y direction (enumarated from 0 to 2^zoom level^-1). Tiles without data are rendered filled with the background color of the map.  
    4146 
    42 Debug Levels: 0: Be quiet, 1: Normal Output (Default), 2: Be verbose 
    43  
    4447{{{ 
    4548MemphisRenderer* memphis_renderer_new (); 
     
    4851 
    4952void memphis_renderer_set_rule_set (MemphisRenderer *r, MemphisRuleSet *rules); 
    50 void memphis_renderer_set_map (MemphisRenderer *r, MemphisMap *map); 
     53MemphisRuleSet* memphis_renderer_get_rule_set (MemphisRenderer *r); 
     54 
     55void memphis_renderer_set_map (MemphisRenderer *r, MemphisMap *map);$ 
     56MemphisMap* memphis_renderer_get_map (MemphisRenderer *r); 
     57 
    5158void memphis_renderer_set_resolution (MemphisRenderer *r, guint resolution); 
    52 void memphis_renderer_set_debug_level (MemphisRenderer *r, gint8 debug_level); 
    53  
    5459guint memphis_renderer_get_resolution (MemphisRenderer *r); 
    55 gint8 memphis_renderer_get_debug_level (MemphisRenderer *r); 
    56 MemphisMap* memphis_renderer_get_map (MemphisRenderer *r): 
    57 MemphisRuleSet* memphis_renderer_get_rule_set (MemphisRenderer *r); 
    5860 
    5961void memphis_renderer_draw_png (MemphisRenderer *r, gchar *filename, guint zoom_level); // emulates the old behavior, will be removed someday 
     
    8183void memphis_map_load_from_data (MemphisMap *map, const gchar *data, guint size); 
    8284 
    83 void memphis_map_set_debug_level (MemphisMap *map, gint8 debug_level); 
    84 gint8 memphis_map_get_debug_level (MemphisMap *map); 
    85  
    8685void memhis_map_get_bounding_box (MemphisMap *map,  
    8786    gdouble *minlat, gdouble *minlon, 
     
    9695void memphis_rule_set_load_from_file (MemphisRuleSet *rules, const gchar *filename); 
    9796void memphis_rule_set_load_from_data (MemphisRuleSet *rules, const gchar *data, guint size); 
    98  
    99 void memphis_rule_set_set_debug_level (MemphisRuleSet *rules, gint8 debug_level); 
    100 gint8 memphis_rule_set_get_debug_level (MemphisRuleSet *rules); 
    10197 
    10298void memphis_rule_set_set_bg_color (MemphisRuleSet *rules, 
     
    164160}}} 
    165161 
     162'''Debugging''' helper functions: 
     163 
     164memphis-debug messages can be enabled with {{{./configure --enable-debug}}}. 
     165 
     166{{{ 
     167void memphis_debug (const gchar *format, ...); 
     168void memphis_info (const gchar *format, ...); 
     169 
     170void memphis_debug_set_print_progress (gboolean show_progress); 
     171gboolean memphis_debug_get_print_progress (); 
     172}}} 
     173 
    166174== Done == 
    167175 * Relicense all code as LGPL. 
     
    171179 * Add zoom level 18 support. 
    172180 * Add capability to query and edit rules. 
    173  * Autotools based build system 
    174  * Unit tests for the API (tests/unit-tests or 'make check') 
     181 * Autotools based build system. 
     182 * Unit tests for the API (tests/unit-tests or 'make check'). 
     183 * New debug level infrastructure. (ticket #16) 
    175184 
    176185== Roadmap == 
     
    182191 * Code is scatterd between new and old files. In my opinion, all code should be moved into the class files one day. 
    183192 * Some data structures should be merged with the classes. e.g. osmFile, cfgRules. 
    184  * The dynamic debug level is not well solved. (see ticket #16) 
    185193