# Import system modules 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 Boundary = "MoDataName\\Boundary" xyTolerance = "0.31 Meters" arcpy.Integrate_management("Input\\Boundary", xyTolerance)
# Import arcpy module import arcpy # Local variables: Boundary = "DUV2013\\Boundary" # Process: Integrate arcpy.Integrate_management("DUV2013\\Boundary #", "0.31 Meters")
Solved! Go to Solution.
arcpy.MakeMosaicLayer_management("Philadelphia", "MosaicLayer") boundary = ("MosaicLayer/Boundary")
arcpy.MakeMosaicLayer_management("Philadelphia", "MosaicLayer") boundary = ("MosaicLayer/Boundary")
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 arcpy.MakeMosaicLayer_management(Input, "MosaicLayer") Boundary = "MosaicLayer/Boundary" xyTolerance = "0.31 Meters" arcpy.Integrate_management(Boundary, xyTolerance)