Create Point Scene Layer Package (Data Management)

Summary

Creates a point scene layer package (.slpk file) from a point feature layer.

Usage

  • The output coordinate system should match the spatial reference of the web scene in which it will be displayed. If the intended display environment will be a global web scene, the output coordinate system must use GCS WGS84 or China Geodetic Coordinate System 2000.

  • The following are considerations for how z-coordinates should be defined in the 3D data being processed:

    • If the output scene layer package will have x,y coordinates in GCS WGS 84, the z-coordinate system can be defined using any ellipsoidal datum or EGM 96 or EGM 2008 through the Output Coordinate System parameter. If the z-coordinate system is undefined, vertical units will be in meters.
    • If the output scene layer package will store x,y values in projected coordinates and the z-coordinate system is not defined, the vertical units will be the same as the x,y coordinates. For 3D features with undefined z-units that differ from the x,y units, consider using either the Adjust 3D Z tool to convert the z-values to a matching linear unit or the Define Projection tool to define the correct z-datum.

  • Only the fields designated as visible in the layer properties will be preserved in the scene layer package. If certain fields are not needed in the resulting scene layer, consider hiding the unwanted columns.

  • Real-world units must be enabled on the feature layer with 3D model marker symbology prior to running the tool.

  • Extruded points are not supported as input.

  • Feature classes with multipoint geometry are not supported. Consider converting the multipoint feature class using the Multipart To Singlepart tool.

  • A scene layer package with a file size of less than 1 GB can be uploaded directly to ArcGIS Online or Portal for ArcGIS in a web browser. If it is larger than 1 GB, use the Share Package tool to upload it directly to ArcGIS Online or Portal for ArcGIS 10.3.1 or later.

Syntax

arcpy.management.CreatePointSceneLayerPackage(in_dataset, out_slpk, {out_coor_system}, {transform_method})
ParameterExplanationData Type
in_dataset

The input point feature layer.

Layer File; Feature Layer
out_slpk

The output scene layer package (.slpk).

File
out_coor_system
(Optional)

The coordinate system of the output scene layer package. It can be any projected or custom coordinate system. Supported geographic coordinate systems include WGS 1984 and China Geodetic Coordinate System 2000. WGS 1984 and EGM96 Geoid are the default horizontal and vertical coordinate systems, respectively. The coordinate system can be specified in any of the following ways:

  • Specify the path to a .prj file.
  • Reference a dataset with the desired coordinate system.
  • Use an arcpy.SpatialReference object.

Spatial Reference
transform_method
[transform_method,...]
(Optional)

The datum transformation method that will be used when the input layer's coordinate system uses a datum that differs from the output coordinate system. All transformations are bidirectional, regardless of the direction implied by their names. For example, NAD_1927_to_WGS_1984_3 will work correctly even if the datum conversion is from WGS 1984 to NAD 1927.

Note:

The ArcGIS Coordinate System data is required for vertical datum transformations between ellipsoidal and gravity-related and two gravity-related datums.

String

Code sample

CreatePointSceneLayerPackage example (Python window)

The following script demonstrates the use of the CreatePointSceneLayerPackage tool in the Python window.

import arcpy
arcpy.management.CreatePointSceneLayerPackage(r'c:\temp\points.lyrx',
                                              r'c:\temp\output.slpk',
                                              arcpy.SpatialReference(4326))

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics