ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Regularize Building Footprint

  • Summary
  • Illustration
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Normalizes the footprint of building polygons by eliminating undesirable artifacts in their geometry.

Illustration

Usage

  • This tool utilizes a polyline compression algorithm to correct distortions in building footprint polygons created through feature extraction workflows that may produce undesirable artifacts.

  • The tolerance is used to define the region surrounding the polygon's boundary that the regularized polygon must fit into. This region can best be visualized by converting the polygon's boundary to a line feature, then buffering the line by the desired tolerance to get a sense for how it is applied by the tool.

  • When the specified parameters cannot produce a regularized solution for a given input, the original feature is copied to the output.

  • The output will have a field named STATUS whose values indicate the following:

    • 0—Original feature
    • 1—Regularized feature
    Note:

    If your output contains features that could not be regularized, consider iteratively running the tool by selecting the unprocessed features and altering the parameters to identify a solution. Background imagery can be very helpful for evaluating the accuracy of the regularized output.

Syntax

RegularizeBuildingFootprint_3d (in_features, out_feature_class, method, tolerance, densification, precision, diagonal_penalty, min_radius, max_radius)
ParameterExplanationData Type
in_features

The polygons that represent the building footprints to be regularized.

Feature Layer
out_feature_class

The feature class that will be produced by this tool.

Feature Class
method

The regularization method to be used in processing the input features.

  • RIGHT_ANGLES —Useful for building footprints that are primarily defined by right angles.
  • RIGHT_ANGLES_AND_DIAGONALS —Useful for buildings footprints that are comprised of right angles and diagonal sides.
  • ANY_ANGLE —Useful for buildings with highly irregular footprints
  • CIRCLE —Useful for buildings with circular characteristics, like grain silos and water towers.
String
tolerance

The maximum distance that the regularized footprint can deviate from the boundary of its originating feature. The specified value will be based on the linear units of the input feature's coordinate system.

Double
densification

The sampling interval that will be used to evaluate whether the regularized feature will be straight or bent. The densification must be equal to or less than the tolerance value.

This parameter is only used with methods that support right angle identification.

Double
precision

The precision used by the spatial grid employed in the regularization process. Valid values range from 0.05 to 0.25.

Double
diagonal_penalty

Controls the distance bias for creating right-angle connections. Distances smaller than the diagonal penalty will be used to create right angles.

This parameter is only used with the Right Angles and Diagonals method.

Double
min_radius

The smallest radius that a regularized circle can have. A value of 0 implies there is no minimum size limit. This option is only available with the circle method.

Double
max_radius

The largest radius that a regularized circular can have. This option is only available with the circle method.

Double

Code sample

RegularizeBuildingFootprint example 1 (Python window)

The following sample demonstrates the use of this tool in the Python window.

arcpy.env.workspace = 'c:/data'
arcpy.ddd.RegularizeBuildingFootprint('rough_footprints.shp', 
                                      'regularized_footprints.shp',
                                      method='Circle', tolerance=1.5, min_radius=10, 
                                      max_radius=20)
RegularizeBuildingFootprint example 2 (stand-alone script)

The following sample demonstrates the use of this tool in a stand-alone Python script.

'''****************************************************************************
       Name: Regularize Building Footprints
Description: Extract footprint from lidar points classified as buildings and 
             regularize its geometry.

****************************************************************************'''
import arcpy

lasd = arcpy.GetParameterAsText(0)
footprint = arcpy.GetParameterAsText(1)

try:
    lasd_layer = 'building points'
    arcpy.management.MakeLasDatasetLayer(lasd, lasd_layer, class_code=6)
    temp_raster = 'in_memory/bldg_raster'
    arcpy.management.LasPointStatsAsRaster(lasd_layer, temp_raster,
                                           'PREDOMINANT_CLASS', 'CELLSIZE', 2.5)
    temp_footprint = 'in_memory/footprint'
    arcpy.conversion.RasterToPolygon(temp_raster, temp_footprint)
    arcpy.ddd.RegularizeBuildingFootprint(temp_footprint, footprint, 
                                          method='RIGHT_ANGLES')


except arcpy.ExecuteError:
    print(arcpy.GetMessages())

Environments

  • Current Workspace
  • Output Coordinate System
  • Geographic Transformations
  • Extent

Licensing information

  • ArcGIS for Desktop Basic: Requires 3D Analyst
  • ArcGIS for Desktop Standard: Requires 3D Analyst
  • ArcGIS for Desktop Advanced: Requires 3D Analyst

Related topics

  • An overview of the 3D Features toolset
  • About 3D features
  • Fundamentals of geoprocessing with the ArcGIS 3D Analyst extension

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal