Printable versions
This Page
All Pages
PDF (2.0MB)

Index

Component
GpsShapeCE

Class
DataRecord

Methods
AddField
Count
GetColumnNameByIndex
GetFieldByIndex

DataRecord GpsTools v2.30 and later

With some shapefiles, there is a file with the extension .dbf included (shapefile.dbf instead of shapefile.shp). This .dbf-file contains metadata or attributes describing the shapes in the shapefile. The .dbf-file can contain almost any kind of data but a common usage is for example street names, populations etc.

According to the shapefile specifications, each record in the .dbf-file has a one-to-one relationship with the associated shape found in the shapefile. The shapefile attributes are accessed with ShapeFile.GetAttribute the which returns a DataRecord.

The DataRecord represents a row obtained from the .dbf-file. The DataRecord contains fields, one field for each column depicted below:

Column 1 Column 2 Column 3
Row 1 (shape 1) DataField DataField DataField
Row 2 (shape 2) DataField DataField DataField
Row 3 (shape 3) DataField1 DataField2 DataField3
Row 4 (shape 4) DataField DataField DataField


The DataRecord contains all the fields for one row (shape).

DataRecord
DataField DataField DataField

Pocket PC
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login