<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MosaicToNewRaster input parameter formatting help in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/mosaictonewraster-input-parameter-formatting-help/m-p/610851#M7497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Running the MosaicToNewRaster tool works fine when I use the tool in ArcMap but it fails in .net when I use the exact same inputs.&amp;nbsp; It leaves me to think that the way "input_rasters" is set up is wrong.&amp;nbsp; Can anyone help me with correctly formatting my input_rasters string?&amp;nbsp; This is typically happening only when I want to use more than 1 tiff file as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) input_rasters = "'path\imgDirectory\img1.tiff';'&lt;SPAN&gt;path\imgDirectory\img2.tiff'&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) input_rasters = "'path\imgDirectory\img1.tiff','&lt;/SPAN&gt;&lt;SPAN&gt;path\imgDirectory\img2.tiff'&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3) I have tried inserting a string[] with the paths&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for some reason, I think the way I format my "input_rasters" is wrong.&amp;nbsp; Because how can I get the Tool to work in ArcMap with the exact same parameters but not in c#?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code and input works when trying to export as a tiff in c#, but will not work when exporting as a .jpg in c#.&amp;nbsp; We want a .jpg because it is significantly smaller than a tiff file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2020 17:14:17 GMT</pubDate>
    <dc:creator>HuyNgo</dc:creator>
    <dc:date>2020-08-13T17:14:17Z</dc:date>
    <item>
      <title>MosaicToNewRaster input parameter formatting help</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mosaictonewraster-input-parameter-formatting-help/m-p/610851#M7497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Running the MosaicToNewRaster tool works fine when I use the tool in ArcMap but it fails in .net when I use the exact same inputs.&amp;nbsp; It leaves me to think that the way "input_rasters" is set up is wrong.&amp;nbsp; Can anyone help me with correctly formatting my input_rasters string?&amp;nbsp; This is typically happening only when I want to use more than 1 tiff file as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) input_rasters = "'path\imgDirectory\img1.tiff';'&lt;SPAN&gt;path\imgDirectory\img2.tiff'&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) input_rasters = "'path\imgDirectory\img1.tiff','&lt;/SPAN&gt;&lt;SPAN&gt;path\imgDirectory\img2.tiff'&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3) I have tried inserting a string[] with the paths&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for some reason, I think the way I format my "input_rasters" is wrong.&amp;nbsp; Because how can I get the Tool to work in ArcMap with the exact same parameters but not in c#?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code and input works when trying to export as a tiff in c#, but will not work when exporting as a .jpg in c#.&amp;nbsp; We want a .jpg because it is significantly smaller than a tiff file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 17:14:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mosaictonewraster-input-parameter-formatting-help/m-p/610851#M7497</guid>
      <dc:creator>HuyNgo</dc:creator>
      <dc:date>2020-08-13T17:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: MosaicToNewRaster input parameter formatting help</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mosaictonewraster-input-parameter-formatting-help/m-p/610852#M7498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend exposing the parameter as a string and using inline variable substitution if you're using ModelBuilder or a similar approach if you're writing a Python script. For more information see&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm" title="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm"&gt;Inline variable substitution—ArcGIS Pro | Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to input multiple file names (strings) then you should consider defining the input parameter as a multi-value parameter. For more information see&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm"&gt;Setting script tool parameters—ArcGIS Pro | Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mosaictonewraster-input-parameter-formatting-help/m-p/610852#M7498</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-08-19T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: MosaicToNewRaster input parameter formatting help</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mosaictonewraster-input-parameter-formatting-help/m-p/610853#M7499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Michael, I ended up putting all of the MosaicToNewRaster code into a Python Script.&amp;nbsp; while passing in my exact same parameters that I attempted to use in the c# version.&amp;nbsp; It works as expected.&amp;nbsp; So I technically didn't get this issue solved for anyone looking to leverage this tool in C# with multiple input raster.&amp;nbsp; I recommend to just create a python scripts if you need to call the code from c#&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 16:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mosaictonewraster-input-parameter-formatting-help/m-p/610853#M7499</guid>
      <dc:creator>HuyNgo</dc:creator>
      <dc:date>2020-08-25T16:43:30Z</dc:date>
    </item>
  </channel>
</rss>

