geoimport
    Preparing search index...

    Function toTable

    • Convert an ODS or an XLSX file to the corresponding JavaScript table (array of objects).

      This is a wrapper around 'ogr2ogr'.

      Parameters

      • file: File

        The file to convert.

      • Optionaloptions: ToTableOptions = {}

        The options (such as the name of the sheet to extract when the file contains multiple sheets).

      Returns Promise<Record<string, unknown>[]>

      • The resulting table as an array of objects.
      • If the format is not supported or if there is an error while creating resulting file.