FortranGIS Version 3.0

◆ dbfgetfieldindex()

integer function, public dbfgetfieldindex ( type(shpfileobject), intent(in) hshp,
character(len=*), intent(in) pszfieldname )

It returns the index of the field matching the name.

The comparison is case insensitive, however lengths must match exactly. It returns -1 if the field is not found or if the shape object is not valid. This procedure is available only with shapelib version 1.2.10 or later.

Parameters
[in]hshpshape object to query
[in]pszfieldnamefield name to search

Definition at line 705 of file shapelib.F90.