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



SaveCalDataAsXML


Unit:SDL_geomap
Class: TGeoMap 
Declaration: [1] procedure SaveCalDataAsXML (FileName, DataID: string);
[2] procedure SaveCalDataAsXML (OutStream: TStream; DataID: string);

The method SaveCalDataAsXMLFile stores the contents of the map data as an XML file on the disk (version [1]) or in a stream (version [2]). The parameter FileName specifies the name of the file to be generated, the parameter OutStream specifies the output stream. The parameter DataID holds a unique identifier which is stored as the attribute "id " of the <geomap> tag. For a detailed description of the generated tags please see the method WriteCalDataToOpenXMLFile.

Example: Following is a sample XML code generated by SaveCalDataAsXML. The parameter DataID has been set to 'myDataID':
<?xml version="1.0"?>
<!-- TGeoMap / SDL Component Suite -->
<geomap sig="SDLCSuite" vers="1.0" id="myDataID" map="d:\geomaptest\malta_gozo.bmp">
<corners>
[36.10760,14.19668] [35.95435,14.10704] [35.77225,14.54025] [35.92780,14.63435]
</corners>
<resolution>24.353</resolution>
<calline type="parallel" value="36" npoints="3">
[278,403] [484,298] [682,198]
</calline>
<calline type="parallel" value="35.833333" npoints="4">
[1245,765] [1460,657] [1632,569] [1774,498]
</calline>
<calline type="meridian" value="14.25" npoints="3">
[235,24] [348,242] [422,391]
</calline>
<calline type="meridian" value="14.5" npoints="4">
[1282,36] [1347,165] [1471,413] [1641,751]
</calline>
<calquads npoints="2">
[3.9222,-37.9771,555,231] [-13.8222,-32.1771,165,831]
</calquads>
</geomap>


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



Last Update: 2012-Oct-20