Validate Scene Layer (Data Management)

Summary

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

Usage

  • This tool will validate a scene layer package against 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 publishing a scene layer package generated outside of the ArcGIS platform.

  • The tool will assess the following:

    • Presence of expected values for all required and recommended JSON objects.
    • Presence of declared textures for buildings, 3D objects, and integrated meshes.
    • Presence of declared attributes and associated statistics for points, building, 3D objects, and point clouds.
    • Presence of declared vertex attributes such as position, color, UV, and normals.
    • Presence of root nodes and declared child nodes in the node tree.
  • The output report defaults to a readable JSON file but 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.

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