1 %extend OGRFeatureShadow {
2 // File: ogrfeature_8cpp.xml
3 %feature("docstring")  Create "OGRFeatureH
4 OGR_F_Create(OGRFeatureDefnH hDefn)
5 
6 Feature factory.
7 
8 Note that the OGRFeature will increment the reference count of its
9 defining OGRFeatureDefn. Destruction of the OGRFeatureDefn before
10 destruction of all OGRFeatures that depend on it is likely to result
11 in a crash.
12 
13 This function is the same as the C++ method OGRFeature::OGRFeature().
14 
15 Parameters:
16 -----------
17 
18 hDefn:  handle to the feature class (layer) definition to which the
19 feature will adhere.
20 
21 a handle to the new feature object with null fields and no geometry,
22 or, starting with GDAL 2.1, NULL in case out of memory situation. ";
23 
24 %feature("docstring")  Destroy "void OGR_F_Destroy(OGRFeatureH hFeat)
25 
26 Destroy feature.
27 
28 The feature is deleted, but within the context of the GDAL/OGR heap.
29 This is necessary when higher level applications use GDAL/OGR from a
30 DLL and they want to delete a feature created within the DLL. If the
31 delete is done in the calling application the memory will be freed
32 onto the application heap which is inappropriate.
33 
34 This function is the same as the C++ method
35 OGRFeature::DestroyFeature().
36 
37 Parameters:
38 -----------
39 
40 hFeat:  handle to the feature to destroy. ";
41 
42 %feature("docstring")  GetDefnRef "OGRFeatureDefnH
43 OGR_F_GetDefnRef(OGRFeatureH hFeat)
44 
45 Fetch feature definition.
46 
47 This function is the same as the C++ method OGRFeature::GetDefnRef().
48 
49 Parameters:
50 -----------
51 
52 hFeat:  handle to the feature to get the feature definition from.
53 
54 a handle to the feature definition object on which feature depends.
55 ";
56 
57 %feature("docstring")  SetGeometryDirectly "OGRErr
58 OGR_F_SetGeometryDirectly(OGRFeatureH hFeat, OGRGeometryH hGeom)
59 
60 Set feature geometry.
61 
62 This function updates the features geometry, and operate exactly as
63 SetGeometry(), except that this function assumes ownership of the
64 passed geometry (even in case of failure of that function).
65 
66 This function is the same as the C++ method
67 OGRFeature::SetGeometryDirectly.
68 
69 This method has only an effect on the in-memory feature object. If
70 this object comes from a layer and the modifications must be
71 serialized back to the datasource, OGR_L_SetFeature() must be used
72 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
73 used afterwards.
74 
75 Parameters:
76 -----------
77 
78 hFeat:  handle to the feature on which to apply the geometry.
79 
80 hGeom:  handle to the new geometry to apply to feature.
81 
82 OGRERR_NONE if successful, or OGR_UNSUPPORTED_GEOMETRY_TYPE if the
83 geometry type is illegal for the OGRFeatureDefn (checking not yet
84 implemented). ";
85 
86 %feature("docstring")  SetGeometry "OGRErr
87 OGR_F_SetGeometry(OGRFeatureH hFeat, OGRGeometryH hGeom)
88 
89 Set feature geometry.
90 
91 This function updates the features geometry, and operate exactly as
92 SetGeometryDirectly(), except that this function does not assume
93 ownership of the passed geometry, but instead makes a copy of it.
94 
95 This function is the same as the C++ OGRFeature::SetGeometry().
96 
97 This method has only an effect on the in-memory feature object. If
98 this object comes from a layer and the modifications must be
99 serialized back to the datasource, OGR_L_SetFeature() must be used
100 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
101 used afterwards.
102 
103 Parameters:
104 -----------
105 
106 hFeat:  handle to the feature on which new geometry is applied to.
107 
108 hGeom:  handle to the new geometry to apply to feature.
109 
110 OGRERR_NONE if successful, or OGR_UNSUPPORTED_GEOMETRY_TYPE if the
111 geometry type is illegal for the OGRFeatureDefn (checking not yet
112 implemented). ";
113 
114 %feature("docstring")  StealGeometry "OGRGeometryH
115 OGR_F_StealGeometry(OGRFeatureH hFeat)
116 
117 Take away ownership of geometry.
118 
119 Fetch the geometry from this feature, and clear the reference to the
120 geometry on the feature. This is a mechanism for the application to
121 take over ownership of the geometry from the feature without copying.
122 Sort of an inverse to OGR_FSetGeometryDirectly().
123 
124 After this call the OGRFeature will have a NULL geometry.
125 
126 the pointer to the geometry. ";
127 
128 %feature("docstring")  GetGeometryRef "OGRGeometryH
129 OGR_F_GetGeometryRef(OGRFeatureH hFeat)
130 
131 Fetch a handle to feature geometry.
132 
133 This function is essentially the same as the C++ method
134 OGRFeature::GetGeometryRef() (the only difference is that this C
135 function honours OGRGetNonLinearGeometriesEnabledFlag())
136 
137 Parameters:
138 -----------
139 
140 hFeat:  handle to the feature to get geometry from.
141 
142 a handle to internal feature geometry. This object should not be
143 modified. ";
144 
145 %feature("docstring")  GetGeomFieldRef "OGRGeometryH
146 OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
147 
148 Fetch a handle to feature geometry.
149 
150 This function is the same as the C++ method
151 OGRFeature::GetGeomFieldRef().
152 
153 Parameters:
154 -----------
155 
156 hFeat:  handle to the feature to get geometry from.
157 
158 iField:  geometry field to get.
159 
160 a handle to internal feature geometry. This object should not be
161 modified.
162 
163 GDAL 1.11 ";
164 
165 %feature("docstring")  SetGeomFieldDirectly "OGRErr
166 OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH
167 hGeom)
168 
169 Set feature geometry of a specified geometry field.
170 
171 This function updates the features geometry, and operate exactly as
172 SetGeomField(), except that this function assumes ownership of the
173 passed geometry (even in case of failure of that function).
174 
175 This function is the same as the C++ method
176 OGRFeature::SetGeomFieldDirectly.
177 
178 Parameters:
179 -----------
180 
181 hFeat:  handle to the feature on which to apply the geometry.
182 
183 iField:  geometry field to set.
184 
185 hGeom:  handle to the new geometry to apply to feature.
186 
187 OGRERR_NONE if successful, or OGRERR_FAILURE if the index is invalid,
188 or OGR_UNSUPPORTED_GEOMETRY_TYPE if the geometry type is illegal for
189 the OGRFeatureDefn (checking not yet implemented).
190 
191 GDAL 1.11 ";
192 
193 %feature("docstring")  SetGeomField "OGRErr
194 OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
195 
196 Set feature geometry of a specified geometry field.
197 
198 This function updates the features geometry, and operate exactly as
199 SetGeometryDirectly(), except that this function does not assume
200 ownership of the passed geometry, but instead makes a copy of it.
201 
202 This function is the same as the C++ OGRFeature::SetGeomField().
203 
204 Parameters:
205 -----------
206 
207 hFeat:  handle to the feature on which new geometry is applied to.
208 
209 iField:  geometry field to set.
210 
211 hGeom:  handle to the new geometry to apply to feature.
212 
213 OGRERR_NONE if successful, or OGR_UNSUPPORTED_GEOMETRY_TYPE if the
214 geometry type is illegal for the OGRFeatureDefn (checking not yet
215 implemented). ";
216 
217 %feature("docstring")  Clone "OGRFeatureH OGR_F_Clone(OGRFeatureH
218 hFeat)
219 
220 Duplicate feature.
221 
222 The newly created feature is owned by the caller, and will have its
223 own reference to the OGRFeatureDefn.
224 
225 This function is the same as the C++ method OGRFeature::Clone().
226 
227 Parameters:
228 -----------
229 
230 hFeat:  handle to the feature to clone.
231 
232 a handle to the new feature, exactly matching this feature. ";
233 
234 %feature("docstring")  GetFieldCount "int
235 OGR_F_GetFieldCount(OGRFeatureH hFeat)
236 
237 Fetch number of fields on this feature This will always be the same as
238 the field count for the OGRFeatureDefn.
239 
240 This function is the same as the C++ method
241 OGRFeature::GetFieldCount().
242 
243 Parameters:
244 -----------
245 
246 hFeat:  handle to the feature to get the fields count from.
247 
248 count of fields. ";
249 
250 %feature("docstring")  GetFieldDefnRef "OGRFieldDefnH
251 OGR_F_GetFieldDefnRef(OGRFeatureH hFeat, int i)
252 
253 Fetch definition for this field.
254 
255 This function is the same as the C++ method
256 OGRFeature::GetFieldDefnRef().
257 
258 Parameters:
259 -----------
260 
261 hFeat:  handle to the feature on which the field is found.
262 
263 i:  the field to fetch, from 0 to GetFieldCount()-1.
264 
265 a handle to the field definition (from the OGRFeatureDefn). This is
266 an internal reference, and should not be deleted or modified. ";
267 
268 %feature("docstring")  GetFieldIndex "int
269 OGR_F_GetFieldIndex(OGRFeatureH hFeat, const char *pszName)
270 
271 Fetch the field index given field name.
272 
273 This is a cover for the OGRFeatureDefn::GetFieldIndex() method.
274 
275 This function is the same as the C++ method
276 OGRFeature::GetFieldIndex().
277 
278 Parameters:
279 -----------
280 
281 hFeat:  handle to the feature on which the field is found.
282 
283 pszName:  the name of the field to search for.
284 
285 the field index, or -1 if no matching field is found. ";
286 
287 %feature("docstring")  GetGeomFieldCount "int
288 OGR_F_GetGeomFieldCount(OGRFeatureH hFeat)
289 
290 Fetch number of geometry fields on this feature This will always be
291 the same as the geometry field count for the OGRFeatureDefn.
292 
293 This function is the same as the C++ method
294 OGRFeature::GetGeomFieldCount().
295 
296 Parameters:
297 -----------
298 
299 hFeat:  handle to the feature to get the geometry fields count from.
300 
301 count of geometry fields.
302 
303 GDAL 1.11 ";
304 
305 %feature("docstring")  GetGeomFieldDefnRef "OGRGeomFieldDefnH
306 OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int i)
307 
308 Fetch definition for this geometry field.
309 
310 This function is the same as the C++ method
311 OGRFeature::GetGeomFieldDefnRef().
312 
313 Parameters:
314 -----------
315 
316 hFeat:  handle to the feature on which the field is found.
317 
318 i:  the field to fetch, from 0 to GetGeomFieldCount()-1.
319 
320 a handle to the field definition (from the OGRFeatureDefn). This is
321 an internal reference, and should not be deleted or modified.
322 
323 GDAL 1.11 ";
324 
325 %feature("docstring")  GetGeomFieldIndex "int
326 OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
327 
328 Fetch the geometry field index given geometry field name.
329 
330 This is a cover for the OGRFeatureDefn::GetGeomFieldIndex() method.
331 
332 This function is the same as the C++ method
333 OGRFeature::GetGeomFieldIndex().
334 
335 Parameters:
336 -----------
337 
338 hFeat:  handle to the feature on which the geometry field is found.
339 
340 pszName:  the name of the geometry field to search for.
341 
342 the geometry field index, or -1 if no matching geometry field is
343 found.
344 
345 GDAL 1.11 ";
346 
347 %feature("docstring")  IsFieldSet "int OGR_F_IsFieldSet(OGRFeatureH
348 hFeat, int iField)
349 
350 Test if a field has ever been assigned a value or not.
351 
352 This function is the same as the C++ method OGRFeature::IsFieldSet().
353 
354 Parameters:
355 -----------
356 
357 hFeat:  handle to the feature on which the field is.
358 
359 iField:  the field to test.
360 
361 TRUE if the field has been set, otherwise false. ";
362 
363 %feature("docstring")  UnsetField "void OGR_F_UnsetField(OGRFeatureH
364 hFeat, int iField)
365 
366 Clear a field, marking it as unset.
367 
368 This function is the same as the C++ method OGRFeature::UnsetField().
369 
370 Parameters:
371 -----------
372 
373 hFeat:  handle to the feature on which the field is.
374 
375 iField:  the field to unset. ";
376 
377 %feature("docstring")  IsFieldNull "int OGR_F_IsFieldNull(OGRFeatureH
378 hFeat, int iField)
379 
380 Test if a field is null.
381 
382 This function is the same as the C++ method OGRFeature::IsFieldNull().
383 
384 Parameters:
385 -----------
386 
387 hFeat:  handle to the feature on which the field is.
388 
389 iField:  the field to test.
390 
391 TRUE if the field is null, otherwise false.
392 
393 GDAL 2.2 ";
394 
395 %feature("docstring")  IsFieldSetAndNotNull "int
396 OGR_F_IsFieldSetAndNotNull(OGRFeatureH hFeat, int iField)
397 
398 Test if a field is set and not null.
399 
400 This function is the same as the C++ method
401 OGRFeature::IsFieldSetAndNotNull().
402 
403 Parameters:
404 -----------
405 
406 hFeat:  handle to the feature on which the field is.
407 
408 iField:  the field to test.
409 
410 TRUE if the field is set and not null, otherwise false.
411 
412 GDAL 2.2 ";
413 
414 %feature("docstring")  SetFieldNull "void
415 OGR_F_SetFieldNull(OGRFeatureH hFeat, int iField)
416 
417 Clear a field, marking it as null.
418 
419 This function is the same as the C++ method
420 OGRFeature::SetFieldNull().
421 
422 Parameters:
423 -----------
424 
425 hFeat:  handle to the feature on which the field is.
426 
427 iField:  the field to set to null.
428 
429 GDAL 2.2 ";
430 
431 %feature("docstring")  GetRawFieldRef "OGRField*
432 OGR_F_GetRawFieldRef(OGRFeatureH hFeat, int iField)
433 
434 Fetch a handle to the internal field value given the index.
435 
436 This function is the same as the C++ method
437 OGRFeature::GetRawFieldRef().
438 
439 Parameters:
440 -----------
441 
442 hFeat:  handle to the feature on which field is found.
443 
444 iField:  the field to fetch, from 0 to GetFieldCount()-1.
445 
446 the returned handle is to an internal data structure, and should not
447 be freed, or modified. ";
448 
449 %feature("docstring")  GetFieldAsInteger "int
450 OGR_F_GetFieldAsInteger(OGRFeatureH hFeat, int iField)
451 
452 Fetch field value as integer.
453 
454 OFTString features will be translated using atoi(). OFTReal fields
455 will be cast to integer. Other field types, or errors will result in a
456 return value of zero.
457 
458 This function is the same as the C++ method
459 OGRFeature::GetFieldAsInteger().
460 
461 Parameters:
462 -----------
463 
464 hFeat:  handle to the feature that owned the field.
465 
466 iField:  the field to fetch, from 0 to GetFieldCount()-1.
467 
468 the field value. ";
469 
470 %feature("docstring")  GetFieldAsInteger64 "GIntBig
471 OGR_F_GetFieldAsInteger64(OGRFeatureH hFeat, int iField)
472 
473 Fetch field value as integer 64 bit.
474 
475 OFTInteger are promoted to 64 bit. OFTString features will be
476 translated using CPLAtoGIntBig(). OFTReal fields will be cast to
477 integer. Other field types, or errors will result in a return value of
478 zero.
479 
480 This function is the same as the C++ method
481 OGRFeature::GetFieldAsInteger64().
482 
483 Parameters:
484 -----------
485 
486 hFeat:  handle to the feature that owned the field.
487 
488 iField:  the field to fetch, from 0 to GetFieldCount()-1.
489 
490 the field value.
491 
492 GDAL 2.0 ";
493 
494 %feature("docstring")  GetFieldAsDouble "double
495 OGR_F_GetFieldAsDouble(OGRFeatureH hFeat, int iField)
496 
497 Fetch field value as a double.
498 
499 OFTString features will be translated using CPLAtof(). OFTInteger
500 fields will be cast to double. Other field types, or errors will
501 result in a return value of zero.
502 
503 This function is the same as the C++ method
504 OGRFeature::GetFieldAsDouble().
505 
506 Parameters:
507 -----------
508 
509 hFeat:  handle to the feature that owned the field.
510 
511 iField:  the field to fetch, from 0 to GetFieldCount()-1.
512 
513 the field value. ";
514 
515 %feature("docstring")  OGRFeatureFormatDateTimeBuffer "static void
516 OGRFeatureFormatDateTimeBuffer(char *szTempBuffer, size_t nMaxSize,
517 int nYear, int nMonth, int nDay, int nHour, int nMinute, float
518 fSecond, int nTZFlag) ";
519 
520 %feature("docstring")  GetFieldAsString "const char*
521 OGR_F_GetFieldAsString(OGRFeatureH hFeat, int iField)
522 
523 Fetch field value as a string.
524 
525 OFTReal and OFTInteger fields will be translated to string using
526 sprintf(), but not necessarily using the established formatting rules.
527 Other field types, or errors will result in a return value of zero.
528 
529 This function is the same as the C++ method
530 OGRFeature::GetFieldAsString().
531 
532 Parameters:
533 -----------
534 
535 hFeat:  handle to the feature that owned the field.
536 
537 iField:  the field to fetch, from 0 to GetFieldCount()-1.
538 
539 the field value. This string is internal, and should not be modified,
540 or freed. Its lifetime may be very brief. ";
541 
542 %feature("docstring")  GetFieldAsIntegerList "const int*
543 OGR_F_GetFieldAsIntegerList(OGRFeatureH hFeat, int iField, int
544 *pnCount)
545 
546 Fetch field value as a list of integers.
547 
548 Currently this function only works for OFTIntegerList fields.
549 
550 This function is the same as the C++ method
551 OGRFeature::GetFieldAsIntegerList().
552 
553 Parameters:
554 -----------
555 
556 hFeat:  handle to the feature that owned the field.
557 
558 iField:  the field to fetch, from 0 to GetFieldCount()-1.
559 
560 pnCount:  an integer to put the list count (number of integers) into.
561 
562 the field value. This list is internal, and should not be modified, or
563 freed. Its lifetime may be very brief. If *pnCount is zero on return
564 the returned pointer may be NULL or non-NULL. ";
565 
566 %feature("docstring")  GetFieldAsInteger64List "const GIntBig*
567 OGR_F_GetFieldAsInteger64List(OGRFeatureH hFeat, int iField, int
568 *pnCount)
569 
570 Fetch field value as a list of 64 bit integers.
571 
572 Currently this function only works for OFTInteger64List fields.
573 
574 This function is the same as the C++ method
575 OGRFeature::GetFieldAsInteger64List().
576 
577 Parameters:
578 -----------
579 
580 hFeat:  handle to the feature that owned the field.
581 
582 iField:  the field to fetch, from 0 to GetFieldCount()-1.
583 
584 pnCount:  an integer to put the list count (number of integers) into.
585 
586 the field value. This list is internal, and should not be modified, or
587 freed. Its lifetime may be very brief. If *pnCount is zero on return
588 the returned pointer may be NULL or non-NULL.
589 
590 GDAL 2.0 ";
591 
592 %feature("docstring")  GetFieldAsDoubleList "const double*
593 OGR_F_GetFieldAsDoubleList(OGRFeatureH hFeat, int iField, int
594 *pnCount)
595 
596 Fetch field value as a list of doubles.
597 
598 Currently this function only works for OFTRealList fields.
599 
600 This function is the same as the C++ method
601 OGRFeature::GetFieldAsDoubleList().
602 
603 Parameters:
604 -----------
605 
606 hFeat:  handle to the feature that owned the field.
607 
608 iField:  the field to fetch, from 0 to GetFieldCount()-1.
609 
610 pnCount:  an integer to put the list count (number of doubles) into.
611 
612 the field value. This list is internal, and should not be modified, or
613 freed. Its lifetime may be very brief. If *pnCount is zero on return
614 the returned pointer may be NULL or non-NULL. ";
615 
616 %feature("docstring")  GetFieldAsStringList "char**
617 OGR_F_GetFieldAsStringList(OGRFeatureH hFeat, int iField)
618 
619 Fetch field value as a list of strings.
620 
621 Currently this method only works for OFTStringList fields.
622 
623 The returned list is terminated by a NULL pointer. The number of
624 elements can also be calculated using CSLCount().
625 
626 This function is the same as the C++ method
627 OGRFeature::GetFieldAsStringList().
628 
629 Parameters:
630 -----------
631 
632 hFeat:  handle to the feature that owned the field.
633 
634 iField:  the field to fetch, from 0 to GetFieldCount()-1.
635 
636 the field value. This list is internal, and should not be modified, or
637 freed. Its lifetime may be very brief. ";
638 
639 %feature("docstring")  GetFieldAsBinary "GByte*
640 OGR_F_GetFieldAsBinary(OGRFeatureH hFeat, int iField, int *pnBytes)
641 
642 Fetch field value as binary.
643 
644 This method only works for OFTBinary and OFTString fields.
645 
646 This function is the same as the C++ method
647 OGRFeature::GetFieldAsBinary().
648 
649 Parameters:
650 -----------
651 
652 hFeat:  handle to the feature that owned the field.
653 
654 iField:  the field to fetch, from 0 to GetFieldCount()-1.
655 
656 pnBytes:  location to place count of bytes returned.
657 
658 the field value. This list is internal, and should not be modified, or
659 freed. Its lifetime may be very brief. ";
660 
661 %feature("docstring")  GetFieldAsDateTime "int
662 OGR_F_GetFieldAsDateTime(OGRFeatureH hFeat, int iField, int *pnYear,
663 int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, int *pnSecond,
664 int *pnTZFlag)
665 
666 Fetch field value as date and time.
667 
668 Currently this method only works for OFTDate, OFTTime and OFTDateTime
669 fields.
670 
671 This function is the same as the C++ method
672 OGRFeature::GetFieldAsDateTime().
673 
674 Parameters:
675 -----------
676 
677 hFeat:  handle to the feature that owned the field.
678 
679 iField:  the field to fetch, from 0 to GetFieldCount()-1.
680 
681 pnYear:  (including century)
682 
683 pnMonth:  (1-12)
684 
685 pnDay:  (1-31)
686 
687 pnHour:  (0-23)
688 
689 pnMinute:  (0-59)
690 
691 pnSecond:  (0-59)
692 
693 pnTZFlag:  (0=unknown, 1=localtime, 100=GMT, see data model for
694 details)
695 
696 TRUE on success or FALSE on failure.
697 
698 See:  Use OGR_F_GetFieldAsDateTimeEx() for second with millisecond
699 accuracy. ";
700 
701 %feature("docstring")  GetFieldAsDateTimeEx "int
702 OGR_F_GetFieldAsDateTimeEx(OGRFeatureH hFeat, int iField, int *pnYear,
703 int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, float *pfSecond,
704 int *pnTZFlag)
705 
706 Fetch field value as date and time.
707 
708 Currently this method only works for OFTDate, OFTTime and OFTDateTime
709 fields.
710 
711 This function is the same as the C++ method
712 OGRFeature::GetFieldAsDateTime().
713 
714 Parameters:
715 -----------
716 
717 hFeat:  handle to the feature that owned the field.
718 
719 iField:  the field to fetch, from 0 to GetFieldCount()-1.
720 
721 pnYear:  (including century)
722 
723 pnMonth:  (1-12)
724 
725 pnDay:  (1-31)
726 
727 pnHour:  (0-23)
728 
729 pnMinute:  (0-59)
730 
731 pfSecond:  (0-59 with millisecond accuracy)
732 
733 pnTZFlag:  (0=unknown, 1=localtime, 100=GMT, see data model for
734 details)
735 
736 TRUE on success or FALSE on failure.
737 
738 GDAL 2.0 ";
739 
740 %feature("docstring")  OGRFeatureGetIntegerValue "static int
741 OGRFeatureGetIntegerValue(OGRFieldDefn *poFDefn, int nValue) ";
742 
743 %feature("docstring")  SetFieldInteger "void
744 OGR_F_SetFieldInteger(OGRFeatureH hFeat, int iField, int nValue)
745 
746 Set field to integer value.
747 
748 OFTInteger, OFTInteger64 and OFTReal fields will be set directly.
749 OFTString fields will be assigned a string representation of the
750 value, but not necessarily taking into account formatting constraints
751 on this field. Other field types may be unaffected.
752 
753 This function is the same as the C++ method OGRFeature::SetField().
754 
755 This method has only an effect on the in-memory feature object. If
756 this object comes from a layer and the modifications must be
757 serialized back to the datasource, OGR_L_SetFeature() must be used
758 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
759 used afterwards.
760 
761 Parameters:
762 -----------
763 
764 hFeat:  handle to the feature that owned the field.
765 
766 iField:  the field to fetch, from 0 to GetFieldCount()-1.
767 
768 nValue:  the value to assign. ";
769 
770 %feature("docstring")  SetFieldInteger64 "void
771 OGR_F_SetFieldInteger64(OGRFeatureH hFeat, int iField, GIntBig nValue)
772 
773 Set field to 64 bit integer value.
774 
775 OFTInteger, OFTInteger64 and OFTReal fields will be set directly.
776 OFTString fields will be assigned a string representation of the
777 value, but not necessarily taking into account formatting constraints
778 on this field. Other field types may be unaffected.
779 
780 This function is the same as the C++ method OGRFeature::SetField().
781 
782 This method has only an effect on the in-memory feature object. If
783 this object comes from a layer and the modifications must be
784 serialized back to the datasource, OGR_L_SetFeature() must be used
785 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
786 used afterwards.
787 
788 Parameters:
789 -----------
790 
791 hFeat:  handle to the feature that owned the field.
792 
793 iField:  the field to fetch, from 0 to GetFieldCount()-1.
794 
795 nValue:  the value to assign.
796 
797 GDAL 2.0 ";
798 
799 %feature("docstring")  SetFieldDouble "void
800 OGR_F_SetFieldDouble(OGRFeatureH hFeat, int iField, double dfValue)
801 
802 Set field to double value.
803 
804 OFTInteger, OFTInteger64 and OFTReal fields will be set directly.
805 OFTString fields will be assigned a string representation of the
806 value, but not necessarily taking into account formatting constraints
807 on this field. Other field types may be unaffected.
808 
809 This function is the same as the C++ method OGRFeature::SetField().
810 
811 This method has only an effect on the in-memory feature object. If
812 this object comes from a layer and the modifications must be
813 serialized back to the datasource, OGR_L_SetFeature() must be used
814 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
815 used afterwards.
816 
817 Parameters:
818 -----------
819 
820 hFeat:  handle to the feature that owned the field.
821 
822 iField:  the field to fetch, from 0 to GetFieldCount()-1.
823 
824 dfValue:  the value to assign. ";
825 
826 %feature("docstring")  SetFieldString "void
827 OGR_F_SetFieldString(OGRFeatureH hFeat, int iField, const char
828 *pszValue)
829 
830 Set field to string value.
831 
832 OFTInteger fields will be set based on an atoi() conversion of the
833 string. OFTInteger64 fields will be set based on an CPLAtoGIntBig()
834 conversion of the string. OFTReal fields will be set based on an
835 CPLAtof() conversion of the string. Other field types may be
836 unaffected.
837 
838 This function is the same as the C++ method OGRFeature::SetField().
839 
840 This method has only an effect on the in-memory feature object. If
841 this object comes from a layer and the modifications must be
842 serialized back to the datasource, OGR_L_SetFeature() must be used
843 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
844 used afterwards.
845 
846 Parameters:
847 -----------
848 
849 hFeat:  handle to the feature that owned the field.
850 
851 iField:  the field to fetch, from 0 to GetFieldCount()-1.
852 
853 pszValue:  the value to assign. ";
854 
855 %feature("docstring")  SetFieldIntegerList "void
856 OGR_F_SetFieldIntegerList(OGRFeatureH hFeat, int iField, int nCount,
857 const int *panValues)
858 
859 Set field to list of integers value.
860 
861 This function currently on has an effect of OFTIntegerList,
862 OFTInteger64List and OFTRealList fields.
863 
864 This function is the same as the C++ method OGRFeature::SetField().
865 
866 This method has only an effect on the in-memory feature object. If
867 this object comes from a layer and the modifications must be
868 serialized back to the datasource, OGR_L_SetFeature() must be used
869 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
870 used afterwards.
871 
872 Parameters:
873 -----------
874 
875 hFeat:  handle to the feature that owned the field.
876 
877 iField:  the field to set, from 0 to GetFieldCount()-1.
878 
879 nCount:  the number of values in the list being assigned.
880 
881 panValues:  the values to assign. ";
882 
883 %feature("docstring")  SetFieldInteger64List "void
884 OGR_F_SetFieldInteger64List(OGRFeatureH hFeat, int iField, int nCount,
885 const GIntBig *panValues)
886 
887 Set field to list of 64 bit integers value.
888 
889 This function currently on has an effect of OFTIntegerList,
890 OFTInteger64List and OFTRealList fields.
891 
892 This function is the same as the C++ method OGRFeature::SetField().
893 
894 This method has only an effect on the in-memory feature object. If
895 this object comes from a layer and the modifications must be
896 serialized back to the datasource, OGR_L_SetFeature() must be used
897 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
898 used afterwards.
899 
900 Parameters:
901 -----------
902 
903 hFeat:  handle to the feature that owned the field.
904 
905 iField:  the field to set, from 0 to GetFieldCount()-1.
906 
907 nCount:  the number of values in the list being assigned.
908 
909 panValues:  the values to assign.
910 
911 GDAL 2.0 ";
912 
913 %feature("docstring")  SetFieldDoubleList "void
914 OGR_F_SetFieldDoubleList(OGRFeatureH hFeat, int iField, int nCount,
915 const double *padfValues)
916 
917 Set field to list of doubles value.
918 
919 This function currently on has an effect of OFTIntegerList,
920 OFTInteger64List, OFTRealList fields.
921 
922 This function is the same as the C++ method OGRFeature::SetField().
923 
924 This method has only an effect on the in-memory feature object. If
925 this object comes from a layer and the modifications must be
926 serialized back to the datasource, OGR_L_SetFeature() must be used
927 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
928 used afterwards.
929 
930 Parameters:
931 -----------
932 
933 hFeat:  handle to the feature that owned the field.
934 
935 iField:  the field to set, from 0 to GetFieldCount()-1.
936 
937 nCount:  the number of values in the list being assigned.
938 
939 padfValues:  the values to assign. ";
940 
941 %feature("docstring")  SetFieldStringList "void
942 OGR_F_SetFieldStringList(OGRFeatureH hFeat, int iField, CSLConstList
943 papszValues)
944 
945 Set field to list of strings value.
946 
947 This function currently on has an effect of OFTStringList fields.
948 
949 This function is the same as the C++ method OGRFeature::SetField().
950 
951 This method has only an effect on the in-memory feature object. If
952 this object comes from a layer and the modifications must be
953 serialized back to the datasource, OGR_L_SetFeature() must be used
954 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
955 used afterwards.
956 
957 Parameters:
958 -----------
959 
960 hFeat:  handle to the feature that owned the field.
961 
962 iField:  the field to set, from 0 to GetFieldCount()-1.
963 
964 papszValues:  the values to assign. List of NUL-terminated string,
965 ending with a NULL pointer. ";
966 
967 %feature("docstring")  SetFieldBinary "void
968 OGR_F_SetFieldBinary(OGRFeatureH hFeat, int iField, int nBytes, const
969 void *pabyData)
970 
971 Set field to binary data.
972 
973 This function currently on has an effect of OFTBinary fields.
974 
975 This function is the same as the C++ method OGRFeature::SetField().
976 
977 This method has only an effect on the in-memory feature object. If
978 this object comes from a layer and the modifications must be
979 serialized back to the datasource, OGR_L_SetFeature() must be used
980 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
981 used afterwards.
982 
983 Parameters:
984 -----------
985 
986 hFeat:  handle to the feature that owned the field.
987 
988 iField:  the field to set, from 0 to GetFieldCount()-1.
989 
990 nBytes:  the number of bytes in pabyData array.
991 
992 pabyData:  the data to apply. ";
993 
994 %feature("docstring")  SetFieldDateTime "void
995 OGR_F_SetFieldDateTime(OGRFeatureH hFeat, int iField, int nYear, int
996 nMonth, int nDay, int nHour, int nMinute, int nSecond, int nTZFlag)
997 
998 Set field to datetime.
999 
1000 This method currently only has an effect for OFTDate, OFTTime and
1001 OFTDateTime fields.
1002 
1003 This method has only an effect on the in-memory feature object. If
1004 this object comes from a layer and the modifications must be
1005 serialized back to the datasource, OGR_L_SetFeature() must be used
1006 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
1007 used afterwards.
1008 
1009 Parameters:
1010 -----------
1011 
1012 hFeat:  handle to the feature that owned the field.
1013 
1014 iField:  the field to set, from 0 to GetFieldCount()-1.
1015 
1016 nYear:  (including century)
1017 
1018 nMonth:  (1-12)
1019 
1020 nDay:  (1-31)
1021 
1022 nHour:  (0-23)
1023 
1024 nMinute:  (0-59)
1025 
1026 nSecond:  (0-59)
1027 
1028 nTZFlag:  (0=unknown, 1=localtime, 100=GMT, see data model for
1029 details)
1030 
1031 See:  Use OGR_F_SetFieldDateTimeEx() for second with millisecond
1032 accuracy. ";
1033 
1034 %feature("docstring")  SetFieldDateTimeEx "void
1035 OGR_F_SetFieldDateTimeEx(OGRFeatureH hFeat, int iField, int nYear, int
1036 nMonth, int nDay, int nHour, int nMinute, float fSecond, int nTZFlag)
1037 
1038 Set field to datetime.
1039 
1040 This method currently only has an effect for OFTDate, OFTTime and
1041 OFTDateTime fields.
1042 
1043 This method has only an effect on the in-memory feature object. If
1044 this object comes from a layer and the modifications must be
1045 serialized back to the datasource, OGR_L_SetFeature() must be used
1046 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
1047 used afterwards.
1048 
1049 Parameters:
1050 -----------
1051 
1052 hFeat:  handle to the feature that owned the field.
1053 
1054 iField:  the field to set, from 0 to GetFieldCount()-1.
1055 
1056 nYear:  (including century)
1057 
1058 nMonth:  (1-12)
1059 
1060 nDay:  (1-31)
1061 
1062 nHour:  (0-23)
1063 
1064 nMinute:  (0-59)
1065 
1066 fSecond:  (0-59, with millisecond accuracy)
1067 
1068 nTZFlag:  (0=unknown, 1=localtime, 100=GMT, see data model for
1069 details)
1070 
1071 GDAL 2.0 ";
1072 
1073 %feature("docstring")  SetFieldRaw "void
1074 OGR_F_SetFieldRaw(OGRFeatureH hFeat, int iField, OGRField *psValue)
1075 
1076 Set field.
1077 
1078 The passed value OGRField must be of exactly the same type as the
1079 target field, or an application crash may occur. The passed value is
1080 copied, and will not be affected. It remains the responsibility of the
1081 caller.
1082 
1083 This function is the same as the C++ method OGRFeature::SetField().
1084 
1085 This method has only an effect on the in-memory feature object. If
1086 this object comes from a layer and the modifications must be
1087 serialized back to the datasource, OGR_L_SetFeature() must be used
1088 afterwards. Or if this is a new feature, OGR_L_CreateFeature() must be
1089 used afterwards.
1090 
1091 Parameters:
1092 -----------
1093 
1094 hFeat:  handle to the feature that owned the field.
1095 
1096 iField:  the field to fetch, from 0 to GetFieldCount()-1.
1097 
1098 psValue:  handle on the value to assign. ";
1099 
1100 %feature("docstring")  DumpReadable "void
1101 OGR_F_DumpReadable(OGRFeatureH hFeat, FILE *fpOut)
1102 
1103 Dump this feature in a human readable form.
1104 
1105 This dumps the attributes, and geometry; however, it doesn't
1106 definition information (other than field types and names), nor does it
1107 report the geometry spatial reference system.
1108 
1109 This function is the same as the C++ method
1110 OGRFeature::DumpReadable().
1111 
1112 Parameters:
1113 -----------
1114 
1115 hFeat:  handle to the feature to dump.
1116 
1117 fpOut:  the stream to write to, such as strout. ";
1118 
1119 %feature("docstring")  GetFID "GIntBig OGR_F_GetFID(OGRFeatureH
1120 hFeat)
1121 
1122 Get feature identifier.
1123 
1124 This function is the same as the C++ method OGRFeature::GetFID().
1125 Note: since GDAL 2.0, this method returns a GIntBig (previously a
1126 long)
1127 
1128 Parameters:
1129 -----------
1130 
1131 hFeat:  handle to the feature from which to get the feature
1132 identifier.
1133 
1134 feature id or OGRNullFID if none has been assigned. ";
1135 
1136 %feature("docstring")  SetFID "OGRErr OGR_F_SetFID(OGRFeatureH hFeat,
1137 GIntBig nFID)
1138 
1139 Set the feature identifier.
1140 
1141 For specific types of features this operation may fail on illegal
1142 features ids. Generally it always succeeds. Feature ids should be
1143 greater than or equal to zero, with the exception of OGRNullFID (-1)
1144 indicating that the feature id is unknown.
1145 
1146 This function is the same as the C++ method OGRFeature::SetFID().
1147 
1148 Parameters:
1149 -----------
1150 
1151 hFeat:  handle to the feature to set the feature id to.
1152 
1153 nFID:  the new feature identifier value to assign.
1154 
1155 On success OGRERR_NONE, or on failure some other value. ";
1156 
1157 %feature("docstring")  Equal "int OGR_F_Equal(OGRFeatureH hFeat,
1158 OGRFeatureH hOtherFeat)
1159 
1160 Test if two features are the same.
1161 
1162 Two features are considered equal if the share them (handle equality)
1163 same OGRFeatureDefn, have the same field values, and the same geometry
1164 (as tested by OGR_G_Equal()) as well as the same feature id.
1165 
1166 This function is the same as the C++ method OGRFeature::Equal().
1167 
1168 Parameters:
1169 -----------
1170 
1171 hFeat:  handle to one of the feature.
1172 
1173 hOtherFeat:  handle to the other feature to test this one against.
1174 
1175 TRUE if they are equal, otherwise FALSE. ";
1176 
1177 %feature("docstring")  SetFrom "OGRErr OGR_F_SetFrom(OGRFeatureH
1178 hFeat, OGRFeatureH hOtherFeat, int bForgiving)
1179 
1180 Set one feature from another.
1181 
1182 Overwrite the contents of this feature from the geometry and
1183 attributes of another. The hOtherFeature does not need to have the
1184 same OGRFeatureDefn. Field values are copied by corresponding field
1185 names. Field types do not have to exactly match. OGR_F_SetField*()
1186 function conversion rules will be applied as needed.
1187 
1188 This function is the same as the C++ method OGRFeature::SetFrom().
1189 
1190 Parameters:
1191 -----------
1192 
1193 hFeat:  handle to the feature to set to.
1194 
1195 hOtherFeat:  handle to the feature from which geometry, and field
1196 values will be copied.
1197 
1198 bForgiving:  TRUE if the operation should continue despite lacking
1199 output fields matching some of the source fields.
1200 
1201 OGRERR_NONE if the operation succeeds, even if some values are not
1202 transferred, otherwise an error code. ";
1203 
1204 %feature("docstring")  SetFromWithMap "OGRErr
1205 OGR_F_SetFromWithMap(OGRFeatureH hFeat, OGRFeatureH hOtherFeat, int
1206 bForgiving, const int *panMap)
1207 
1208 Set one feature from another.
1209 
1210 Overwrite the contents of this feature from the geometry and
1211 attributes of another. The hOtherFeature does not need to have the
1212 same OGRFeatureDefn. Field values are copied according to the provided
1213 indices map. Field types do not have to exactly match.
1214 OGR_F_SetField*() function conversion rules will be applied as needed.
1215 This is more efficient than OGR_F_SetFrom() in that this doesn't
1216 lookup the fields by their names. Particularly useful when the field
1217 names don't match.
1218 
1219 This function is the same as the C++ method OGRFeature::SetFrom().
1220 
1221 Parameters:
1222 -----------
1223 
1224 hFeat:  handle to the feature to set to.
1225 
1226 hOtherFeat:  handle to the feature from which geometry, and field
1227 values will be copied.
1228 
1229 panMap:  Array of the indices of the destination feature's fields
1230 stored at the corresponding index of the source feature's fields. A
1231 value of -1 should be used to ignore the source's field. The array
1232 should not be NULL and be as long as the number of fields in the
1233 source feature.
1234 
1235 bForgiving:  TRUE if the operation should continue despite lacking
1236 output fields matching some of the source fields.
1237 
1238 OGRERR_NONE if the operation succeeds, even if some values are not
1239 transferred, otherwise an error code. ";
1240 
1241 %feature("docstring")  GetStyleString "const char*
1242 OGR_F_GetStyleString(OGRFeatureH hFeat)
1243 
1244 Fetch style string for this feature.
1245 
1246 Set the OGR Feature Style Specification for details on the format of
1247 this string, and ogr_featurestyle.h for services available to parse
1248 it.
1249 
1250 This function is the same as the C++ method
1251 OGRFeature::GetStyleString().
1252 
1253 Parameters:
1254 -----------
1255 
1256 hFeat:  handle to the feature to get the style from.
1257 
1258 a reference to a representation in string format, or NULL if there
1259 isn't one. ";
1260 
1261 %feature("docstring")  SetStyleString "void
1262 OGR_F_SetStyleString(OGRFeatureH hFeat, const char *pszStyle)
1263 
1264 Set feature style string.
1265 
1266 This method operate exactly as OGR_F_SetStyleStringDirectly() except
1267 that it does not assume ownership of the passed string, but instead
1268 makes a copy of it.
1269 
1270 This function is the same as the C++ method
1271 OGRFeature::SetStyleString().
1272 
1273 Parameters:
1274 -----------
1275 
1276 hFeat:  handle to the feature to set style to.
1277 
1278 pszStyle:  the style string to apply to this feature, cannot be NULL.
1279 ";
1280 
1281 %feature("docstring")  SetStyleStringDirectly "void
1282 OGR_F_SetStyleStringDirectly(OGRFeatureH hFeat, char *pszStyle)
1283 
1284 Set feature style string.
1285 
1286 This method operate exactly as OGR_F_SetStyleString() except that it
1287 assumes ownership of the passed string.
1288 
1289 This function is the same as the C++ method
1290 OGRFeature::SetStyleStringDirectly().
1291 
1292 Parameters:
1293 -----------
1294 
1295 hFeat:  handle to the feature to set style to.
1296 
1297 pszStyle:  the style string to apply to this feature, cannot be NULL.
1298 ";
1299 
1300 %feature("docstring")  GetStyleTable "OGRStyleTableH
1301 OGR_F_GetStyleTable(OGRFeatureH hFeat)
1302 
1303 Return style table. ";
1304 
1305 %feature("docstring")  SetStyleTableDirectly "void
1306 OGR_F_SetStyleTableDirectly(OGRFeatureH hFeat, OGRStyleTableH
1307 hStyleTable)
1308 
1309 Set style table and take ownership. ";
1310 
1311 %feature("docstring")  SetStyleTable "void
1312 OGR_F_SetStyleTable(OGRFeatureH hFeat, OGRStyleTableH hStyleTable)
1313 
1314 Set style table. ";
1315 
1316 %feature("docstring")  FillUnsetWithDefault "void
1317 OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly,
1318 char **papszOptions)
1319 
1320 Fill unset fields with default values that might be defined.
1321 
1322 This function is the same as the C++ method
1323 OGRFeature::FillUnsetWithDefault().
1324 
1325 Parameters:
1326 -----------
1327 
1328 hFeat:  handle to the feature.
1329 
1330 bNotNullableOnly:  if we should fill only unset fields with a not-null
1331 constraint.
1332 
1333 papszOptions:  unused currently. Must be set to NULL.
1334 
1335 GDAL 2.0 ";
1336 
1337 %feature("docstring")  Validate "int OGR_F_Validate(OGRFeatureH
1338 hFeat, int nValidateFlags, int bEmitError)
1339 
1340 Validate that a feature meets constraints of its schema.
1341 
1342 The scope of test is specified with the nValidateFlags parameter.
1343 
1344 Regarding OGR_F_VAL_WIDTH, the test is done assuming the string width
1345 must be interpreted as the number of UTF-8 characters. Some drivers
1346 might interpret the width as the number of bytes instead. So this test
1347 is rather conservative (if it fails, then it will fail for all
1348 interpretations).
1349 
1350 This function is the same as the C++ method OGRFeature::Validate().
1351 
1352 Parameters:
1353 -----------
1354 
1355 hFeat:  handle to the feature to validate.
1356 
1357 nValidateFlags:  OGR_F_VAL_ALL or combination of OGR_F_VAL_NULL,
1358 OGR_F_VAL_GEOM_TYPE, OGR_F_VAL_WIDTH and
1359 OGR_F_VAL_ALLOW_NULL_WHEN_DEFAULT with '|' operator
1360 
1361 bEmitError:  TRUE if a CPLError() must be emitted when a check fails
1362 
1363 TRUE if all enabled validation tests pass.
1364 
1365 GDAL 2.0 ";
1366 
1367 %feature("docstring")  GetNativeData "const char*
1368 OGR_F_GetNativeData(OGRFeatureH hFeat)
1369 
1370 Returns the native data for the feature.
1371 
1372 The native data is the representation in a \"natural\" form that comes
1373 from the driver that created this feature, or that is aimed at an
1374 output driver. The native data may be in different format, which is
1375 indicated by OGR_F_GetNativeMediaType().
1376 
1377 Note that most drivers do not support storing the native data in the
1378 feature object, and if they do, generally the NATIVE_DATA open option
1379 must be passed at dataset opening.
1380 
1381 The \"native data\" does not imply it is something more performant or
1382 powerful than what can be obtained with the rest of the API, but it
1383 may be useful in round-tripping scenarios where some characteristics
1384 of the underlying format are not captured otherwise by the OGR
1385 abstraction.
1386 
1387 This function is the same as the C++ method
1388 OGRFeature::GetNativeData().
1389 
1390 Parameters:
1391 -----------
1392 
1393 hFeat:  handle to the feature.
1394 
1395 a string with the native data, or NULL if there is none.
1396 
1397 GDAL 2.1
1398 
1399 See:
1400 https://trac.osgeo.org/gdal/wiki/rfc60_improved_roundtripping_in_ogr
1401 ";
1402 
1403 %feature("docstring")  GetNativeMediaType "const char*
1404 OGR_F_GetNativeMediaType(OGRFeatureH hFeat)
1405 
1406 Returns the native media type for the feature.
1407 
1408 The native media type is the identifier for the format of the native
1409 data. It follows the IANA RFC 2045
1410 (seehttps://en.wikipedia.org/wiki/Media_type), e.g.
1411 \"application/vnd.geo+json\" for JSon.
1412 
1413 This function is the same as the C function
1414 OGR_F_GetNativeMediaType().
1415 
1416 Parameters:
1417 -----------
1418 
1419 hFeat:  handle to the feature.
1420 
1421 a string with the native media type, or NULL if there is none.
1422 
1423 GDAL 2.1
1424 
1425 See:
1426 https://trac.osgeo.org/gdal/wiki/rfc60_improved_roundtripping_in_ogr
1427 ";
1428 
1429 %feature("docstring")  SetNativeData "void
1430 OGR_F_SetNativeData(OGRFeatureH hFeat, const char *pszNativeData)
1431 
1432 Sets the native data for the feature.
1433 
1434 The native data is the representation in a \"natural\" form that comes
1435 from the driver that created this feature, or that is aimed at an
1436 output driver. The native data may be in different format, which is
1437 indicated by OGR_F_GetNativeMediaType().
1438 
1439 This function is the same as the C++ method
1440 OGRFeature::SetNativeData().
1441 
1442 Parameters:
1443 -----------
1444 
1445 hFeat:  handle to the feature.
1446 
1447 pszNativeData:  a string with the native data, or NULL if there is
1448 none.
1449 
1450 GDAL 2.1
1451 
1452 See:
1453 https://trac.osgeo.org/gdal/wiki/rfc60_improved_roundtripping_in_ogr
1454 ";
1455 
1456 %feature("docstring")  SetNativeMediaType "void
1457 OGR_F_SetNativeMediaType(OGRFeatureH hFeat, const char
1458 *pszNativeMediaType)
1459 
1460 Sets the native media type for the feature.
1461 
1462 The native media type is the identifier for the format of the native
1463 data. It follows the IANA RFC 2045
1464 (seehttps://en.wikipedia.org/wiki/Media_type), e.g.
1465 \"application/vnd.geo+json\" for JSon.
1466 
1467 This function is the same as the C++ method
1468 OGRFeature::SetNativeMediaType().
1469 
1470 Parameters:
1471 -----------
1472 
1473 hFeat:  handle to the feature.
1474 
1475 pszNativeMediaType:  a string with the native media type, or NULL if
1476 there is none.
1477 
1478 GDAL 2.1
1479 
1480 See:
1481 https://trac.osgeo.org/gdal/wiki/rfc60_improved_roundtripping_in_ogr
1482 ";
1483 
1484 %feature("docstring")  OGR_RawField_IsUnset "int
1485 OGR_RawField_IsUnset(const OGRField *puField)
1486 
1487 Returns whether a raw field is unset.
1488 
1489 Note: this function is rather low-level and should be rarely used in
1490 client code. Use instead OGR_F_IsFieldSet().
1491 
1492 Parameters:
1493 -----------
1494 
1495 puField:  pointer to raw field.
1496 
1497 GDAL 2.2 ";
1498 
1499 %feature("docstring")  OGR_RawField_IsNull "int
1500 OGR_RawField_IsNull(const OGRField *puField)
1501 
1502 Returns whether a raw field is null.
1503 
1504 Note: this function is rather low-level and should be rarely used in
1505 client code. Use instead OGR_F_IsFieldNull().
1506 
1507 Parameters:
1508 -----------
1509 
1510 puField:  pointer to raw field.
1511 
1512 GDAL 2.2 ";
1513 
1514 %feature("docstring")  OGR_RawField_SetUnset "void
1515 OGR_RawField_SetUnset(OGRField *puField)
1516 
1517 Mark a raw field as unset.
1518 
1519 This should be called on a un-initialized field. In particular this
1520 will not free any memory dynamically allocated.
1521 
1522 Note: this function is rather low-level and should be rarely used in
1523 client code. Use instead OGR_F_UnsetField().
1524 
1525 Parameters:
1526 -----------
1527 
1528 puField:  pointer to raw field.
1529 
1530 GDAL 2.2 ";
1531 
1532 %feature("docstring")  OGR_RawField_SetNull "void
1533 OGR_RawField_SetNull(OGRField *puField)
1534 
1535 Mark a raw field as null.
1536 
1537 This should be called on a un-initialized field. In particular this
1538 will not free any memory dynamically allocated.
1539 
1540 Note: this function is rather low-level and should be rarely used in
1541 client code. Use instead OGR_F_SetFieldNull().
1542 
1543 Parameters:
1544 -----------
1545 
1546 puField:  pointer to raw field.
1547 
1548 GDAL 2.2 ";
1549 
1550 }