Inheritance diagram for Geo::OGR::FeatureDefn:
Public Class Methods | |
Geo::OGR::FeatureDefn | new (scalar name=undef) |
Geo::OGR::FeatureDefn | create (hash schema) |
Public Object Methods | |
hashref | Schema (hash schema) |
scalar | GetName () |
scalar | GetFieldCount () |
Geo::OGR::FieldDefn | GetFieldDefn (scalar index) |
scalar | GetFieldIndex (scalar name) |
AddFieldDefn (scalar defn) | |
scalar | GeometryType (scalar geometry_type) |
scalar | GeometryIgnored (scalar IgnoreState) |
scalar | StyleIgnored (scalar IgnoreState) |
Geo::OGR::FeatureDefn::AddFieldDefn | ( | scalar | defn | ) |
defn | a Geo::OGR::FieldDefn object |
Geo::OGR::FeatureDefn Geo::OGR::FeatureDefn::create | ( | hash | schema | ) |
Example usage:
$fd = Geo::OGR::FeatureDefn->create( Name => "name", GeometryType => "Polygon", Fields => [{ Name => 'field1', Type => 'String' }] );
schema | The schema for the new feature definition, as in Geo::OGR::FeatureDefn::Schema. |
scalar Geo::OGR::FeatureDefn::GeometryIgnored | ( | scalar | IgnoreState | ) |
scalar Geo::OGR::FeatureDefn::GeometryType | ( | scalar | geometry_type | ) |
Get or set the geometry type.
geometry_type | [optional] one of @Geo::OGR::Geometry::GEOMETRY_TYPES |
scalar Geo::OGR::FeatureDefn::GetFieldCount | ( | ) |
Geo::OGR::FieldDefn Geo::OGR::FeatureDefn::GetFieldDefn | ( | scalar | index | ) |
index | the index (0..field_count-1) of the field |
scalar Geo::OGR::FeatureDefn::GetFieldIndex | ( | scalar | name | ) |
name |
scalar Geo::OGR::FeatureDefn::GetName | ( | ) |
Geo::OGR::FeatureDefn Geo::OGR::FeatureDefn::new | ( | scalar | name = undef |
) |
hashref Geo::OGR::FeatureDefn::Schema | ( | hash | schema | ) |
Get or set the schema. The schema is a hash (Name => name, GeometryType => geometry_type, Fields => [list of Geo::OGR::FieldDefn objects or hashrefs from which such can be created (see Geo::OGR::FieldDefn::create)]. The Name cannot be set and the Fields are added to the schema. Fields is an array of hashrefs that contain schemas of FieldDefns. In addition, in the 'get' form of the function, each field hash contains key 'Index', whose value is the index of the field.
schema | [optional] |
scalar Geo::OGR::FeatureDefn::StyleIgnored | ( | scalar | IgnoreState | ) |