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



SaveLandmarks


Unit:SDL_geomap
Class: TGeoMap 
Declaration: procedure SaveLandmarks (FileName, DataID: string);

The method SaveLandmarks stores the landmarks of a map as an XML file on the disk. The parameter FileName specifies the name of the file to be generated, the parameter DataID holds a unique identifier which is stored as the attribute "id " of the <gmlandmarks> tag. For a detailed description of the generated tags please see the method WriteLandmarksToOpenXMLFile.

Example: Following is a sample XML code generated by SaveLandmarks. The parameter DataID has been set to 'myDataID':
<?xml version="1.0"?>

<!-- TGeoMap Landmarks / SDL Component Suite -->
<gmlandmarks sig="SDLCSuite" vers="1.0" id="myDataID">
<landmark lat="48.1736017849807" long="10.3907053814929" class="0"
    usertag="0" colorfg="000000FF" colorbg="00FFFFFF" size="20"
    transp="FALSE" element="Cross" dir="0" leng="40" />
<landmark lat="47.3239083050978" long="15.4905216697732" class="0"
    usertag="0" colorfg="00FF0000" colorbg="00F0CAA6" size="20"
    transp="FALSE" element="ArrowTo" dir="51" leng="40" />
<landmark lat="46.9847287436486" long="14.8762746860775" class="0"
    usertag="0" colorfg="00FF0000" colorbg="00F0CAA6" size="15"
    transp="FALSE" element="ArrowTo" dir="189" leng="49" />
<landmark lat="47.6130420474482" long="13.772967383615" class="0"
    usertag="0" colorfg="00FF0000" colorbg="00F0CAA6" size="15"
    transp="TRUE" element="ArrowFrom" dir="106" leng="59" />
<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" />
</gmlandmarks>



Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): simplegeomap



Last Update: 2007-Mai-19