The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Geo::GDAL::FFI::Layer - A collection of vector features in GDAL

SYNOPSIS

DESCRIPTION

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.

METHODS

GetDefn

 my $defn = $layer->GetDefn;

Returns the FeatureDefn object for this layer.

ResetReading

 $layer->ResetReading;

GetNextFeature

 my $feature = $layer->GetNextFeature;

GetFeature

 my $feature = $layer->GetFeature($fid);

SetFeature

 $layer->SetFeature($feature);

CreateFeature

 $layer->CreateFeature($feature);

DeleteFeature

 $layer->DeleteFeature($fid);

Intersection, Union, SymDifference, Identity, Update, Clip, Erase

 $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.

LICENSE

This software is released under the Artistic License. See perlartistic.

AUTHOR

Ari Jolma - Ari.Jolma at gmail.com

SEE ALSO

Geo::GDAL::FFI

Alien::gdal, FFI::Platypus, http://www.gdal.org