Skip To Content

Create Integrated Mesh Scene Layer Package

Summary

Creates a scene layer package from OpenSceneGraph binary (OSGB) data.

Usage

  • Similar to other 3D graphic formats, the Open Scene Graph Binary (OSGB) format does not natively support specifying or capturing the coordinate system of the model. Typically, OSGB files are output in a Cartesian coordinate system that locates data at fixed coordinates. The x-, y-, z-coordinates of the model are not inherently geographic locations; instead, they are locations relative to an arbitrary geometric origin (0, 0, 0). One such typical coordinate system used for such models is ENU (Easting-Northing-UP) convention, where the x-axis can be thought of as an easting direction and the y-axis as a northing direction, and the z-axis is up. Models in ENU convention are directly translatable to a UTM coordinate system. This tool will project the output scene layer package from a given UTM coordinate system to the coordinate system specified by the Anchor Point parameter. If the scene layer package output is expected to be in the same coordinate system as the input data, specify an anchor point with a matching spatial reference to the input OSGB file.

  • Depending on the author of the OSGB files, a metadata file may be included that reveals the local reference grid along with the center point of the Open Scene Graph model.

  • Specify the Anchor Point parameter to place the center of the OSGB file in real-world coordinates. If there are multiple points in the feature class, only the first one will be used to georeference the data.

Syntax

CreateIntegratedMeshSceneLayerPackage(in_dataset, out_slpk, anchor_point, {file_suffix})
ParameterExplanationData Type
in_dataset
[in_dataset,...]

The OSGB files, or folders containing OSGB files, that will be imported into the integrated mesh scene layer package. This parameter allows a selection of multiple OSGB files or selection of multiple folders containing OSGB files. A nested folder structure, such as folders within folders, is not supported as input.

File; Folder
out_slpk

The integrated mesh scene layer package that will be produced.

File
anchor_point

The point feature that will be used to position the center of the OpenSceneGraph model. If there are multiple points in the feature class, only the first one will be used to georeference the data.

Feature Layer
file_suffix
(Optional)

Specifies the files that will be processed for the input dataset.

  • *All binary files, regardless of their extension, will be processed to determine if they are in the OSGB format. This is the default.
  • OSGBOnly files with the OSGB extension will be processed.
String

Code sample

CreateIntegratedMeshSceneLayerPackage example (Python window)

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

import arcpy
arcpy.env.workspace = "C:/temp"
arcpy.CreateIntegratedMeshSceneLayerPackage_management(
    "terrain_osgb", "mesh.slpk", "anchor.shp", "OSGB")
CreateIntegratedMeshSceneLayerPackage example 2 (Python window)

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

import arcpy
arcpy.env.workspace = "C:/temp"
arcpy.CreateIntegratedMeshSceneLayerPackage_management(
    ["Tile_+001_+001", "Tile_+001_+002", "Tile_+002_+001"], "mesh.slpk", 
    "anchor.shp", "OSGB")

Licensing information

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

Related topics