Generate Level Of Detail (Data Management)

Summary

Generates a new scene layer package with properly defined levels of detail.

Usage

  • Use this tool for integrated mesh scene layer packages generated from third-party software that have a single level of detail. This includes scene layer packages generated from FME by Safe Software or ArcGIS Data Interoperability.

  • Integrated mesh is the only supported scene layer type.

Parameters

LabelExplanationData Type
Input Dataset

The input integrated mesh scene layer package.

File
Output Dataset

The output scene layer package.

File
Texture Optimization
(Optional)

Specifies the textures that will be optimized according to the target platform where the scene layer package will be used.

Caution:

Optimizations that include KTX2 may take significant time to process. For fastest results, use the Desktop or None options.

  • AllAll texture formats will be optimized including JPEG, DXT, and KTX2 for use in desktop, web, and mobile platforms.
  • DesktopWindows, Linux, and Mac supported textures will be optimized including JPEG and DXT for use in ArcGIS Pro clients on Windows and ArcGIS Maps SDKs desktop clients on Windows, Linux, and Mac. This is the default.
  • MobileAndroid and iOS supported textures will be optimized including JPEG and KTX2 for use in ArcGIS Maps SDKs mobile applications.
  • NoneJPEG textures will be optimized for use in desktop and web platforms.
String

arcpy.management.GenerateLevelOfDetail(in_dataset, out_dataset, {texture_optimization})
NameExplanationData Type
in_dataset

The input integrated mesh scene layer package.

File
out_dataset

The output scene layer package.

File
texture_optimization
(Optional)

Specifies the textures that will be optimized according to the target platform where the scene layer package will be used.

Caution:

Optimizations that include KTX2 may take significant time to process. For fastest results, use the DESKTOP or NONE options.

  • ALLAll texture formats will be optimized including JPEG, DXT, and KTX2 for use in desktop, web, and mobile platforms.
  • DESKTOPWindows, Linux, and Mac supported textures will be optimized including JPEG and DXT for use in ArcGIS Pro clients on Windows and ArcGIS Maps SDKs desktop clients on Windows, Linux, and Mac. This is the default.
  • MOBILEAndroid and iOS supported textures will be optimized including JPEG and KTX2 for use in ArcGIS Maps SDKs mobile applications.
  • NONEJPEG textures will be optimized for use in desktop and web platforms.
String

Code sample

GenerateLevelOfDetail example 1 (Python window)

The following script demonstrates how to use the GenerateLevelOfDetail function in the Python window.

import arcpy
arcpy.management.GenerateLevelOfDetail(
    in_dataset=r"C:\test\mesh.slpk",
    out_dataset=r"C:\test\meshLOD.slpk",
    texture_optimization="DESKTOP"
)

Environments

This tool does not use any geoprocessing environments.

Related topics