Build Mosaic Dataset Item Cache (Data Management Tools)
Summary
Inserts the Cached Raster function as the final step in all function chains within a mosaic dataset.
Usage
The Cached Raster function is inserted on the top of every function chain; therefore, it's the last function implemented in the chain.
If you do not check the Generate Cache parameter (set
generate_cachetoGENERATE_CACHEin Python) to generate the cache, you can use the Synchronize Mosaic Dataset tool to generate the cache.The cache is not moved with the mosaic dataset when it is shared (published) to the server. If you will be building the cache for a mosaic dataset that will be published as an image service, you may want to run this tool on the mosaic dataset after it has been shared. Also, make sure the path to the cache is accessible by the server. If you build the cache prior to publishing the mosaic dataset, you can move the cache to the server and update the cache path stored in the mosaic dataset.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Mosaic Dataset |
The mosaic dataset where you want to apply the cache function. |
Mosaic Layer |
|
Query Definition (Optional) |
An SQL expression to select specific raster datasets within the mosaic dataset on which you want the item cache built. |
SQL Expression |
|
Define Cache (Optional) |
Choose to define the mosaic dataset cache. A Cached Raster function will be inserted to the selected items. If an item already has a Cached Raster function, it will not add another one.
|
Boolean |
|
Generate Cache (Optional) |
Choose to generate the cache files based on the properties defined in the Cached Raster function, such as the location and the compression of the cache.
|
Boolean |
|
Cache Path (Optional) |
Choose to overwrite the default location to save your cache. If the mosaic dataset is inside of a file geodatabase, by default, the cache is saved in a folder with the same name as the geodatabase and a Once an item cache is created, regenerating an item cache to a different location is not possible by specifying a different cache path and rerunning this tool. It will still generate the item cache in the location where it was generated the first time. However, you can remove this function and insert a new one with the new path or use the Repair Mosaic Dataset tool to modify the cache path and run this tool to generate the item cache in a different location. |
Workspace |
|
Compression Method (Optional) |
Choose how you want to compress your data for faster transmission.
|
String |
|
Compression Quality (Optional) |
Set a compression quality when using the lossy method. The compression quality value is between 1 and 100 percent, with 100 compressing the least. |
Long |
|
Maximum Allowed Rows (Optional) |
Limit the size of the cache dataset by number of rows. If value is more than the number of rows in the dataset, the cache will not generate. |
Long |
|
Maximum Allowed Columns (Optional) |
Limit the size of the cache dataset by number of columns. If value is more than the number of columns in the dataset, the cache will not generate. |
Long |
|
Request Size Type (Optional) |
Resample the cache using one of these two methods:
|
String |
|
Request Size (Optional) |
Set a value to apply to the Request Size Type. |
Double |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Updated Mosaic Dataset |
The updated mosaic dataset. |
Mosaic Layer |
Environments
Extent, Parallel Processing Factor
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes