移除 Terrain 金字塔等级 (3D Analyst)

需要 3D Analyst 许可。

摘要

从 terrain 数据集中移除金字塔等级。

使用情况

  • 除了表示全分辨率金字塔的等级 0 之外,任何金字塔等级都可以移除。

  • 如果输入 terrain 用于企业级地理数据库,则无法将其注册为版本。

参数

标注说明数据类型
输入 Terrain

待处理的 terrain 数据集。

Terrain Layer
金字塔等级分辨率

要移除的由分辨率指定的金字塔等级。

Double

派生输出

标注说明数据类型
更新后的输入 Terrain

更新后的 terrain。

地形图层

arcpy.ddd.RemoveTerrainPyramidLevel(in_terrain, pyramid_level_resolution)
名称说明数据类型
in_terrain

待处理的 terrain 数据集。

Terrain Layer
pyramid_level_resolution

要移除的由分辨率指定的金字塔等级。

Double

派生输出

名称说明数据类型
derived_out_terrain

更新后的 terrain。

地形图层

代码示例

RemoveTerrainPyramidLevel 示例 1(Python 窗口)

下面的示例演示了如何在 Python 窗口中使用此工具。

arcpy.RemoveTerrainPyramidLevel_3d("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"

# Execute DeleteTerrainPoints
arcpy.DeleteTerrainPoints_3d(inTerrain, targetPts, AOI)
arcpy.AddMessage("Changing the terrain reference scale...")

# Execute ChangeTerrainReferenceScale
arcpy.ChangeTerrainReferenceScale_3d(inTerrain, 500, 1000)

# Execute RemoveTerrainPyramidLevel
arcpy.RemoveTerrainPyramidLevel_3d(inTerrain, 4)

环境

特殊情况

许可信息

  • Basic: 需要 3D Analyst
  • Standard: 需要 3D Analyst
  • Advanced: 需要 3D Analyst

相关主题