add_feature_from_defn
fio.GeomSource.add_feature_from_defn(geom, in_ft, out_ft)Add a feature to a layer by using properties from another.
Only in write ('w') mode.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| geom | ogr.Geometry |
The geometry of the new feature. Defined by OGR. | required |
| in_ft | ogr.Feature |
The input feature. The properties and fieldinfo are used from this one to set information on the new feature. Defined by OGR. | required |
| out_ft | ogr.Feature |
New feature. Empty. Defined by OGR. | required |