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....



AddLake


Unit:SDL_geodb
Class:TGeoDB
Declaration:function AddLake (Name: TgdbName; Polygon: TgdbPolygon; Date: TDateTime; StateFlag: longint; LatLow, LatHigh, LongLow, LongHigh, Altitude: single; ClassNumber: byte; UserTag: longint): integer;

The method AddLake adds the coordinates of the outline of a lake to the database. The parameter Name contains the name of the lake. The outline is defined by a polygon which is passed via the parameter Polygon. The parameter Date holds the date and time associated with the lake. The parameter StateFlag reflects the state of the database entry. The parameters LatLow ... LongHigh specify the geographical area the lake covers. The parameter Altitude defines the altitude of the lake surface. 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 AddLake returns the database entry number of the newly created entry, or a value of -1 if an error occurred.


Last Update: 2012-Oct-20