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

Class SabxProcessor

source code

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

Specialized TemplateProcessor to handle SABX files and turn them into map data that Mapnik can handle.

Instance Methods [hide private]
 
__init__(self, template_file=None, man=None)
Add command-line option for input file.
source code
 
process_options(self)
Setup for the input file.
source code
 
get_template_data(self)
Add all the extra data that Mapnik needs.
source code

Inherited from templating.generic.TemplateProcessor: process, process_template

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

Instance Variables [hide private]

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 command-line option for input file.

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

process_options(self)

source code 

Setup for the input file.

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

get_template_data(self)

source code 

Add all the extra data that Mapnik needs.

Overrides: templating.generic.TemplateProcessor.get_template_data