Label | Explanation | Data Type |
Input Scene Layer
(Optional) | The scene layer package (*.slpk) that will be evaluated. | File |
Output Log
File | The output log file that will summarize the results of the evaluation. | File |
Input Folder
(Optional) | The scene layer content (*.i3sREST) in a cloud store that will be evaluated. | Folder |
Summary
Evaluates a scene layer package (*.slpk or *.i3sREST) in a cloud store to determine its conformity to I3S specifications.
Usage
This tool will validate scene layer content 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, buildings, 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 .txt 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
arcpy.management.ValidateSceneLayerPackage({in_slpk}, out_report, {in_folder})
Name | Explanation | Data Type |
in_slpk (Optional) | The scene layer package (*.slpk) that will be evaluated. | File |
out_report | The output log file that will summarize the results of the evaluation. | File |
in_folder (Optional) | The scene layer content (*.i3sREST) in a cloud store that will be evaluated. | Folder |
Code sample
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')
The following sample demonstrates the use of this tool with .i3sREST input.
import arcpy
arcpy.env.workspace = 'C:/Data'
arcpy.management.ValidateSceneLayerPackage(None, 'validate_report.json',
'C:/cloud_connections/AWS.acs/mySceneLayer.i3srest')