List of all members.
Member Function Documentation
Geo::OGR::Feature::DumpReadable |
( |
| ) |
|
scalar Geo::OGR::Feature::Equal |
( |
scalar |
feature | ) |
|
- Parameters:
-
- Returns:
- boolean
scalar Geo::OGR::Feature::FID |
( |
scalar |
fid | ) |
|
- Parameters:
-
fid | [optional] the id to set for this feature |
- Returns:
- integer the id of this feature
Get a copy of the geometry as a new Geo::OGR::Geometry object and/or copy the geometry into the feature.
- Note:
- a.k.a. SetGeometry (only copy into)
- Parameters:
-
- Returns:
- a new Geo::OGR::Geometry object in a non-void context
scalar Geo::OGR::Feature::GetFID |
( |
| ) |
|
- Returns:
- integer the feature id
list Geo::OGR::Feature::GetField |
( |
scalar |
field | ) |
|
- Note:
- A number of GetFieldAs* methods exist but they are not documented. Syntax $feature->{field} can be used to access the field (v1.9.0)
- Parameters:
-
field | the index (0..Count-1) or the name of the field |
- Returns:
- the value of the field, which may be a scalar or a list, depending on the field type.
scalar Geo::OGR::Feature::GetFieldCount |
( |
| ) |
|
- Parameters:
-
param | the index (0..count-1) or the name of the field |
- Returns:
- a new Geo::OGR::FieldDefn object
scalar Geo::OGR::Feature::GetFieldIndex |
( |
scalar |
name | ) |
|
- Parameters:
-
name | the name of the field |
- Returns:
- integer the index of the field (0..Count-1)
scalar Geo::OGR::Feature::GetFieldType |
( |
scalar |
field | ) |
|
- Parameters:
-
field | the index (0..count-1) or the name of the field |
- Returns:
- one of field types
scalar Geo::OGR::Feature::GetStyleString |
( |
| ) |
|
scalar Geo::OGR::Feature::IsFieldSet |
( |
scalar |
field | ) |
|
- Parameters:
-
field | the index (0..Count-1) or the name of the field |
- Returns:
- boolean
scalar Geo::OGR::Feature::ReferenceGeometry |
( |
scalar |
geometry | ) |
|
Create a new Geo::OGR::Geometry object, which references the geometry within the feature and/or create a reference to the argument geometry within the feature. This method maintains a link between the two objects and will not let the feature object be destroyed while the geometry object exists. Use with caution.
- Note:
- a.k.a. SetGeometryDirectly (only reference in), GetGeometry (only create with a reference), GetGeometryRef (only create with a reference and do not create the link between the objects).
- Parameters:
-
- Returns:
- a new Geo::OGR::Geometry object in a non-void context
hashref Geo::OGR::Feature::Row |
( |
hash |
row | ) |
|
Get and/or set the data of the feature. The key of the key value, pairs of the row is the field name. Special names FID and Geometry are used for feature id and Geometry respectively. The geometry is a Geo::OGR::Geometry object whose data is or will become owned by the feature; or data from which a geometry object can be created (a hashref that is fed to Geo::OGR::Geometry::create). It is ok to set only a subset of the fields, those fields whose keys do not exist are left unchanged.
- Parameters:
-
- Returns:
hashref Geo::OGR::Feature::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]. The Name and GeometryType cannot be set and the Fields are added to the schema. Fields is an array of hashrefs that contain schemas of FieldDefns
- Parameters:
-
- Returns:
Geo::OGR::Feature::SetFID |
( |
scalar |
fid | ) |
|
Geo::OGR::Feature::SetField |
( |
scalar |
field, |
|
|
list |
value |
|
) |
| |
- Note:
- Syntax $feature->{field} can be used to access the field (v1.9.0)
- Parameters:
-
field | the index (0..Count-1) or the name of the field |
value | is a string, integer, double, a list (year, month, day), a list (hour, minute, second, tzflag), a list (year, month, day, hour, minute, second, tzflag), or a list of integers, doubles, or strings. |
- Note:
- If value is not given or is undefined this method unsets the field.
Geo::OGR::Feature::SetFrom |
( |
scalar |
other, |
|
|
scalar |
forgiving = 1 , |
|
|
hashref |
map |
|
) |
| |
- Parameters:
-
other | a Geo::OGR::Feature object |
forgiving | [optional] set to false if the operation should not continue if output fields do not match some of the source fields |
map | [optional] a mapping from output field indexes to source fields, include into the hash all field indexes of this feature which should be set |
Geo::OGR::Feature::SetStyleString |
( |
scalar |
string | ) |
|
scalar Geo::OGR::Feature::StyleString |
( |
scalar |
string | ) |
|
list Geo::OGR::Feature::Tuple |
( |
list |
tuple | ) |
|
Get and/set the data of the feature. The order of the data in the tuple is: FID, Geometry, fields in their order. The geometry is a Geo::OGR::Geometry object whose data is or will become owned by the feature; or data from which a geometry object can be created (a hashref that is fed to Geo::OGR::Geometry::create). It is ok to leave FID and Geometry undefined, they are set only if they are defined.
- Parameters:
-
- Returns:
Geo::OGR::Feature::UnsetField |
( |
scalar |
field | ) |
|
- Note:
- Field value can be unset by calling SetField without parameters or with an undefined argument.
- Parameters:
-
field | the index (0..Count-1) or the name of the field |
The documentation for this class was generated from the following file: