描述
Simplifies contours for use in cartographic products. This tool preserves the essential shape of a contour by eliminating extraneous bends.
使用方法
This tool modifies the input contours. You cannot undo this operation.
This tool first identifies redundant vertices, which are those that lie within a minimum allowable distance, or tolerance. Tolerance depends on the Scale parameter. This is accomplished in the tool using the Simplify Line tool with the POINT_REMOVE algorithm. Extraneous bends are composed of redundant vertices.
This tool then runs a smoothing algorithm, which is also dependent on the Scale parameter. This is accomplished in the tool using the Smooth Line tool with the PAEK algorithm.
The Scale parameter and tolerance values are used with Defense Mapping cartographic products.
Processing large datasets can exceed memory limitations. This is true with contours over large areas of interest, because the features have so many vertices. In such cases, consider processing input data by partition by identifying a relevant polygon feature class in the Cartographic Partitions environment setting. Portions of the data, defined by partition boundaries, will be processed sequentially. The resulting feature class will be seamless and consistent at partition edges.
Learn more about generalizing large datasets using partitions
语法
arcpy.defense.SimplifyContours(Input_Contours, Scale)
参数 | 说明 | 数据类型 |
Input_Contours | The input contours to be simplified. | Feature Layer |
Scale | Specifies the simplification and smoothing tolerance. Tolerance specifies a minimum allowable distance between vertices. The tool removes vertices that lie within this tolerance.
| String |
代码示例
SimplifyContours example (Python window)
The following code sample demonstrates how to use the SimplifyContours function.
# set gp environment
arcpy.env.workspace="C:/data"
# variables for tool
inputContours="mgcp.gdb/mgcp/contours"
mapScale="1:12500"
# execute the tool
arcpy.SimplifyContours_defense(inputContours,mapScale)
环境
许可信息
- Basic: 否
- Standard: 需要 Defense Mapping
- Advanced: 需要 Defense Mapping