<?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 Re: Using Mosaic footprints and Boundaries as GP inputs using python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205400#M15812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First create a mosaic layer using the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000vm000000" rel="nofollow" target="_blank"&gt;Make Mosaic Layer&lt;/A&gt;&lt;SPAN&gt; tool, and then you can access the footprint or boundary very easily.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.MakeMosaicLayer_management("Philadelphia", "MosaicLayer") boundary = ("MosaicLayer/Boundary")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 14:05:31 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2014-02-07T14:05:31Z</dc:date>
    <item>
      <title>Using Mosaic footprints and Boundaries as GP inputs using python</title>
      <link>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205399#M15811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a python newbie with a fairly basic question. I'm having a hard time getting arcpy.Integrate_management to accept a mosaic's boundary as input. I get a "does not exist or is not supported" error message. I tried a number of syntax variations on the boundary's filepath without any luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I have the MD added to ArcMap, I can run the Integrate tool, by itself, on the boundary through ArcToolbox but not when trying to use my script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my script so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import system modules import arcpy&amp;nbsp; import os&amp;nbsp; # Set the necessary product code import arceditor&amp;nbsp; # Set the gdb for the mosaic inWS = arcpy.GetParameterAsText(0)&amp;nbsp; MoDataName = arcpy.GetParameterAsText(1)&amp;nbsp; arcpy.env.overwriteOutput = True&amp;nbsp; #Set projection to be used by the mosaic&amp;nbsp; prjfile= arcpy.GetParameterAsText(2)&amp;nbsp; # Create the mosaic dataset&amp;nbsp; arcpy.CreateMosaicDataset_management(inWS,MoDataName,prjfile,"","","", "")&amp;nbsp;&amp;nbsp; # Adding the Rasters Input = inWS+"\\" + MoDataName InPath = arcpy.GetParameterAsText(3) arcpy.AddRastersToMosaicDataset_management(Input,"Raster Dataset",InPath,"UPDATE_CELL_SIZES", "UPDATE_BOUNDARY", "NO_OVERVIEWS", "", "0", "1500", "", "", "NO_SUBFOLDERS", "ALLOW_DUPLICATES", "NO_PYRAMIDS", "NO_STATISTICS", "NO_THUMBNAILS", "Add Raster Datasets")&amp;nbsp; # Integrate the MD's boundary to remove any slivers by using the XY tolerance of 0.31 meters Boundary = "MoDataName\\Boundary" xyTolerance = "0.31 Meters"&amp;nbsp; arcpy.Integrate_management("Input\\Boundary", xyTolerance)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I just execute the Integrate GP tool on the boundary locally, this is how ModelBuilder exports the script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import arcpy module import arcpy&amp;nbsp;&amp;nbsp; # Local variables: Boundary = "DUV2013\\Boundary"&amp;nbsp; # Process: Integrate arcpy.Integrate_management("DUV2013\\Boundary #", "0.31 Meters")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can run the script fine without the integrate gp, but this results in a bunch of slivers in the boundary. I don't want to, but I may just end up using the make mosaic layer tool. Any help figuring this out would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205399#M15811</guid>
      <dc:creator>MichaelNesius</dc:creator>
      <dc:date>2014-02-07T13:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mosaic footprints and Boundaries as GP inputs using python</title>
      <link>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205400#M15812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First create a mosaic layer using the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000vm000000" rel="nofollow" target="_blank"&gt;Make Mosaic Layer&lt;/A&gt;&lt;SPAN&gt; tool, and then you can access the footprint or boundary very easily.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.MakeMosaicLayer_management("Philadelphia", "MosaicLayer") boundary = ("MosaicLayer/Boundary")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 14:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205400#M15812</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-02-07T14:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mosaic footprints and Boundaries as GP inputs using python</title>
      <link>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205401#M15813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I should create the mosaic layer, modify it and then use the Import Mosaic Dataset Geometry to change the MD's boundary?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 14:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205401#M15813</guid>
      <dc:creator>MichaelNesius</dc:creator>
      <dc:date>2014-02-07T14:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mosaic footprints and Boundaries as GP inputs using python</title>
      <link>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205402#M15814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You will just need to add these lines to your code.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy 
import os

# Set the necessary product code
import arceditor

# Set the gdb for the mosaic
inWS = arcpy.GetParameterAsText(0)

MoDataName = arcpy.GetParameterAsText(1)

arcpy.env.overwriteOutput = True

#Set projection to be used by the mosaic

prjfile= arcpy.GetParameterAsText(2)

# Create the mosaic dataset

arcpy.CreateMosaicDataset_management(inWS,MoDataName,prjfile,"","","", "")


# Adding the Rasters
Input = inWS+"\\" + MoDataName
InPath = arcpy.GetParameterAsText(3)
arcpy.AddRastersToMosaicDataset_management(Input,"Raster Dataset",InPath,"UPDATE_CELL_SIZES", "UPDATE_BOUNDARY", "NO_OVERVIEWS", "", "0", "1500", "", "", "NO_SUBFOLDERS", "ALLOW_DUPLICATES", "NO_PYRAMIDS", "NO_STATISTICS", "NO_THUMBNAILS", "Add Raster Datasets")

# Integrate the MD's boundary to remove any slivers by using the XY tolerance of 0.31 meters
&lt;STRONG&gt;arcpy.MakeMosaicLayer_management(Input, "MosaicLayer")
Boundary = "MosaicLayer/Boundary"&lt;/STRONG&gt;
xyTolerance = "0.31 Meters" 
arcpy.Integrate_management(Boundary, xyTolerance)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205402#M15814</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T10:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mosaic footprints and Boundaries as GP inputs using python</title>
      <link>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205403#M15815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Jake.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For those interested, my solution was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created the temporary mosaic layer, used the Copy Features tool on this mosaic layer to create a feature class of the boundary, modified this boundary feature class using the Integrate tool, and then used the Import Mosaic Geometry to change the original mosaic dataset's boundary to match the modifications made to the feature class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 16:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-mosaic-footprints-and-boundaries-as-gp/m-p/205403#M15815</guid>
      <dc:creator>MichaelNesius</dc:creator>
      <dc:date>2014-02-07T16:33:16Z</dc:date>
    </item>
  </channel>
</rss>

