Workspace To New Mosaic (Samples)

Резюме

Creates a new raster dataset in the output location and mosaics all the raster datasets in the input workspace, or geodatabase, into it.

Прежние версииПрежние версии:
This tool has been deprecated. For more information, see An overview of the Samples toolbox.

Использование

Синтаксис

WorkspaceToNewMosaic_samples (input_workspace, output_location, output_raster_name, {config_keyword}, {mosaic_mode}, {colormap_mode}, {pyramid_origin}, {ignore_background_value}, {nodata_value}, {convert_1_bit_data_to_8_bit}, {mosaic_tolerance})
ПараметрОбъяснениеТип данных
input_workspace

The location where the raster datasets will be mosaicked into the output raster dataset. It can be a directory, personal geodatabase, file geodatabase, or an enterprise geodatabase.

Folder | Workspace
output_location

The location where the new raster dataset will be created.

Folder | Workspace
output_raster_name

The dataset name of the output raster.

String
config_keyword
(дополнительно)

Определяет параметры хранения (конфигурации) для файловых или ArcSDE баз геоданных. Персональные базы геоданных не используют ключевые слова конфигурации.

Ключевые слова конфигурации ArcSDE устанавливаются администратором базы геоданных.

String
mosaic_mode
(дополнительно)

The method used to mosaic overlapping areas.

  • FIRSTThe output cell value of the overlapping areas will be the value from the first raster dataset mosaicked into that location.
  • LASTThe output cell value of the overlapping areas will be the value from the last raster dataset mosaicked into that location. This is the default.
  • BLENDThe output cell value of the overlapping areas will be a horizontally weighted calculation of the values of the cells in the overlapping area.
  • MEANThe output cell value of the overlapping areas will be the average value of the overlapping cells.
  • MINIMUMThe output cell value of the overlapping areas will be the minimum value of the overlapping cells.
  • MAXIMUMThe output cell value of the overlapping areas will be the maximum value of the overlapping cells.
String
colormap_mode
(дополнительно)

The method used to choose which colormap from the input rasters will be applied to the mosaic output.

  • FIRSTThe colormap from the first raster dataset in the list will be applied to the output raster mosaic. This is the default.
  • LASTThe colormap from the last raster dataset in the list will be applied to the output raster mosaic.
  • MATCHEnsures that all the colors from the input raster datasets are in the final colormap and that they are all unique.
  • REJECTOnly the raster datasets that do not have a colormap associated with them will be mosaicked.
String
pyramid_origin
(дополнительно)

This is the origination location of the raster pyramid. It is recommended that you specify this point if you plan on building large mosaics in a file geodatabase or an ArcSDE geodatabase, especially if you are plan on mosaicking to them over time (for example, for updating).

The pyramid reference point should be set to the upper left corner of your raster dataset.

In setting this point for a file geodatabase or an ArcSDE geodatabase, partial pyramiding will be used when updating with a new mosaicked raster dataset. Partial pyramiding updated the parts of the pyramid that do not exist due to the new mosaicked datasets. Therefore, it is good to set your pyramid reference point so that your entire raster mosaic will be below and to the right of this point. However, a pyramid reference point should not be set too large either.

Point
ignore_background_value
(дополнительно)

Используйте эту опцию для удаления нежелательных значений, созданных вокруг растровых данных. Указанное значение будет отделено от остальных значений набора растровых данных. Например, значение 0 по границам набора растровых данных будет отделено от значения 0 внутри набора растровых данных.

Указанное значение элемента растра будет записано в выходной набор растровых данных как NoData (Нет Данных).

Чтобы игнорировать значения фона для растров персональной базы геоданных или отдельных файловых растров, значение Игнорировать значение фона должно быть установлено на то же значение, что и NoData. Растры ArcSDE и файловой базы геоданных будут работать без этого дополнительного шага.

Double
nodata_value
(дополнительно)

Все элементы растра с указанными значениями будут записаны в выходной набор растровых данных как NoData (Нет Данных).

Double
convert_1_bit_data_to_8_bit
(дополнительно)

Входной 1-битный набор растровых данных может быть конвертирован в 8-битный набор растровых данных. В этой конвертации значение 1 во входном наборе растровых данных поменяется на 255 в выходном наборе растровых данных. Это полезно при импорте 1-битного набора растровых данных в ArcSDE. 1-битовый набор растровых данных имеет 8-битовые пирамидные слои при хранении в файловой системе, но в ArcSDE 1-битовый набор растровых данных может иметь только 1-битовый пирамидный слой, что делает отображение непривлекательным. Конвертируя данные в 8 бит в ArcSDE, пирамидные слои строятся, как 8 бит вместо 1 бит, что приведёт к нормальному отображению набора растровых данных.

  • Нет (NONE)Конвертация не будет выполняться. Это значение используется по умолчанию.
  • ОдинБит-в-8Бит (OneBitTo8Bit)Входной растр будет конвертирован.
Boolean
mosaic_tolerance
(дополнительно)

При объединении растров в мозаику пикселы целевого и исходного растров могут быть не выровнены относительно друг друга. Если есть рассогласование пикселов, необходимо принять решение, будет ли происходит пересчет, или же данные должны быть сдвинуты. Допуск мозаики контролирует, имеет ли место пересчет пикселов, или же должны ли пикселы быть сдвинуты.

Если смещение пикселов входного и результирующего наборов данных больше допуска, будет выполнен пересчет. Если разница в выравнивании пикселов (входящего и результирующего наборов данных) меньше этого допуска, пересчет не будет выполняться (вместо этого будет выполнен сдвиг).

The unit of tolerance is a pixel; the valid value range is 0 to 0.9999. The maximum a pixel can be shifted is 0.5, so anything you set that is greater than 0.5 will guarentee a shift takes place. A tolerance of zero guantees resampling, if there is a misalignment in pixels.

Например, исходные и целевые пикселы имеют смещение 0,25. Если допуск мозаики установлен на 0,2, то выполняется пересчет, поскольку смещение пикселей превышает допуск. Если допуск мозаики установлен на 0,3, то пикселы будут сдвинуты.

Float

Пример кода

import arcgisscripting
gp = arcgisscripting.create()
 
gp.WorkspaceToNewMosaic_samples("D:\\temp\\tempws, "Database Connections\\raster.sde", "wrksp_to_new_mosaic", "#" "LAST", "FIRST", "#", "#", "#", "#", "0")

Параметры среды

Этот инструмент не использует параметры среды геообработки
9/11/2013