react-native-mobilex 开发文档
    Preparing search index...

    Type Alias IFileConverter

    文件转化工具

    包含 矢量数据转geojson 和 shp 转 geojson

    type IFileConverter = {
        shp2Geojson: (
            src:
                | { base64: string; fileName: string; type: "base64" }[]
                | { file: File; type: "file" }[],
        ) => Promise<FeatureCollection[]>;
        shpFile2GeoJSON: (files: string[] | string) => Promise<FeatureCollection[]>;
        vectorFile2Geojson: (src: File[]) => Promise<FeatureCollection[]>;
    }
    Index

    Properties

    shp2Geojson: (
        src:
            | { base64: string; fileName: string; type: "base64" }[]
            | { file: File; type: "file" }[],
    ) => Promise<FeatureCollection[]>

    shp 转 geojson

    Type declaration

      • (
            src:
                | { base64: string; fileName: string; type: "base64" }[]
                | { file: File; type: "file" }[],
        ): Promise<FeatureCollection[]>
      • Parameters

        • src:
              | { base64: string; fileName: string; type: "base64" }[]
              | { file: File; type: "file" }[]

          shp相关文件 base64 字符串或者 File 对象

        Returns Promise<FeatureCollection[]>

        geojson 对象

    shpFile2GeoJSON: (files: string[] | string) => Promise<FeatureCollection[]>

    从 shp 文件转 geojson

    Type declaration

      • (files: string[] | string): Promise<FeatureCollection[]>
      • Parameters

        • files: string[] | string

          包含shp文件的zip文件路径或shp文件路径数组

        Returns Promise<FeatureCollection[]>

        geojson 对象

    vectorFile2Geojson: (src: File[]) => Promise<FeatureCollection[]>

    矢量数据转geojson

    Type declaration