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 LoadLandMarks (FName: string; DataID: string): boolean;

The method LoadLandmarks reads landmark data from the XML file FName which has been previously created by the methods WriteLandmarksToOpenXMLFile or SaveLandmarks.

If the parameter DataID is empty, the first <gmlandmarks> tag is evaluated and read into the TGeoMap instance. If DataID is not empty, the entire rest of the file is read until a <gmlandmarks> tag is found whose attribute "id " matches DataID (the recognition of the "id" attribute is not case-sensitive). The function LoadLandmarks returns TRUE if valid starting tag <gmlandmarks> has been found.

Hint 1: For a description of the valid tags, please see WriteLandmarksToOpenXMLFile.

Hint 2: Please note that the method LoadLandmarks repaints the geographic map after loading the stored landmarks, while ReadLandmarksFromOpenXMLFile does not.

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

Last Update: 2012-Oct-20