UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

25 lines (23 loc) 886 B
/** * Performs the topological operation of breaking the input set of 2D polygons and polylines into segments and rebuilding a new set of polygons from the non-intersecting areas. * * @since 4.31 */ import type Polygon from "../Polygon.js"; import type { GeometryUnion } from "../types.js"; /** * Performs the topological lines to polygons operation. * * @param geometries - The set of input geometries. * All the geometries must have the same spatial reference. * @returns Returns the result of polygons. * @example * // Perform the lines to polygons operation * const polygons = linesToPolygonsOperator.executeMany([polyline1, polyline2]); */ export function executeMany(geometries: GeometryUnion[]): Polygon[]; /** * Indicates if the operator supports input geometries that contain curves. * The value will always be `true`. */ export const supportsCurves: boolean;