|
integer function, public shapelib::dbfgetfieldinfo |
( |
type(shpfileobject), intent(inout) |
hshp, |
|
|
integer, intent(in) |
ifield, |
|
|
character(len=*), intent(out) |
pszfieldname, |
|
|
integer, intent(out) |
pnwidth, |
|
|
integer, intent(out) |
pndecimals |
|
) |
| |
It returns information about a dbf field.
The return value is the type of the requested field, which is one of the ft* constants. The field type returned does not correspond one to one with the xBase field types. For instance the xBase field type for Date will just be returned as being ftinteger. It returns -1 if the shape object is not valid.
- Parameters
-
[in,out] | hshp | shapefile object to query |
[in] | ifield | number of field to query, in the interval 0, nfield - 1 |
[out] | pszfieldname | the name of the field, it can be up to 11 characters long |
[out] | pnwidth | the width of the field in characters |
[out] | pndecimals | the number of decimals in a floating point representation, nonzero only for fields of type ftdouble |
Definition at line 733 of file shapelib.F90.
|