NAME

Gtk2::Ex::Geo::Renderer - A Gtk2::Gdk::Pixbuf made from spatial data

SYNOPSIS

my $pixbuf = Gtk2::Ex::Geo::Renderer->new($layers, $minX, $maxY,
$pixel_size, @viewport_size, $w_offset, $h_offset, @bg_color);

$pixmap = $pixbuf->render_pixmap_and_mask(0);

$image->set_from_pixmap($pixmap,undef);

Parameters

$layers

a ref to a list of spatial data layers, currently supported are Geo::Raster, Geo::Vector, and Gtk2::Ex::Geo::Composite

$minX, $maxY

upper left coordinates of the world

$pixel_size

self explanatory

@viewport_size

width and height (in pixels) of the requested pixbuf

$w_offset, $h_offset

offset of the viewport in world coordinates

@bg_color

red, green, blue for the background (each in the range 0..255)

LAYER ATTRIBUTES

A Renderer object renders geospatial layer objects by calling the method render($pb) on them (duck typing). $pb is a ral_pixbuf * created with Geo::Raster::ral_pixbuf_new.

SEE ALSO

Gtk2::Ex::Geo

AUTHOR

Ari Jolma, <ajolma at tkk.fi>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by Ari Jolma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.