Customize Import Formats

Some import formats can be customized according to your specific requirements and preferences. For instance, if you need to import additional information, your file contains arbitrary columns, or your data is not in the correct format, you can edit the following imports: control points, ground control points, distance definitions, and flight logs.

To customize these imports, you will need to edit the corresponding files in the installation directory. If the installation destination was not changed during setup, you can find them here:

C:\Program Files\Capturing Reality\RealityCapture
            

Import File Structure

Each import file has the same structure which makes the customization easier.

<format id="" descID="" desc="Text Displayed in the Import Dialog" reader="">
    <parser allowedSeparators="" comment="" showIgnoreFirstline="" qualifiers=""> 
        <Variable index="" format=""/> 
    </parser> 
</format>

Distance Definitions

Modify the "distancedefinitions.xml" file to customize the distance definitions import. As a reader use "CapturingReality.Import.CsvDistanceDefinition".

Sample file format:

<format id="{08192FC0-A5D9-4E99-B993-F274EFA5745F}" descID="8413" desc="Name, Point A, Point B, Distance, Accuracy (character-separated)" reader="CapturingReality.Import.CsvDistanceDefinition">
    <parser allowedSeparators=",; &tab;" comment="#" showIgnoreFirstline="true" qualifiers="&quot;optional" >
        <Name index="0"/>
        <PointA index="1"/>
        <PointB index="2"/>
        <Distance index="3"/>
        <DistanceAccuracy index="4"/>
    </parser>
</format>

Available variables:

Control Points

Modify the "measurementsimport.xml" file to customize the control points import. As a reader use "CapturingReality.Import.CSVControlPointsMeasurements".

Sample file format:

<format id="{FDB5E38A-823C-446A-B144-6D33B2172D8A}" descID="8388" desc="Image, Point, X, Y (character-separated)" reader="CapturingReality.Import.CSVControlPointsMeasurements">
    <parser allowedSeparators=",; &tab;" comment="#" showIgnoreFirstline="true" qualifiers="&quot;optional" >
        <Image index="0" format="name" />
        <PointName index="1" />
        <X index="2" />
        <Y index="3" />
    </parser>
</format>

Available variables:

Ground Control Points

Modify the "groundcontrol.xml" file to customize the control points import. As a reader use "CapturingReality.Import.CSVGroundControl".

Sample file format:

<format id="{28626CC0-6311-41FD-88EE-988A673A5CB8}" descID="8406" desc="Name, X (East), Y (North), Alt, X Accuracy, Y Accuracy, Alt Accuracy (character-separated)" reader="CapturingReality.Import.CSVGroundControl">
    <parser allowedSeparators=",; &tab;" comment="#;" showIgnoreFirstline="true" qualifiers="&quot;optional">
        <Name index="0" format="name"/>
        <X index="1" format="value"/>
        <Y index="2" format="value"/>
        <Altitude index="3" format="value"/>
        <XAccuracy index="4" format="value"/>
        <YAccuracy index="5" format="value"/>
        <AltitudeAccuracy index="6" format="value"/>
    </parser>
</format>

Available variables:

Flight Log

Modify the "flightlogs.xml" file to customize the control points import. As a reader use "CapturingReality.Import.CSVFlightLog".

Sample file format:

<format id="{97F08A22-F231-4AB4-A2FD-6FA42BB6D663}" descID="8436" desc="Name, X (East), Y (North), Alt, X Accuracy, Y Accuracy, Alt Accuracy, Yaw, Pitch, Roll (character-separated)" reader="CapturingReality.Import.CSVFlightLog">
    <parser allowedSeparators=",; &tab;" comment="#" showIgnoreFirstline="true" qualifiers="&quot;optional" >
        <Image index="0" format="name.ext"/>
        <X index="1" format="value"/>
        <Y index="2" format="value"/>
        <Altitude index="3" format="value"/>
        <XAccuracy index="4" format="value"/>
        <YAccuracy index="5" format="value"/>
        <AltitudeAccuracy index="6" format="value"/>
        <Yaw index="7" format="value"/>
        <Pitch index="8" format="value"/>
        <Roll index="9" format="value"/>
    </parser>
</format>

Available variables:



Scaling a Scene

Scale a scene using a few different methods

Control point measurements import

Import Control Point Measurements with a text file

Ground Control Points Import

Import Ground Control Points with a text file

Flight Log Import

Import Flight Log as a text file

See also: