Package sabx10 :: Package osm :: Module styles :: Class StyleProcessor
[hide private]
[frames] | no frames]

Class StyleProcessor

source code

                          object --+        
                                   |        
templating.generic.TemplateProcessor --+    
                                       |    
           templating.sabx.SabxProcessor --+
                                           |
                                          StyleProcessor

Handle the processing of a style template. This will generate the style sheet necessary for Mapnik to know how to generate a map.

Instance Methods [hide private]
 
__init__(self, template_file=None, man=None)
Add support for an OSM data file and a logo directory.
source code
 
process_options(self)
Process the OSM data file file and logo directory.
source code
 
process_template(self)
Generate a template file for each ride in the rideset.
source code

Inherited from templating.sabx.SabxProcessor: get_template_data

Inherited from templating.generic.TemplateProcessor: process

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from templating.sabx.SabxProcessor: in_file, sabx

Inherited from templating.generic.TemplateProcessor: args, man, options, out_file, parser, template_data, template_file, template_path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, template_file=None, man=None)
(Constructor)

source code 

Add support for an OSM data file and a logo directory.

Parameters:
  • template_file (string) - name of template file to use
  • man (string) - text for man page
Overrides: object.__init__

process_options(self)

source code 

Process the OSM data file file and logo directory.

Parameters:
  • arg_count - count of non-optional command-line arguments expected
Raises:
  • NotEnoughArgsException - this exception is raised when there is no template file specified on the command-line
Overrides: templating.generic.TemplateProcessor.process_options

process_template(self)

source code 

Generate a template file for each ride in the rideset.

Overrides: templating.generic.TemplateProcessor.process_template