Select to view content in your preferred language

arcpy.management.Clip does not use mosaic dataset seamlines

755
3
10-31-2022 08:55 AM
Labels (2)
DaveWilcox
Occasional Contributor

Hi All,

I'm clipping rectangular areas from a mosiac dataset. The resulting clipped portions do not match what ArcGIS Pro is rendering, as though it is ignoring the seamlines and just selecting the image nearest to the center of the frame. Has anyone else seen this problem or have any suggestions on how to fix it?

Here is the python call I'm using (stand alone code).

arcpy.Clip_management(in_raster=mdspath,out_raster=cliptiff,in_template_dataset=cliprect,maintain_clipping_extent="NO_MAINTAIN_EXTENT")

 The area in the mosaic dataset

DaveWilcox_0-1667231392252.png

The area returned by the clip

DaveWilcox_2-1667231454453.png

- Dave Wilcox

SAV Monitoring Program
Virginia Institute of Marine Science
College of William & Mary

 

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

Does this help your situation?

Mosaic dataset boundary—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
DaveWilcox
Occasional Contributor

Unfortunately, the problem does not seem to be related to the boundary.

0 Kudos
DaveWilcox
Occasional Contributor

The problem appears to be related to the two layers of mosaic dataset. We have mosaicked the frames in flightlines in a set of mosaic dataset and then mosaicked the flightline mosaic datasets in a second mosaic dataset. The flgihtline mosaic datasets clip fine, but the mosaic dataset that includes them does not.

0 Kudos