Import GCPs / Ground Control Points via CLI does not work with params.xml

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]

Hello @PeterchenPan,

Those parameters don’t look like the parameters for the ground control input. They should look more like this:

<Configuration id="{65E79B42-7042-4A81-B68D-0F835D913191}">
  <entry key="gcpuPosXl" value="0.05"/>
  <entry key="csvGCIgn" value="false"/>
  <entry key="gcpuPosZl" value="0.1"/>
  <entry key="gcpTmode" value="0x2"/>
  <entry key="CoordinateSystemGcpType" value="epsg:4258 - ETRS89"/>
  <entry key="CoordinateSystemGcp">
    <value>+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs</value>
  </entry>
  <entry key="gcpLogFileFormat" value="{3863F1E2-4753-42F8-917F-4C4EB345336B}"/>
  <entry key="gcpuPosYl" value="0.05"/>
  <entry key="csvGCSep" value="2"/>
</Configuration>

Are those parameters for the model export?

Please, export your parameters from the Ground Control import dialog:

image

image

Thanks for the information. I exported the parameters via teh GUI like you said but used the the export Ground Control dialog. This is why i did not work.