You can create the import-mapping file manually or automatically.
Structuring the import-mapping file involves specifying how the columns of data available
in the individual data files (.txt or .csv) map against the geoscience reference data
(geoscience attributes and measurements). Here is a typical
example:
<?xml version="1.0" encoding="UTF-8"?>
<import-mapping version="1.0">
<borehole-collar-mapping file-name="collar.txt" default-horizontal-crs-id="EPSG:28351">
<borehole-name column="1"/>
<collar-x column="3"/>
<collar-y column="2"/>
<collar-z column="4"/>
<max-depth column="5"/>
<hole-path column="6"/>
</borehole-collar-mapping>
<borehole-survey-mapping file-name="survey.txt">
<borehole-name column="1"/>
<depth column="2"/>
<dip column="3"/>
<azimuth column="4"/>
</borehole-survey-mapping>
<borehole-structure-mapping file-name="structure.txt" header="true">
<borehole-name column="1"/>
<depth column="2"/>
<dip column="3"/>
<dip-direction column="4"/>
<structure column="5" attribute-name="fault" measurement-name="categorical planar measurement"/>
</borehole-structure-mapping>
<borehole-sample-mapping file-name="geology.txt">
<borehole-name column="1"/>
<depth-from column="2"/>
<depth-to column="3"/>
<sample column="4" attribute-name="lithology" measurement-name="categorical measurement"/>
</borehole-sample-mapping>
<borehole-sample-mapping file-name="assay.txt">
<borehole-name column="1"/>
<depth-from column="2"/>
<depth-to column="3"/>
<sample column="4" attribute-name="CO" measurement-name="spectrometer assay"/>
<sample column="5" attribute-name="CU" measurement-name="copper cyanide assay"/>
<sample column="6" attribute-name="NI" measurement-name="spectrometer assay"/>
</borehole-sample-mapping>
<borehole-geophysics-mapping file-name="geophysics.las" borehole-name="BH10" null-value="-999.25">
<depth column="1"/>
<log-curve-data column="2" attribute-name="GR" measurement-name="GR measurement"/>
<log-curve-data column="3" attribute-name="TNPH" measurement-name="TNPH measurement"/>
<log-curve-data column="4" attribute-name="CTEM" measurement-name="CTEM measurement"/>
<log-curve-data column="5" attribute-name="SDEV" measurement-name="SDEV measurement"/>
<log-curve-data column="6" attribute-name="TENS" measurement-name="TENS measurement"/>
</borehole-geophysics-mapping>
<point-sample-mapping file-name="point_samples.csv" default-horizontal-crs-id="EPSG:28351" header="true">
<point-name column="1"/>
<point-x column="2"/>
<point-y column="3"/>
<sample column="4" attribute-name="REGCHEM_ID" measurement-name="numerical measurement"/>
<sample column="5" attribute-name="MR_NUM" measurement-name="categorical measurement"/>
<sample column="6" attribute-name="SAMPLE_TYP" measurement-name="categorical measurement"/>
<sample column="7" attribute-name="AU" measurement-name="fire assay"/>
</point-sample-mapping>
<point-structure-mapping file-name="point_structures.csv" delimiter="tab" header="true">
<point-name column="1"/>
<point-x column="2"/>
<point-y column="3"/>
<point-z column="4"/>
<dip column="7"/>
<dip-direction column="8"/>
<structure column="5" attribute-name="struct_type" measurement-name="categorical planar measurement"/>
<structure column="6" attribute-name="struct_name" measurement-name="categorical planar measurement"/>
</point-structure-mapping>
</import-mapping>
For an example of an import-mapping file, see
import-mapping-file.