load할 Shape
파일(.zip 형식)입니다.
Promise GeoJSON
객체가 반환됩니다.
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
local에 존재하는
Shape
파일(.zip 형식)을 비동기로 불러와GeoJSON
으로 변환해주는 함수입니다. *