# Name: FillGapsExample_1.py # Description: Fills gaps between features # Author: Esri # Date: March 2015 # Import arcpy module import arcpy # Import toolbox arcpy. Syntax (in_polygon_features, maximum_gap_area, fill_options, ) Parameter If a feature curves and different parts of the edge areĬlose to each other and create small gaps, the gaps along the edge Is a multipart feature, the gaps between the parts will not be filled. Unenclosed gaps between the edges of a single feature. This tool fills holes in a single feature but does not fill Enclosed gaps will be filled after unenclosed gaps are filled.Įnclosed gaps exist when there are gaps between two polygon boundaries. When the Fill Unenclosed Gaps parameter is checked, the unenclosed gaps will be filled first. The two polygon features do not have to touch each other at any point. Unenclosed gaps exist when two polygon boundaries are within a specified distance of each other. To prevent overlaps, add all relevant feature classes to the Input Polygon Features parameter. However, the area that was identified as a gap may have had a grass feature, which results in the modified feature overlapping the grass. If you add only lakes and forests, the tool will identify a gap between lakes and forests and fill the gap. For example, if there should be no gaps between features in the lakes, grass, and forest feature classes, add them to the Input Polygon Features parameter. When searching for gaps between features in multiple feature classes, add all of the feature classes as input polygons. For instance, if vegetation is first in the list, and lakes are the second input polygons when Fill By Order is chosen, the vegetation features will always be adjusted to fill the gap. The order of the inputs in the Input Polygon Features parameter list is important when the Fill Options parameter is set to Fill By Order. For instance, if a gap shares a longer boundary with vegetation features and a shorter boundary with lake features, the area of the gap will be added to the feature in the vegetation layer. When multiple compare feature layers are provided and the Fill Options parameter is set to Fill By Length, the area of the gap is added to the feature class that shares the longest boundary with the gap. The tool will find gaps between two features in the same feature class as well as gaps between features in different feature classes. When multiple feature classes are specified, the tool will search for gaps between all features in all the input feature classes. If only one input feature class is specified, the tool will search for gaps between individual features in that feature class. This tool requires one or more input feature classes. See Tools that do not create output datasets for more information and strategies to avoid undesired data changes.
0 Comments
Leave a Reply. |