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



WriteCalDataToOpenXMLFile


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

The method WriteCalDataToOpenXMLFile writes the calibration data 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 map 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 <geomap> tag.

WriteCalDataToOpenXMLFile generates the following tags:

XML Tag Description
<geomap> the root element of the map 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
model      calibration model (see CalibModel for details)
map          path to map image
caption  caption of map

example:

<geomap sig="SDLCSuite" vers="1.0" id="mjcalmap" model="conicconformal"
map="albania.jpg" caption="Albania 1:200000">
<corners> coordinates of the corners of the map (in latitude/longitude values)

example:

<corners>
[36.10760,14.19668] [35.95435,14.10704]
[35.77225,14.54025] [35.92780,14.63435]
</corners> 
<ellipsoid> specifies ellipsoid used for the Earth model

example:

<ellipsoid>gelWGS84</ellipsoid>
<resolution> specifies the resolution of the map in meters per pixel

example:

<resolution>13.2311</resolution>
<utmzone> zone number of the Universal Transverse Mercator (UTM) projection

example:

<utmzone>54</utmzone>
<utmsouth> indicates whether the UTM zone is located in the northern (FALSE) or southern hemisphere (TRUE)

example:

<utmsouth>FALSE</utmsouth>
<calline > parameters of a calibration line (for the parabolic interpolation model)

type           kind of the calibration line (meridian or parallel)
value         associated value (longitude/latitude)
npoints     number of calibration points

example:

<calline type="parallel" value="36" npoints="3">
[278,403] [484,298] [682,198]
</calline>
<calquads > calibration parameters for the biquadratic polynomial model)

npoints     number of calibration points

example:

<calquads npoints="2">
[3.9222,-37.9771,555,231] [-13.8222,-32.1771,165,831]
</calquads>

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



Last Update: 2023-Dec-13