Validate Scene Layer (Data Management)

Summary

Evaluates a scene layer package (*.slpk) to determine its conformity to I3S specifications.

Usage

  • This tool will validate a scene layer package using the I3S specification to identify issues that may cause problems when viewing the scene layer in an ArcGIS client application. Consider running this tool before consuming or publishing a scene layer package generated outside of the ArcGIS platform.

  • The tool will identify the presence of the following:

    • Expected values for all required and recommended JSON objects
    • Declared textures for buildings, 3D objects, and integrated meshes
    • Declared attributes and associated statistics for points, building, 3D objects, and point clouds
    • Declared vertex attributes such as position, color, UV, and normals
    • Root nodes and declared child nodes in the node tree
  • The default output report is a readable JSON file, but it can also be generated as a text or .xml file. The report lists warnings for issues that do not conform to the I3S specifications but may not cause a problem in displaying the data, and errors for issues that will cause problems in rendering the scene layer package.

  • Note:

    Voxel scene layer packages are not supported as input.

Parameters

LabelExplanationData Type
Input Scene Layer

The scene layer package file that will be evaluated.

File
Output Log File

The output log file that will summarize the results of the evaluation.

File

arcpy.management.ValidateSceneLayerPackage(in_slpk, out_report)
NameExplanationData Type
in_slpk

The scene layer package file that will be evaluated.

File
out_report

The output log file that will summarize the results of the evaluation.

File

Code sample

ValidateSceneLayerPackage example (Python window)

The following sample demonstrates the use of this tool in the Python window.

import arcpy
arcpy.env.workspace = 'C:/Data'
arcpy.management.ValidateSceneLayerPackage('street_furniture.slpk', 'validate_report.json')

Environments

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics