FortranGIS  Version2.5
List of all members
dbfreadattribute Interface Reference

Interface to SUBROUTINEs for reading dbf attributes. More...

Detailed Description

Interface to SUBROUTINEs for reading dbf attributes.

The type of the attribute can be either INTEGER, REAL(kind=c_double) (double) or CHARACTER. In case of CHARACTER attributes it is important that the length of the string passed is big enough to contain the attribute. The maximum length for each field can be obtained with the dbfgetfieldinfo function, but it is limited anyway to a maximum of 512 characters. The type of the attribute requested may not coincide with the native type of the field, if possible a conversion will be performed.

Parameters
hshpTYPE(shpfileobject),INTENT(inout) shapefile object to query
ishapeINTEGER,INTENT(in) the number of shape to query
ifieldINTEGER,INTENT(in) the number of field to query
attrINTEGER, CHARACTER or REAL(kind=c_double), INTENT(out) the value of the attribute

Definition at line 138 of file shapelib.F90.