Syntax FACTORY_DEF SliverRemovingFactory [FACTORY_NAME ] [INPUT FEATURE_TYPE [ ]* []*]* [REPAIR (AbsoluteMajority|LongestBoundary|Random| NumberOfNeighbors|PriorityAttribute|AggressivePriority)] [PRIORITY_ATTR ] [OUTPUT (REPAIRED|INVALID) * FEATURE_TYPE [ ]* []*]* Overview Cleans up feature geometries by removing gaps and overlaps between areas in 2D. The factory creates a triangulation of all input polygons, and then assigns each triangle to exactly one of the input polygons. This means that sealed gaps between polygons will be assigned to one of the adjacent polygons, and overlapping regions will be assigned to one of the overlapping polygons. Currently, open gaps between polygons that are not sealed will not be removed. Once all triangles are assigned to a single polygon, the polygons will be reconstructed from the triangles. Measures will also be preserved. The REPAIR flag determines how ties are broken when assigning tags to each triangle. In longest boundary, for each region sharing the same set of tags, the tag belonging to the longest boundary will be used. For random mode, each contiguous region will be assigned randomly to a neighboring polygon. In the priority attribute modes, the value of PRIORITY_ATTR will determine the winner. Zero is considered highest priority. In regular priority attribute mode, the higher priority polygon will be assigned overlaps, and the lowest priority polygon will be assigned gaps. This preserves the boundary of the higher priority polygon. In aggressive priority mode, the higher priority polygon is assigned both gaps and overlaps. Assumptions Input features are assumed to have valid polygons. No duplicate points should be present in input polygons. Output Tags The SliverRemovingFactory supports the following output tags. REPAIRED Features that have been repaired. INVALID Features containing non-polygon geometries. TO BE RESOLVED AbsoluteMajority and NumberOfNeighbors added to Syntax section above as REPAIR parameters, but not documented.