Geo::GDAL::FFI::Layer - A collection of vector features in GDAL
A set of (vector) features having a same schema (the same Defn object). Obtain a layer object by the CreateLayer or GetLayer method of a vector dataset object.
my $defn = $layer->GetDefn;
Returns the FeatureDefn object for this layer.
$layer->ResetReading;
my $feature = $layer->GetNextFeature;
my $feature = $layer->GetFeature($fid);
$layer->SetFeature($feature);
$layer->CreateFeature($feature);
$layer->DeleteFeature($fid);
Returns an array ref with [minx, miny, maxx, maxy]. Argument is a boolean to force calculation even if it is expensive.
$result = $layer-><Method>($method, $args);
Runs the <method> algorithm between layer and method layer. Named arguments are the following.
Result
Optional, allows the user to define the result layer.
Options
Optional, allows the user to define the options (see GDAL docs).
Progress
Optional, the progress indicator callback.
ProgressData
Optional, data for the progress callback.
This software is released under the Artistic License. See perlartistic.
Ari Jolma - Ari.Jolma at gmail.com
Geo::GDAL::FFI
Alien::gdal, FFI::Platypus, http://www.gdal.org
To install Geo::GDAL::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::GDAL::FFI
CPAN shell
perl -MCPAN -e shell install Geo::GDAL::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.