Geoinformatica  0.90
Geo::Raster::Layer Class Reference

A subclass of Gtk2::Ex::Geo::Layer and Geo::Raster. More...

+ Inheritance diagram for Geo::Raster::Layer:
+ Collaboration diagram for Geo::Raster::Layer:

Classes

class  Dialogs
 A helper module to bring in the GDAL dialogs in Glade XML. More...
 

Public Member Functions

public method registration ()
 
public method open_wms ()
 
public method open_raster ()
 
public method save_all_rasters ()
 
public method upgrade ()
 
public method new ()
 
public method DESTROY ()
 
public method defaults ()
 
public method save ()
 
public method type ()
 
public method supported_palette_types ()
 
public method color_table ()
 
public method supported_symbol_types ()
 
public method open_properties_dialog ()
 
public method open_features_dialog ()
 
public method menu_items ()
 
public method render ()
 
public method statusbar_info ()
 
public method open_copy_dialog ()
 
public method open_polygonize_dialog ()
 
public method epsg_help ()
 
- Public Member Functions inherited from Geo::Raster
public Geo::Raster interpolate (hash params)
 Interpolate values for nodata cells. More...
 
public Geo::Raster dijkstra (array cell)
 Computes a cost-to-go raster for a given cost raster and a target cell. More...
 
public Geo::Raster colored_map ()
 Attempts to use the smallest possible number of integers for the zones in the raster. More...
 
public Geo::Raster applytempl (listref templ, scalar new_val)
 Apply a modifying template on the raster. More...
 
public Geo::Vector polygonize (hash params)
 Polygonizes the raster into a polygon OGR layer. More...
 
public Geo::Raster ca_step (array k)
 Perform a cellular automata step. More...
 
public Geo::Raster focal_sum (listref mask, array cell)
 A focal sum. More...
 
public Geo::Raster focal_mean (listref mask, array cell)
 A focal mean. More...
 
public Geo::Raster focal_variance (listref mask, array cell)
 A focal variance. More...
 
public Geo::Raster focal_count (listref mask, array cell)
 A focal count of data cells. More...
 
public Geo::Raster focal_count_of (listref mask, scalar value, array cell)
 A focal count of values. More...
 
public method focal_range ()
 
public method spread ()
 
public method spread_random ()
 
public array variogram (scalar max_lag, scalar lags)
 Computes a variogram from the raster. More...
 
public method count ()
 
public method sum ()
 
public method mean ()
 
public method variance ()
 
public Geo::Raster frame (scalar with)
 Change the borders to the given value. More...
 
public Geo::Raster convolve (listref kernel)
 Compute a convolution. More...
 
public listref line (array p, array q, scalar value)
 Get or set the cell values along a line. More...
 
public listref transect (Geo::GDAL::Geometry geom, scalar delta)
 
public listref rect (array p, array q, scalar value)
 Get or set the cells of a rectangle. More...
 
public listref circle (array center, scalar r, scalar value)
 Get or set the cells within a circle. More...
 
public void floodfill (array cell, scalar value, scalar connectivity)
 Floodfill a zone. More...
 
public Geo::Raster thin (hash opt)
 Thin lines in the raster. More...
 
public Geo::Raster borders (hash params)
 Borders between zones. More...
 
public Geo::Raster areas (scalar k)
 Marks if cell belong to an area. More...
 
public Geo::Raster connect ()
 Connects broken lines. More...
 
public Geo::Raster number_areas (scalar connectivity)
 Numbers all areas with a unique integer number, even if some areas have the same values. More...
 
public Geo::Raster transform (listref tr, scalar M, scalar N, scalar pick, scalar value)
 Transformation (of type conversion, because just a mathematical transformation) of the raster grid. More...
 
public method gdal_open ()
 
public Geo::GDAL::Dataset dataset ()
 Return a dataset object associated with the raster. More...
 
public Geo::GDAL::Band band ()
 Return a band object associated with the raster. More...
 
public Geo::Raster cache ()
 Creates a new grid from the GDAL source. More...
 
public void save (scalar filename, scalar format)
 Save libral raster into a pair of hdr and bil files. More...
 
public void print ()
 Prints the values of the raster grid into stdout. More...
 
public void dump (scalar to)
 Prints the data (but not metadata, like size or other attributes of the grid) of the raster into a file or stdout. More...
 
public void restore (scalar from)
 Reads the data (but not metadata, like size or other attributes of the grid) of the raster from a file or stdin. More...
 
public void save_as_image (scalar filename, scalar type, listref option_keys, listref option_values)
 Saves the grid as image (*.jpeg, *.png, *.tiff, *.ico or *.bmp). More...
 
public method as_string ()
 
public method bool ()
 
public method shallow_copy ()
 
public Geo::Raster neg ()
 Unary minus. Multiplies this raster with -1. More...
 
private method _typeconversion ()
 
public Geo::Raster plus (Geo::Raster second)
 Adds a raster to this raster. More...
 
public Geo::Raster minus (Geo::Raster second, scalar reversed)
 Subtracts a raster from this raster. More...
 
public Geo::Raster times (Geo::Raster second)
 Multiplies the cell values of this raster with the cell values of another raster. More...
 
public Geo::Raster over (Geo::Raster second, scalar reversed)
 Divides this raster with another raster. More...
 
public method over2 ()
 
public Geo::Raster modulo (Geo::Raster second, scalar reversed)
 Computes the modulus (remainder of division, Perl operator %) of this raster and an integer raster. More...
 
public Geo::Raster power (Geo::Raster exponent, scalar reversed)
 Computes the power (Perl operator **) of this raster an exponent raster. More...
 
public Geo::Raster add (Geo::Raster second)
 Adds another raster to this raster. More...
 
public Geo::Raster subtract (Geo::Raster second)
 Subtracts from the cell value the respective cell values of the given raster. More...
 
public Geo::Raster multiply_by (Geo::Raster second)
 Multiplies the cell values of this raster with the respective cell values of the given raster. More...
 
public Geo::Raster divide_by (Geo::Raster second)
 Divides the cell values of this raster with the respective cell values of the other raster. More...
 
public Geo::Raster modulus_with (Geo::Raster second)
 Computes the modulus of each cell value of this raster and the respective cell value of the given integer raster. More...
 
public Geo::Raster to_power_of (Geo::Raster second)
 Raises the cell values to the power of the respective cell values of the given raster. More...
 
public Geo::Raster atan2 (Geo::Raster second)
 Calculates at each cell the arc-tangent of this and the second raster. More...
 
public Geo::Raster cos ()
 Calculates the cosine at each cell. More...
 
public Geo::Raster sin ()
 Calculates the sine at each cell. More...
 
public Geo::Raster exp ()
 Calculates the exponential function at each cell. More...
 
public Geo::Raster abs ()
 Calculates the absolute value at each cell. More...
 
public Geo::Raster sqrt ()
 Calculates the square root at each cell. More...
 
public Geo::Raster round ()
 Rounds the value at each cell. More...
 
public Geo::Raster acos ()
 Calculates the arc-cosine at each cell. More...
 
public Geo::Raster atan ()
 Calculates the arc-tangent at each cell. More...
 
public Geo::Raster ceil ()
 Calculates at each cell the smallest integer not less than the value. More...
 
public Geo::Raster cosh ()
 Calculates at each cell the hyperbolic cosine of the value. More...
 
public Geo::Raster floor ()
 Calculates at each cell the largest integer less than or equal to the value. More...
 
public Geo::Raster log ()
 Calculates the logarithm at each cell. More...
 
public Geo::Raster log10 ()
 Calculates the base-10 logarithm at each cell. More...
 
public Geo::Raster sinh ()
 Calculates the hyperbolic sine at each cell. More...
 
public Geo::Raster tan ()
 Calculates the tangent at each cell. More...
 
public Geo::Raster tanh ()
 Calculates the hyperbolic tangent at each cell. More...
 
public Geo::Raster lt (Geo::Raster second, scalar reversed)
 Performs at each cell the "less than" comparison on this and the second raster. More...
 
public Geo::Raster gt (Geo::Raster second, scalar reversed)
 Performs at each cell the "greater than" comparison on this and the second raster. More...
 
public Geo::Raster le (Geo::Raster second, scalar reversed)
 Performs at each cell the "greater than or equal to" comparison on this and the second raster. More...
 
public Geo::Raster ge (Geo::Raster second, scalar reversed)
 Performs at each cell the "greater than or equal to" comparison on this and the second raster. More...
 
public Geo::Raster eq (Geo::Raster second)
 Performs at each cell the "equal to" comparison on this and the second raster. More...
 
public Geo::Raster ne (Geo::Raster second)
 Performs at each cell the "not equal to" comparison on this and the second raster. More...
 
public Geo::Raster cmp (Geo::Raster second, scalar reversed)
 Performs at each cell the numeric comparison on this and the second raster. More...
 
public Geo::Raster not ()
 Evaluate at each cell the logical not. More...
 
public Geo::Raster and (Geo::Raster second)
 Evaluate at each cell the logical and on this and the second raster. More...
 
public Geo::Raster or (Geo::Raster second)
 Evaluate at each cell the logical or on this and the second raster. More...
 
public Geo::Raster nor (scalar second)
 Evaluates at each cell the logical nor on this and the second raster. More...
 
public method fit_surface ()
 
public Geo::Raster aspect ()
 Estimate aspects from a DEM. More...
 
public Geo::Raster slope (scalar z_factor)
 Estimate the slope from a DEM. More...
 
public Geo::Raster fdg (hash params)
 Compute a flow direction raster (FDG) from a DEM. More...
 
public method many2ds ()
 
public method movecell ()
 
public method dirsum ()
 
public Geo::Raster drain_flat_areas (Geo::Raster dem, hash params)
 Resolve the flow direction for flat areas in a FDG. More...
 
public Geo::Raster drain_depressions (Geo::Raster dem)
 Scan FDG once and drain the depressions that are found. More...
 
public method outlet ()
 
public Geo::Raster ucg ()
 Compute an upslope cell raster (UCG) from a FDG. More...
 
public method upstream ()
 
public Geo::Raster raise_pits (hash params)
 Raise each pit cell to the level of its lowest neighbor in a DEM. More...
 
public method lower_peaks (hash params)
 Lower each peak cell to the level of its highest neighbor in a DEM. More...
 
public Geo::Raster depressions (scalar inc_m)
 Return depressions defined by a FDG. More...
 
public scalar fill_depressions (hash params)
 Fill the depressions in a DEM. More...
 
public scalar breach (hash params)
 Breach the depressions in a DEM. More...
 
public Geo::Raster path (array cell, Geo::Raster stop)
 Return the flow path from the given FDG cell onwards. More...
 
public Geo::Raster path_length (Geo::Raster stop, Geo::Raster op)
 Compute a path length raster from a FDG. More...
 
public Geo::Raster path_sum (Geo::Raster stop, Geo::Raster op)
 Compute a cost-to-go raster from a FDG. More...
 
public Geo::Raster upslope_count (Geo::Raster mask, scalar include_self)
 Compute the count of the upslope cells in a FDG. More...
 
public Geo::Raster upslope_sum (Geo::Raster a, scalar include_self)
 Compute the sum of the values of the upslope cells in a raster (FDG method). More...
 
public Geo::Raster kill_extra_outlets (Geo::Raster lakes, Geo::Raster uag)
 Checks and possibly correct the sanity of the flow paths in a terrain with lakes (FDG method). More...
 
public Geo::Raster catchment (Geo::Raster catchment, array cell, scalar m)
 Return the catchment area of the given cell (FDG method). More...
 
public Geo::Raster prune (Geo::Raster fdg, Geo::Raster lakes, scalar min_length, array cell)
 Delete streams that are shorter than min_length in a streams raster. More...
 
public Geo::Raster number_streams (Geo::Raster fdg, Geo::Raster lakes, array cell, scalar id)
 Number streams in a streams raster with unique id. More...
 
public Geo::Raster subcatchments (Geo::Raster fdg, Geo::Raster lakes, array cell, scalar head)
 Divide catchments into subcatchments defined by a streams raster. More...
 
public method vectorize_catchment (hashref topology, Geo::Raster streams, Geo::Raster lakes, hash params)
 Save the subcatchment structure as a vector layer (a subcatchments raster method). More...
 
public method segment ()
 
public method route (Geo::Raster dem, Geo::Raster fdg, Geo::Raster k, scalar r)
 Route water downstream (a water state raster method). More...
 
public void vectorize_streams (Geo::Raster fdg, array cell)
 Create an OGR layer from a streams raster. More...
 
public method compare_dem_derived_ws_attribs ()
 
public hashref zones (Geo::Raster zones)
 Returns the values from the raster in a hash indexed by the zones. More...
 
public hashref zonal_fct (Geo::Raster zones, scalar fct)
 Calculates a statistic of zonal values. More...
 
public hashref zonal_count (Geo::Raster zones)
 Calculates the amount of cells in each zone. More...
 
public hashref zonal_sum (Geo::Raster zones)
 Calculates the sum of this rasters cells for each zone. More...
 
public hashref zonal_min (Geo::Raster zones)
 Calculates the minimum of this rasters cells for each zone. More...
 
public hashref zonal_max (Geo::Raster zones)
 Calculates the maximum of this rasters cells for each zone. More...
 
public hashref zonal_mean (Geo::Raster zones)
 Calculates the mean of this rasters cells for each zone. More...
 
public hashref zonal_variance (Geo::Raster zones)
 Calculates the variance of this rasters cells for each zone. More...
 
public method grow_zones ()
 
public method dl_load_flags ()
 
public method AUTOLOAD ()
 
public method from_piddle ()
 
private method _new_grid ()
 
private method _interpret_datatype ()
 
public Geo::Raster new ()
 Create a new raster. More...
 
public method height ()
 
public method width ()
 
public method DESTROY ()
 
private method _with_decimal_point ()
 
public method world ()
 
public method overlayable (Geo::Raster other)
 Test if two rasters are overlayable. More...
 
public method copy_bounding_box_to ()
 
public method flip_horizontal ()
 
public method flip_vertical ()
 
public boolean cell_in (array cell)
 Whether a cell is in this raster. More...
 
public boolean point_in (array point)
 Whether a point is in the bounding box of this raster. More...
 
public method g2w ()
 
public method w2g ()
 
public method ga2wa ()
 
public method wa2ga ()
 
public method mask (Geo::Raster mask)
 Set or remove the mask. More...
 
public void set (array cell, scalar value)
 Set the value of a cell. More...
 
public method get ()
 
public method cell ()
 
public method point ()
 
public Geo::Raster data ()
 Return a raster indicating data and nodata cells. More...
 
public method schema ()
 
public method has_field ()
 
public method table ()
 
private method _type_name ()
 
public list value_range (hash params)
 Returns the minimum and maximum values of the raster. More...
 
private method _attributes ()
 
private method _datatype ()
 
public method datatype ()
 
public method data_type ()
 
public method size ()
 
public method cell_size ()
 
public method nodata_value ()
 
public Geo::Raster min (scalar param)
 
public Geo::Raster max (scalar param)
 
public Geo::Raster random ()
 Return a random part of values of the values of this raster. More...
 
public Geo::Raster cross (Geo::Raster b)
 Cross product of rasters. More...
 
public Geo::Raster if (Geo::Raster b, Geo::Raster c, Geo::Raster d)
 If...then statement construct for rasters. More...
 
public Geo::Raster bufferzone (scalar z, scalar w)
 Creates buffer zones around cells having the given value. More...
 
public Geo::Raster distances ()
 Computes and stores into nodata cells the distance (in world units) to the nearest data cell. More...
 
public Geo::Raster directions ()
 Computes and stores into nodata cells the direction to the nearest data cell into nodata cells. More...
 
public Geo::Raster clip (scalar i1, scalar j1, scalar i2, scalar j2)
 Clips a part of the raster according to a given rectangle or the real world boundaries of a given raster. More...
 
public void assign (Geo::Raster src)
 Assigns the values from an another raster to this. More...
 
public void clip_to (Geo::Raster like)
 Creates a raster like the given raster and assigns to that raster values from this raster. More...
 
public listref array ()
 Creates a list of the rasters values. More...
 
public listref histogram (scalar bins)
 Calculates the histogram values for the given bins. More...
 
public hashref contents ()
 Returns the histogram of an integer raster in a hash. More...
 
public Geo::Raster function (scalar fct)
 Evaluates a function and assigns the result to cell. More...
 
public Geo::Raster map (map)
 Reclassify an integer raster. More...
 
public hashref neighbors ()
 Compute a neighborhood hash for an integer raster. More...
 
- Public Member Functions inherited from Gtk2::Ex::Geo::Layer
public method registration ()
 A class method. Returns the dialogs and commands implemented by this layer class. More...
 
public method palette_types ()
 
public method symbol_types ()
 
public method label_placements ()
 
public method upgrade ()
 
public method new (hash params)
 A class method. Constructs a new layer object or blesses an object into a layer class. Calls defaults with the given parameters. More...
 
public method defaults (hash params)
 assigns default values to attributes The default values are hard-coded, but they can be overridden with given values. The given values are lower case. More...
 
public method DESTROY ()
 
public method close (scalar gui)
 Close and destroy all resources of this layer, as it has been removed from the GUI. More...
 
public method type ()
 
public method name ()
 
public method alpha ()
 
public method visible (scalar visible)
 Show or hide the layer. More...
 
public method got_focus (scalar gui)
 Called by the GUI when this layer has received the focus. More...
 
public method lost_focus (scalar gui)
 Called by the GUI when this layer has lost the focus. More...
 
public method border_color (scalar red, scalar green, scalar blue)
 Set or get the border color of the features. More...
 
public method inspect_data ()
 
public method open_properties_dialog ()
 
public void open_features_dialog (scalar gui, scalar soft_open)
 A request to invoke a features dialog for this layer object. More...
 
public arrayref menu_items ()
 Return menu items for the layer menu. More...
 
public method open_rules_dialog ()
 
public method open_symbols_dialog ()
 
public method open_colors_dialog ()
 
public method open_labeling_dialog ()
 
public method palette_type ()
 
public method supported_palette_types ()
 
public method symbol_type ()
 
public method supported_symbol_types ()
 
public method symbol_size ()
 
public method symbol_scale ()
 
public method hue_range ()
 
public method grayscale_subtype ()
 
public method invert_scale ()
 
public method grayscale_color ()
 
public method symbol_field ()
 
public method single_color ()
 
public method color_scale ()
 
public method color_field ()
 
public method color_table ()
 
public method color (scalar index, array XRGBA)
 Get or set the single color or a color in a color table or bins. The index is an index to the table and not a color table index or upper limit of a bin (the X is) and is not to be given to set the single color. More...
 
public method add_color (scalar index, array XRGBA)
 Add color to color table or color bins at given index. More...
 
public method remove_color (scalar index)
 Remove color from color table or color bins at given index. More...
 
public method save_color_table (scalar filename)
 Saves the layers color table into the file, which name is given as parameter. More...
 
public method color_bins ()
 
public method save_color_bins (scalar filename)
 Saves the layers color bins into the file, which name is given as parameter. More...
 
public hashref labeling (scalar labeling)
 Sets the labeling for the layer. More...
 
public method select (hash params)
 Select features based on user input. More...
 
public method selected_features ()
 
public method features ()
 
public method has_features_with_borders ()
 
public method schema ()
 Return the schema of the layer as an anonymous hash. More...
 
public method value_range ()
 
public method render_selection (scalar gc)
 Render the selection using the given graphics context. More...
 
public void render (scalar pb, scalar cr, scalar overlay, scalar viewport)
 A request to render the data of the layer onto a surface. More...
 
public $string statusbar_info ()
 A request for an information string for the statusbar. More...
 
public method bootstrap_dialog ()
 
public method hide_dialog (scalar dialog)
 Hide the given (name of a) dialog. More...
 
public method dialog_visible ()
 

Public Attributes

public method =>\&open_raster()
 

Static Public Attributes

static hash EXPORT_TAGS
 
- Static Public Attributes inherited from Geo::Raster
static scalar INTEGER_GRID
 
static scalar REAL_GRID
 
static hash EXPORT_TAGS
 
static scalar AUTOLOAD
 
static hash dispatch
 
- Static Public Attributes inherited from Gtk2::Ex::Geo::Layer
static hash EXPORT_TAGS
 

Additional Inherited Members

- Static Public Member Functions inherited from Geo::Raster
static public boolean exists (scalar filename)
 Checks if save with the same filename would overwrite an existing file. More...
 
static public log_base (scalar base, scalar value)
 Calculates the logarithm with a desired base. More...
 

Detailed Description

A subclass of Gtk2::Ex::Geo::Layer and Geo::Raster.

Definition at line 27 of file Layer.pm.

Member Function Documentation

public method Geo::Raster::Layer::color_table ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::defaults ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::DESTROY ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::epsg_help ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::menu_items ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::new ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::open_copy_dialog ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::open_features_dialog ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::open_polygonize_dialog ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::open_properties_dialog ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::open_raster ( )

Undocumented Method

Code:
click to view

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::open_wms ( )

Undocumented Method

Code:
click to view

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::registration ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::render ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::save ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::save_all_rasters ( )

Undocumented Method

Code:
click to view

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::statusbar_info ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::supported_palette_types ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::supported_symbol_types ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::type ( )

Undocumented Method

Code:
click to view
public method Geo::Raster::Layer::upgrade ( )

Undocumented Method

Code:
click to view

The documentation for this class was generated from the following file: