DOKK / manpages / debian 12 / tirex / Tirex::Renderer.3pm.en
Tirex::Renderer(3pm) User Contributed Perl Documentation Tirex::Renderer(3pm)

Tirex::Renderer - A Tirex renderer config

my $r = Tirex::Renderer->new( ... );

Tirex can work with several rendering backends such as Mapnik or WMS. A backend can be started with different configurations, for the Mapnik backend you need to configure the font directory for instance. This class defines methods for reading the config files (/etc/tirex/renderer/*.conf) describing the backend configurations and managing those renderers.

See the class Tirex::Backend and its subclasses for the actual code of some backends.

Read all renderer configs in given config directory.

Get renderer by name.

Return sorted (by name) list of all configured renderers.

Clear list of renderers.

Return sorted (by name) list of all enabled renderers.

Tirex::Renderer->new( name => 'foo', path => '/path/to/exec', port => 1234, procs => 3, ... )

Create new renderer config.

Every renderer has at least these general options: name, path, port, and procs. Will croak if they are not all present.

In addition it can have zero or more options specific to this renderer.

Will croak if a renderer configuration already exists under the same name.

Create new renderer config from a file.

Croaks if the file does not exist.

Read all map configs for this renderer.

Get array of map configs for this renderer.

Return hash with renderer-specific configuration.

Get name of this renderer.

Get debug flag of this renderer.

Get path of this renderer.

Get port of this renderer.

Get procs of this renderer.

Get syslog facility of this renderer.

Is this renderer enabled?

Disable this renderer.

Enable this renderer.

Return human readable description of this renderer.

Return parameters of this renderer as hash.

Return status of all configured renderers.

Add process id to list of currently running workers.

Remove process id from list of currently running workers.

Return number of currently running workers.

2023-04-11 perl v5.36.0