Function importRawSections

  • Import RawSections into the current project, with options for usages, flows, etc. See

    Parameters

    • features: RawSection[]

      RawSections to import

    • options: {
          featureCategories?: GiraffeFeatureCategories;
          flows?: GiraffeNodeGraph[];
          insertionPoint?: GeoCoordinate;
          keepLayerIds?: boolean;
      } = {}

      Optional import options:

      • featureCategories: Giraffe feature categories to associate with the import, e.g. usages, markers, etc.
      • flows: Array of GiraffeNodeGraph objects to import
      • insertionPoint: GeoCoordinate for where to insert features in [lon, lat] format
      • keepLayerIds: Whether to preserve layer IDs from the input features, default is true
      • OptionalfeatureCategories?: GiraffeFeatureCategories
      • Optionalflows?: GiraffeNodeGraph[]
      • OptionalinsertionPoint?: GeoCoordinate
      • OptionalkeepLayerIds?: boolean

    Returns Promise<RawSection[]>

    features successfully imported in the project

    Error if feature validation fails or project app JSON is too large