When using Command Line / CLI for the GCP Import it always shows a error notification when using a settings paramter file. Without the optional params.xml file it works fine with the same data source. Here is the setting file “ImportGCPParams.xml” which I use:
<Configuration id="{2D5793BC-A65D-4318-A1B9-A05044608385}">
<entry key="calexTrans" value="1"/>
<entry key="calexHasDisabled" value="0x0"/>
<entry key="MvsExportScaleZ" value="1.0"/>
<entry key="MvsExportIsGeoreferenced" value="0x1"/>
<entry key="MvsExportIsModelCoordinates" value="0"/>
<entry key="MvsExportScaleY" value="1.0"/>
<entry key="MvsExportScaleX" value="1.0"/>
<entry key="MvsExportRotationY" value="0.0"/>
<entry key="MvsExportcoordinatesystemtype" value="0"/>
<entry key="MvsExportNormalFlipZ" value="false"/>
<entry key="MvsExportRotationX" value="0.0"/>
<entry key="hasCalexFilePath" value="1"/>
<entry key="MvsExportNormalFlipY" value="false"/>
<entry key="MvsExportNormalSpace" value="Mikktspace"/>
<entry key="calexHasUndistort" value="-1"/>
<entry key="MvsExportNormalFlipX" value="false"/>
<entry key="MvsExportRotationZ" value="0.0"/>
<entry key="calexFileFormat" value="Comma-separated, Name, X, Y, Alt"/>
<entry key="MvsExportMoveZ" value="0.0"/>
<entry key="calexFileFormatId" value="{CE348030-6853-4582-9904-458D3B8C2402}"/>
<entry key="hasCalexFileName" value="1"/>
<entry key="calexHasImageExport" value="-1"/>
<entry key="MvsExportMoveX" value="0.0"/>
<entry key="MvsExportNormalRange" value="ZeroToOne"/>
<entry key="MvsExportMoveY" value="0.0"/>
</Configuration>
and the corresponding CLI command, that does not work with the params.xml argument:
-importGroundControlPoints "%~dp0\params\AprilTagsGCP_14Oct22.csv" "%~dp0\params\ImportGCPParams.xml"^
The error says:
Failed to initiate import of ground control points. Please check the settings file or the data source: [error 7158]