NAME
Gtk2::Ex::Geo - Perl Gtk2 widgets for GIS
SYNOPSIS
# the order of these is important: use Gtk2::Ex::Geo; use Glib qw/TRUE FALSE/; use Gtk2 '-init';
my $gis = Gtk2::Ex::Geo::Glue->new( history=>[''] );
$gis->set_event_handler( \&info ); $gis->{overlay}->{rubberbanding} = 'zoom rect';
# the widgets already created and in $gis # have to be declared as Custom widgets # they are installed through this custom_handler
sub get_custom_widget { my $name = $_[2]; if ($name eq 'layer_widget') { return $gis->{tree_view}; } elsif ($name eq 'map_widget') { return $gis->{overlay}; } }
Gtk2::Glade->set_custom_handler(\&get_custom_widget);
$glade = Gtk2::GladeXML->new("gui.glade"); $glade->signal_autoconnect_from_package('main');
$glade->get_widget('map_widget')->show_all; $glade->get_widget('layer_widget')->show;
Gtk2->main;
LAYERS
What is expected of a layer by Gtk2::Ex::Geo?
Properties
- name
-
string (Gtk2::Ex::Geo takes care)
-
boolean (Gtk2::Ex::Geo takes care)
- alpha
-
0..255 (Gtk2::Ex::Geo takes care)
- ogr_layer
-
(for dialogs, todo: change to simple layer)
- iterator
-
(Gtk2::Ex::Geo takes care)
Methods
- world(1)
-
returns (minX,minY,maxX,maxY)
todo: context menu returns an array
- nodata_value(nodata_value)
-
set or get
- rasterize()
-
(context menu command)
- cache()
-
(context menu command)
todo: type_for_user (for the GUI) todo: alpha_for_user (for the GUI)
SEE ALSO
- Gtk2::Ex::Geo::Glue
-
Module for glueing widgets into a GIS.
- Gtk2::Ex::Geo::Overlay
-
A Gtk2 widget for a visual overlay of geospatial data.
- Gtk2::Ex::Geo::Renderer
-
A Gtk2::Gdk::Pixbuf made from spatial data
- Geo::Raster
-
Perl extension for raster algebra
- Geo::Vector
-
Perl extension for geospatial vectors
- Gtk2::Ex::Geo::Composite
-
A set of geospatial layers visualized together
- Gtk2::Ex::Geo::TemporalRaster
-
A raster timeseries
- Gtk2::Ex::Geo::GDALDialog
-
Dialogs for raster (gdal) layers
- Gtk2::Ex::Geo::OGRDialog
-
Dialogs for vector (ogr) layers
This module should be discussed in geo-perl@list.hut.fi.
The homepage of this module is http://libral.sf.net.
AUTHOR
Ari Jolma, <ari.jolma _at_ tkk.fi>
COPYRIGHT AND LICENSE
Copyright (C) 2005 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.