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 AddBorder (Name: TgdbName; Polygon: TgdbPolygon; ClosedLine: boolean; Date: TDateTime; StateFlag: longint; LatLow, LatHigh, LongLow, LongHigh, Altitude: single; ClassNumber: byte; UserTag: longint): integer;

The method AddBorder adds the coordinates of a border line to the database. The parameter Name contains the name associated with this border (e.g. the name of the country). The collection of points defining the border is passed to the method via the parameter Polygon. The parameter ClosedLine determines whether the border is a closed line. The parameter Date holds the date and time associated with the border. The parameter StateFlag reflects the state of the database entry. The parameters LatLow ... LongHigh specify the geographical area the border covers. The parameter Altitude defines the (average) altitude of the border data. ClassNumber contains the number of the class the new database entry should belong to, and the UserTag parameter may hold a user-defined number. UserTag is not used by the database system, it can be used to store additional information.

The function AddBorder returns the database entry number of the newly created entry, or a value of -1 if an error occurred.

Last Update: 2023-Dec-13