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



ReadLandmarksFromOpenXMLFile


Unit:SDL_geomap
Class:TGeoMap 
Declaration:function ReadLandMarksFromOpenXMLFile (var InFile: TextFile; DataID: string): boolean;

The function ReadLandMarksFromOpenXMLFile reads landmarks from the current position of the file InFile. 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 open file InFile 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 ReadLandMarksFromOpenXMLFile returns TRUE if a 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 ReadLandmarksFromOpenXMLFile does not repaint the geographic map after loading the stored landmarks. So if you want to read only a single file of landmarks its a good idea to use the method LoadLandmarks, which performs a repaint after loading the landmarks.



Last Update: 2023-Dec-13