ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Build Seamlines

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Generate or update seamlines for your mosaic dataset. Seamlines are used to sort overlapping imagery and produce a smoother-looking mosaic.

You can use this tool to do the following:

  • Generate seamlines for all items in the mosaic dataset.
  • Generate seamlines for items selected using a query or by an area of interest.
  • Update existing seamlines if items are added or removed from the mosaic dataset.

Usage

  • The seamlines are generated so that there is one seamline per footprint.

  • You cannot build seamlines for a referenced mosaic dataset.

  • If you plan on color correcting your mosaic dataset, it is recommended that you do so before building seamlines. Color correction is especially important if the Computation Method is set to RADIOMETRY, as color is taken into account when seamlines are built.

  • The Sort Method and Sort Ascending parameters are disabled if Update Existing Seamlines option is checked on.

  • To remove seamlines, right-click the mosaic dataset in ArcCatalog or the Catalog window and click Remove > Remove Seamlines.

Syntax

BuildSeamlines_management (in_mosaic_dataset, {cell_size}, {sort_method}, {sort_order}, {order_by_attribute}, {order_by_base_value}, {view_point}, {computation_method}, {blend_width}, {blend_type}, {request_size}, {request_size_type}, {blend_width_units}, {where_clause}, {area_of_interest}, {update_existing})
ParameterExplanationData Type
in_mosaic_dataset

Select the mosaic dataset on which to build seamlines.

Mosaic Layer
cell_size
(Optional)

Generate seamlines for raster datasets that fall within the following range of spatial resolutions.

You can leave this parameter empty and the tool will automatically create seamlines at the appropriate levels.

The units for this parameter are the same as the spatial reference of the input mosaic dataset.

Double
sort_method
(Optional)

Set a rule to determine which raster will be used to generate seamlines when images overlap.

  • NORTH_WEST — Select the raster datasets that have center points closest to the northwest corner of the boundary. This is the default.
  • CLOSEST_TO_VIEWPOINT — Select raster datasets based on a user-defined location and a nadir location for the raster datasets using the Viewpoint tool.
  • BY_ATTRIBUTE — Select raster datasets based on an attribute from the footprint attribute table. Commonly used attributes include acquisition date, cloud cover, or viewing angle.
String
sort_order
(Optional)

Choose whether to sort the rasters in ascending order or descending order.

  • ASCENDING — Sort the rasters in ascending order. This is the default.
  • DESCENDING — Sort the rasters in descending order.
Boolean
order_by_attribute
(Optional)

Order the raster datasets based on this field when the sort method is BY_ATTRIBUTE. The default attribute is ObjectID.

Field
order_by_base_value
(Optional)

Sort the rasters by their difference between this value and their value in the order_by_attribute field.

Variant
view_point
(Optional)

Set the coordinate location to use when sort_method is CLOSEST_TO_VIEWPOINT.

Point
computation_method
(Optional)

Choose how to build seamlines.

  • GEOMETRY — Generate seamlines for overlapping areas based on the intersection of footprints. Areas with no overlapping imagery will merge the footprints. This is the default.
  • RADIOMETRY — Generate seamlines based on the spectral patterns of features within the imagery.
  • COPY_FOOTPRINT —Generates seamlines directly from the footprints.
  • COPY_TO_SIBLING — Apply the seamlines from another mosaic dataset. The mosaic datasets have to be in the same group. For example, the extent of the panchromatic band does not always match the extent of the multispectral band. This option makes sure they share the same seamline.
  • EDGE_DETECTION — Generate seamlines over intersecting areas based on the edges of features in the area.

The Sort Method parameter applies to each computation method.

String
blend_width
(Optional)

Blending (feathering) occurs along a seamline between pixels where there are overlapping rasters. The blend width defines how many pixels will be blended.

If the blend width value is 10, and you use BOTH as the blend type, then 5 pixels will be blended on the inside and outside of the seamline. If the value is 10, and the blend type is INSIDE, then 10 pixels will be blended on the inside of the seamline.

Double
blend_type
(Optional)

Determine how to blend one image into another, over the seamlines. Options are to blend inside the seamlines, outside the seamlines, or both inside and outside.

  • BOTH — Blend using pixels on either side of the seamlines. For example, if the Blend Width is 10 pixels, then five pixels will be blended on the inside and outside of the seamline. This is the default.
  • INSIDE —Blend inside of the seamline.
  • OUTSIDE —Blend outside of the seamline.
String
request_size
(Optional)

Specify the number of columns and rows for resampling. The maximum value is 5,000. Increase or decrease this value based on the complexity of your raster data. Greater image resolution provides more detail in the raster dataset but also increases the processing time.

Long
request_size_type
(Optional)

Set the units for the Request Size.

  • PIXELS —Modify the request size based on the pixel size.This is the default option and resamples the closest image based on the raster pixel size.
  • PIXELSIZE_FACTOR —Modify the request size by specifying a scaling factor. This option resamples the closest image by multiplying the raster pixel size (from cell size level table) with the pixel size factor.
String
blend_width_units
(Optional)

Specify the unit of measurement for blend width.

  • PIXELS —Measure using the number of pixels. This is the default.
  • GROUND_UNITS —Measure using the same units as the mosaic dataset.
String
where_clause
SQL Expression
(Optional)

SQL expression to build seamlines on specific raster datasets within the mosaic dataset.

SQL Expression
area_of_interest
(Optional)

Build seamlines on all of the rasters that intersect this polygon. To select an area of interest, use an input feature class.

Feature Set
update_existing
(Optional)

Update new seamlines and regenerate existing seamlines that are affected by the addition or deletion of the mosaic dataset items.

  • IGNORE_EXISTING —Regenerates seamlines for all items and ignores existing seamlines, if any. This is the default.
  • UPDATE_EXISTING —Only update items without seamlines. If any new items overlap with the previously created seamlines, the existing seamlines may be affected.

This parameter is ignored if seamlines do not exist.

Boolean

Code sample

BuildSeamlines example 1 (Python window)

This is a Python sample for BuildSeamlines.

import arcpy
arcpy.BuildSeamlines_management("c:/data/Seamlines.gdb/md", "40",
                                "NORTH_WEST", "#", "#", "#", "#",
                                "RADIOMETRY", "5", "INSIDE", "#", 
                                "#", "GROUND_UNITS")
BuildSeamlines example 2 (stand-alone script)

This is a Python script sample for BuildSeamlines.

# Build seamlines using the  NORTH_WEST sort method

import arcpy
arcpy.env.workspace = "C:/Workspace"

mdname = "Seamlines.gdb/md"
cellsize = "40"
sortmethod = "NORTH_WEST"
sortorder = "#"
orderattribute = "#"
orderbase = "#"
viewpnt = "#"
computemethod = "RADIOMETRY"
blendwidth = "5"
blendtype = "INSIDE"
requestsize = "#"

arcpy.BuildSeamlines_management(
    mdname, cellsize, sortmethod, sortorder, orderattribute, 
    orderbase, viewpnt, computemethod, blendwidth, blendtype, 
    requestsize)

Environments

  • Extent
  • Parallel Processing Factor

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Raster toolset
  • Environment settings for raster data
  • Mosaic dataset seamlines

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal