1
1
%extend OGRFeatureDefnShadow {
2
2
// File: ogrfeaturedefn_8cpp.xml
3
3
%feature("docstring") CPL_CVSID "CPL_CVSID(\"$Id: ogrfeaturedefn.cpp
4
17587 2009-08-27 17:56:01Z warmerdam $\") ";
4
22900 2011-08-07 20:47:41Z rouault $\") ";
6
6
%feature("docstring") Create "OGRFeatureDefnH OGR_FD_Create(const
106
106
Add a new field definition to the passed feature definition.
108
To add a new field definition to a layer definition, do not use this
109
function directly, but use OGR_L_CreateField() instead.
108
111
This function should only be called while there are no OGRFeature
109
112
objects in existance based on this OGRFeatureDefn. The OGRFieldDefn
110
113
passed in is copied, and remains the responsibility of the caller.
112
115
This function is the same as the C++ method
113
OGRFeatureDefn::AddFieldDefn.
116
OGRFeatureDefn::AddFieldDefn().
121
124
hNewField: handle to the new field definition. ";
126
%feature("docstring") DeleteFieldDefn "OGRErr
127
OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
129
Delete an existing field definition.
131
To delete an existing field definition from a layer definition, do not
132
use this function directly, but use OGR_L_DeleteField() instead.
134
This method should only be called while there are no OGRFeature
135
objects in existance based on this OGRFeatureDefn.
137
This method is the same as the C++ method
138
OGRFeatureDefn::DeleteFieldDefn().
143
hDefn: handle to the feature definition.
145
iField: the index of the field defintion.
147
OGRERR_NONE in case of success.
151
%feature("docstring") ReorderFieldDefn "OGRErr
152
OGR_FD_ReorderFieldDefn(OGRFeatureDefnH hDefn, int *panMap)
154
Reorder the field definitions in the array of the feature definition.
156
To reorder the field definitions in a layer definition, do not use
157
this function directly, but use OGR_L_ReorderFields() instead.
159
This method should only be called while there are no OGRFeature
160
objects in existance based on this OGRFeatureDefn.
162
This method is the same as the C++ method
163
OGRFeatureDefn::ReorderFieldDefns().
168
hDefn: handle to the feature definition.
170
panMap: an array of GetFieldCount() elements which is a permutation
171
of [0, GetFieldCount()-1]. panMap is such that, for each field
172
definition at position i after reordering, its position before
173
reordering was panMap[i].
175
OGRERR_NONE in case of success.
123
179
%feature("docstring") GetGeomType "OGRwkbGeometryType
124
180
OGR_FD_GetGeomType(OGRFeatureDefnH hDefn)
230
286
the field index, or -1 if no match found. ";
288
%feature("docstring") IsGeometryIgnored "int
289
OGR_FD_IsGeometryIgnored(OGRFeatureDefnH hDefn)
291
Determine whether the geometry can be omitted when fetching features.
293
This function is the same as the C++ method
294
OGRFeatureDefn::IsGeometryIgnored().
299
hDefn: hanlde to the feature definition on witch OGRFeature are based
304
%feature("docstring") SetGeometryIgnored "void
305
OGR_FD_SetGeometryIgnored(OGRFeatureDefnH hDefn, int bIgnore)
307
Set whether the geometry can be omitted when fetching features.
309
This function is the same as the C++ method
310
OGRFeatureDefn::SetGeometryIgnored().
315
hDefn: hanlde to the feature definition on witch OGRFeature are based
318
bIgnore: ignore state ";
320
%feature("docstring") IsStyleIgnored "int
321
OGR_FD_IsStyleIgnored(OGRFeatureDefnH hDefn)
323
Determine whether the style can be omitted when fetching features.
325
This function is the same as the C++ method
326
OGRFeatureDefn::IsStyleIgnored().
331
hDefn: handle to the feature definition on which OGRFeature are based
336
%feature("docstring") SetStyleIgnored "void
337
OGR_FD_SetStyleIgnored(OGRFeatureDefnH hDefn, int bIgnore)
339
Set whether the style can be omitted when fetching features.
341
This function is the same as the C++ method
342
OGRFeatureDefn::SetStyleIgnored().
347
hDefn: hanlde to the feature definition on witch OGRFeature are based
350
bIgnore: ignore state ";
b'\\ No newline at end of file'