
 | | |
All Units All Classes Properties, Methods and Events |
LoadMap procedure
procedure LoadMap(Const Series:
TMapSeries; Const FileName: String; Const Table: TDataSet; Const FieldName, FieldValue: String; ClearSeries: Boolean);
Unit
TeeSHP
Description
Load a "shape file" (*.shp) and adds its polygons to Series parameter.
The optional Table, FieldName and FieldValue parameters are used to open an associated dataset (usually a dBase table) with one record for each polygon in the shape file.
If Table parameter is not nil, then the FieldName field is used to set each Series XLabel text, and the FieldValue field is used to set each Series ZValue value.
The ClearSeries parameter (default is True) determines if the Series parameter will be emptied or not before loading the shape file.
You can pass False if you need to preserve current Series shapes and want to aggregate contents from the shape file (or to load more than one shape file to the same Series).
This method is internally used by the TWorldSeries.
For more information:
http://en.wikipedia.org/wiki/Shapefile
Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.