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



WriteLandmarksToOpenXMLFile


Unit:SDL_geomap
Class: TGeoMap
Declaration: procedure WriteLandmarksToOpenXMLFile (var OutFile : TextFile; CreateHeader: boolean; DataID: string);

The method WriteLandmarksToOpenXMLFile writes the current landmarks to the open text file OutFile using XML syntax. If the parameter CreateHeader is TRUE a minimum XML header is generated. CreateHeader should be set to a FALSE value if the landmark data is to be appended to an existing XML file. The parameter DataID holds a unique identifier which is stored as the attribute "id " of the <gmlandmarks> tag.

WriteLandmarksToOpenXMLFile generates the following tags:

XML Tag Description
<gmlandmarks> the root element of the landmark data. It contains the following attributes:

sig       signature; is always "SDLCSuite"
vers     version string
id         name of geomap instance as defined by the parameter DataID

example:

<gmlandmarks sig="SDLCSuite" vers="1.0" id="mymap">
<landmark /> parameters of a landmark. Note that <landmark /> is an empty tag - the information is contained in its attributes:

lat           latitude of the landmark position
long         longitude of the landmark position
class       class (group) number of the landmark
usertag   user defined tag
colorfg   foreground color
colorbg   background color
size         size of the landmark
transp     transparency
element   type of landmark element
dir           direction of the landmark (triangle and arrows only)
leng         length of arrow

example:

<landmark lat="47.5446072649112" long="14.887706688942" class="0" 
    usertag="0" colorfg="00FF0000" colorbg="00F0CAA6" size="15" 
    transp="TRUE" element="Circle" dir="106" leng="59" />

Hint: For a sample XML file, see the description of the method SaveLandmarks.



Last Update: 2008-Okt-29