• local에 존재하는 GeoJSON 파일을 비동기로 불러오는 함수입니다.

    Parameters

    • file: File

      load할 GeoJSON 파일입니다.

    Returns Promise<GeoJSON>

    Promise GeoJSON 객체가 반환됩니다.

    Example

    const fileInput = document.getElementById("fileUpload"); // HTML에 `fileUpload` id를 가진 Element 존재
    fileInput.onchange = async () => {
    const selectedFile = fileInput.files[0];
    const geoJSON = await analysis.utils.getGeoJSONfromLocal(selectedFile);
    console.log(geoJSON);
    }

Generated using TypeDoc