arcpy.3d.RemoveTerrainPyramidLevel(in_terrain, pyramid_level_resolution)
|
名称
|
说明
|
数据类型
|
|
in_terrain
|
要处理的地形数据集。
|
Terrain Layer
|
|
pyramid_level_resolution
|
要移除的由分辨率指定的金字塔等级。
|
Double
|
派生输出
|
名称
|
说明
|
数据类型
|
|
derived_out_terrain
|
更新后的 Terrain。
|
Terrain Layer
|
代码示例
RemoveTerrainPyramidLevel 示例 1(Python 窗口)
下面的示例演示了如何在 Python 窗口中使用此工具:
arcpy.ddd.RemoveTerrainPyramidLevel("c:/data/sample.gdb/featuredataset/terrain", 10)
RemoveTerrainPyramidLevel 示例 2(独立脚本)
下面的示例演示了如何在独立 Python 脚本中使用此工具:
'''****************************************************************************
Name: RemoveTerrainPyramidLevel Example
Description: This script demonstrates how to add new
points to a terrain with the DeleteTerrainPoints tool, then use
the ChangeTerrainReferenceScale and RemoveTerrainPyramidLevel to
to adjust the pyramids for reducing the amount of data stored for
providing an optimized display performance.
****************************************************************************'''
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = "C:/data"
# Set Local Variables
inTerrain = "sample.gdb/featuredataset/terrain"
targetPts = "mass_pts_embed"
AOI = "1379938.43267328 235633.08128634 1382756.00752135 237681.848838107"
# Run DeleteTerrainPoints
arcpy.ddd.DeleteTerrainPoints(inTerrain, targetPts, AOI)
arcpy.AddMessage("Changing the terrain reference scale...")
# Run ChangeTerrainReferenceScale
arcpy.ddd.ChangeTerrainReferenceScale(inTerrain, 500, 1000)
# Run RemoveTerrainPyramidLevel
arcpy.ddd.RemoveTerrainPyramidLevel(inTerrain, 4)