Closed eagletilmann closed 8 years ago
Please note the correct syntax for the variable usage:
Thanks Peter,
That works - Have updated my batch and config files.
Just need to mention how MDCS really is the missing link for me when working with Mosaic datasets: scripted configuration of MDS will be the norm for me now- I can hardly believe how much manual configuration that is going to save!
Would you consider writing a blog entry for the Esri blogs to promote this?
Thanks for the great work!
Tilmann
On 25/07/2015, at 8:34 am, Peter Becker notifications@github.com<mailto:notifications@github.com> wrote:
Please note the correct syntax for the variable usage:
When using a batch file to create a series of similar Mosaic datasets from the same configuration file (see extract below) I am not able to use variables in the batch and configuration files.
The variables seem to be ignored and the default value is always used. Also: how is a variable used when the variable name is non-unique in the configuration XML? (as is the case with
<Name>
which occurs twice at the top of the file). I am getting alog-critical: Error: <Name> should be the first child-element in <MosaicDataset>
and then the MDCS script fails.The help specifies the following syntax:
<defaultValue>;$<variableName>
which in my case for below configuration file looks as follows when I want the
<MosaicDataset><Name>
,<dataset_id>
and<filter>
variables to be dynamically specified:c:\python27\ArcGIS10.3\python.exe C:\Image_Mgmt_Workflow\MDCS\scripts\mdcs.py -i:C:\Image_Mgmt_Workflow\MDCS\Parameter\Config\MPI_CreateMosaicDataset_GENERIC_AlbersEqualArea.xml -p:CatchMapper_MPI_AlbersEqualArea_MDCS_Demo_Ficticious$MosaicDataset/Name -p:CatchMapper_MPI_AlbersEqualArea_MDCS_Demo_Year01$dataset_id -p:year=1$filter
Thanks for any help on this.