• local에 존재하는 Shape 파일(.zip 형식)을 비동기로 불러와 GeoJSON으로 변환해주는 함수입니다. *

    Parameters

    • file: File

      load할 Shape 파일(.zip 형식)입니다.

    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.getShapefromLocal(selectedFile);
    console.log(geoJSON);
    }

Generated using TypeDoc