Summary
Simplifies the boundary or footprint of building polygons while maintaining their essential shape and size.
Illustration
Usage
The Minimum Area parameter applies to simplified buildings only. Any buildings that are smaller than the minimum area after the simplification process is completed will be removed from the output feature class.
Use the Input barrier layers parameter to identify features that must not be crossed by simplified buildings. Barrier features can be points, lines, or polygons.
The output feature class will include a BLD_STATUS field to indicate simplification status as follows:
- 1—A single building has been simplified
- 2—A single building has been simplified to its minimum bounding rectangle
- 3—A building smaller than the tolerance squared has been simplified to its minimum bounding rectangle
- 5—A building that has not been simplified
If the Check for spatial conflicts parameter is used, the tool will detect spatial conflicts and add a SimBldFlag field to the output to store conflict flags. A value of 0 means no conflict; a value of 1 means conflict.
This tool cannot be executed in an edit session.
Input z-values can be preserved if they're specified in the Environment settings. When output vertices are coincident to input feature vertices, z-values will be transferred to output vertices. Otherwise, z-values will be derived either from existing z-values or through interpolation.
Invalid (self-intersecting) geometry may be created during the simplification process and will be repaired but not improved. For example, if a polygon crosses itself, the polygon will become a multipart polygon but will still appear self-crossing.
Processing large datasets may exceed memory limitations. 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. See Generalizing large datasets using partitions for more information.
Syntax
arcpy.cartography.SimplifyBuilding(in_features, out_feature_class, simplification_tolerance, {minimum_area}, {conflict_option}, {in_barriers})
Parameter | Explanation | Data Type |
in_features | The building polygons to be simplified. | Feature Layer |
out_feature_class | The output feature class to be created. | Feature Class |
simplification_tolerance | The tolerance for building simplification. A tolerance must be specified, and it must be greater than zero. You can choose a preferred unit; the default is the feature unit. | Linear Unit |
minimum_area (Optional) | The minimum area for a simplified building to be retained in feature units. The default value is zero, that is, to keep all buildings. You can specify a preferred unit; the default is the feature unit. | Areal Unit |
conflict_option (Optional) | Specifies whether spatial conflicts—that is, overlapping or touching among buildings—will be identified. A SimBldFlag field is added to the output to store conflict flags. A value of 0 means no conflict; a value of 1 means conflict.
| Boolean |
in_barriers [in_barriers,...] (Optional) | The input layers containing features to act as barriers for simplification. Resulting simplified buildings will not touch or cross barrier features. For example, when simplifying buildings, the resulting simplified building areas do not cross road features defined as barriers. | Feature Layer |
Derived Output
Name | Explanation | Data Type |
out_point_feature_class | The output point feature class that will store points that represent buildings that are removed because they are smaller than the Minimum Area parameter value (minimum_area in Python). This parameter is only used when the Keep collapsed points parameter is checked (collapsed_point_option = "KEEP_COLLAPSED_POINTS" in Python). | Feature Class |
Code sample
SimplifyBuilding example 1 (Python window)
The following Python window script demonstrates how to use the SimplifyBuilding function in immediate mode.
import arcpy
import arcpy.cartography as CA
arcpy.env.workspace = "C:/data"
CA.SimplifyBuilding("buildings.shp", "C:/output/output.gdb/simplified_buildings", 10)
SimplifyBuilding example 2 (stand-alone script)
The following stand-alone script demonstrates how to use the SimplifyBuilding function.
# Name: SimplifyBuilding_Example2.py
# Description: Aggregate building features and then simplify them
# Import system modules
import arcpy
import arcpy.cartography as CA
# Set environment settings
arcpy.env.workspace = "C:/data/Portland.gdb/Buildings"
# Set local variables
inBuildingFeatures = "houses"
aggregatedFeatures = "C:/data/PortlandOutput.gdb/residential_areas"
simplifiedFeatures = "C:/data/PortlandOutput.gdb/residential_simplified"
# Aggregate house polygons.
CA.AggregatePolygons(inBuildingFeatures, aggregatedFeatures, 10, 100, 100,
"ORTHOGONAL")
# Simplify residential building polygons.
CA.SimplifyBuilding(aggregatedFeatures, simplifiedFeatures, 10, 100,
"CHECK_CONFLICTS")
Environments
Licensing information
- Basic: No
- Standard: No
- Advanced: Yes