Support Files : Bathy DataBASE Support Files : BASE Editor : XML Lookup Files
 

XML Lookup Files

A number of XML Lookup files are located in the Support directory of the BASE Editor module and the System directory of the application. These files are accessed by the application to determine how to populate values for object acronyms and attributes. Each file controls a different type of data or attributes. The files that can be customized for your data include:

elevationlookup.xml: This file tells the application which attributes to look for when populating Z values for objects in S‑57 data. The file lists common object acronyms that require a Z value and identifies the elevation attribute for each object. A shift value can also be specified for each object acronym. Defining this value will cause a shift to be applied to the objects when they are loaded.

breaklineobjects.xml: This file defines the object acronyms that can be used for creating breakline features. For each object acronym listed, the attribute that is to be used for the elevation value is also specified.

coveragetemplate.xml: This file defines the object acronyms that can be used for creating TIN breakline and coverage objects. For breaklines, both Line and Area features can be created; for coverages both Hole and Boundary types can be created. Attributes are defined for each obect type, telling the application how to populate values for each of the types.

resolution.xml: This file controls the values that are populated in the X/Y and Z resolution fields of the New Feature Layer tool. A different set of values is provided for each layer Type available. When a layer type is selected, the resolution values displayed will be assigned to the new layer. By default, X/Y values are defined in decimal degrees and Z values are defined in metres. If you require additional resolution values, you can edit this file to include a custom layer type and associated resolution values. The next time you open BASE Editor, your entry will be available as a layer type with resolution values you specified.

unitstable.xml: This file defines the units of measure that are available in BASE Editor. Three different measurement systems are provided:

Metric System

British Imperial

US Imperial

For each measurement system provided, the types of measurements, such as speed and area, are defined with keys and names, as well as attributes. Within each measurement type, the supported units are defined by Unit Key, Name, Label, a/b, and Precision. You can edit this file to add support for additional units of measure if necessary.

Below is an example of the length data type in each available measurement system.

<System Key="SI" Name="Metric System">

<Type Key="length" Name="Length">

<Unit Key="m" Name="Metres" Label="m" a="1" b="0" Precision="2"/>

<Unit Key="km" Name="Kilometres" Label="km" a="1000" b="0" Precision="2"/>

<Unit Key="nm" Name="Int. Nautical Miles" Label="NM" a="1852" b="0"
Precision="2"/>

<Unit Key="cm" Name="Centimetres" Label="cm" a=".01" b="0" Precision="1"/>

<Unit Key="mm" Name="Millimetres" Label="mm" a=".001" b="0" Precision="0"/>

<Unit Key="cable" Name="Cables" Label="cables" a="185.2" b="0"/>

</Type>

<System Key="UK-Imp" Name="British Imperial">

<Type Key="length" Name="Length">

<Unit Key="ft" Name="Imperial Feet" Label="ft" a="0.3048" b="0"
Precision="1"/>

<Unit Key="yd" Name="Imperial Yards" Label="yd" a="0.9144" b="0"
Precision="2"/>

<Unit Key="in" Name="Inches" Label="in" a=".0254" b="0" Precision="1"/>

<Unit Key="fm" Name="Imperial Fathoms" Label="fm" a="1.8288" b="0"
Precision="2"/>

<Unit Key="mi" Name="Int. Miles" Label="mi" a="1609.344" b="0"
Precision="3"/>

<Unit Key="inm" Name="Imperial Nautical Miles" Label="NM" a="1853.184"
b="0" Precision="3"/>

</Type>

<System Key="US-Imp" Name="US Imperial">

<Type Key="length" Name="Length">

<Unit Key="usft" Name="US Survey Feet" Label="ft" a1="1200" a2="3937" b="0"
Precision="1"/>

<Unit Key="usyd" Name="US Survey Yards" Label="yd" a1="3600" a2="3937"
b="0" Precision="2"/>

<Unit Key="usfm" Name="US Survey Fathoms" Label="fm" a1="7200" a2="3937"
b="0" Precision="2"/>

<Unit Key="usmi" Name="US Survey Miles" Label="mi" a1="6336000" a2="3937"
b="0" Precision="3"/>

<Unit Key="ch" Name="US Chains" Label="ch" a="20.1168" b="0" Precision="3"/>

<Unit Key="usnm" Name="US Survey Nautical Miles" Label="NM" a="1853.249"
b="0" Precision="3"/>

</Type>