Geo::GDAL::FFI::FeatureDefn(3pm) | User Contributed Perl Documentation | Geo::GDAL::FFI::FeatureDefn(3pm) |
Geo::GDAL::FFI::FeatureDefn - A GDAL feature schema
$defn = Geo::GDAL::FFI::FeatureDefn->new({Fields => [...], GeometryType => 'Point'});
Create a new FeatureDefn object.
The named arguments (optional) are the following.
Returns the definition as a perl data structure.
my $field_defn = $defn->GetFieldDefn($name);
Get the specified non spatial field object. If the argument is explicitly an integer and not a string, it is taken as the field index.
my @field_defns = $defn->GetFieldDefns;
my $geom_field_defn = $defn->GetGeomFieldDefn($name);
Get the specified spatial field object. If the argument is explicitly an integer and not a string, it is taken as the field index.
my @geom_field_defns = $defn->GetGeomFieldDefns;
$defn->SetGeometryIgnored($arg);
Ignore the first geometry field when reading features from a layer. To not ignore the first geometry field call this method with defined but false (0) argument.
my $is = $defn->IsGeometryIgnored;
Is the first geometry field ignored when reading features from a layer.
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>
2024-04-01 | perl v5.38.2 |