The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function RetrievePolygon (DBEntry: integer; var Polygon: TgdbPolygon): boolean;

The method RetrievePolygon retrieves the corresponding polygon data of database entry DBEntry. The function returns TRUE if such data is available (i.e. the property Data[DBEntry].ItemKind belongs to one of the following types: gitBorder, gitRiver, gitRoad, gitRoute, gitCity, or gitLake).

The polygon data is returned in the open array Polygon.

Hint: Please note that the number of polygon points is available via the property Data[DBEntry].NumPoints.

Example: This property is used in the following example program (see for downloading the code): geodata

Last Update: 2012-Okt-20