Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Even Rouault <[email protected]>
  • Loading branch information
elpaso and rouault authored Jan 20, 2025
1 parent 1ac8ceb commit 3356983
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ogr/ogr_feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ class CPL_DLL OGRFieldDefn
}

/**
* @brief IsGenerated
* @brief Return whether the field is a generated field.
*
* At time of writing, only the GeoPackage and PG drivers fill that information. Consequently,
* only a returned value equal to TRUE can be fully trusted.
* @return TRUE if the field is a generated field, FALSE otherwise.
* @since GDAL 3.11
*/
Expand Down
5 changes: 5 additions & 0 deletions ogr/ogrfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,9 @@ int OGRFeature::IsFieldSet(int iField) const
/**
* \brief Test if a field is a generated field.
*
* At time of writing, only the GeoPackage and PG drivers fill that information. Consequently,
* only a returned value equal to TRUE can be fully trusted.
*
* This method is the same as the C function OGR_F_IsFieldGenerated().
*
* @param iField the field to test.
Expand All @@ -1620,6 +1623,8 @@ bool OGRFeature::IsFieldGenerated(int iField) const
/**
* \brief Test if a field is a generated field.
*
* At time of writing, only the GeoPackage driver fills that information. Consequently,
* only a returned value equal to TRUE can be fully trusted.
* This function is the same as the C++ method OGRFeature::IsFieldGenerated().
*
* @param hFeat handle to the feature on which the field is.
Expand Down

0 comments on commit 3356983

Please sign in to comment.