1. docker gdal 활용
https://hub.docker.com/r/klokantech/gdal
Docker Hub
hub.docker.com
gdal환경 가져오기
docker run -ti --rm -v $(pwd):/data klokantech/gdal /bin/bash
# 포멧 확인
gdalinfo --formats | grep ECW
# 기본 환경 설치
apt-get install python3 python3-pip wget nano
# 파이썬 로드 환경 세팅
ln -s /usr/bin/python3 /usr/bin/python
# miniconda 다운로드
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source /root/.bashrc
# geopandas 설치
conda install -c conda-forge geopandas
# 이미지 클립
docker run -v $(pwd):/data klokantech/gdal gdalwarp -cutline /data/sample.geojson -crop_to_cutline /data/JB_gc.ecw /data/sample3.tif
############
ecw 만드는 과정
1. tif 결합
wsl 환경
docker start ecw
docker exec -it ecw /bin/bash
bash region.sh
2.
FWTool Shell 환경
gdal_translate out.tif out2.ecw -of ECW -co "LARGE_OK=YES"
3. EPSG 세팅
FWTools (GDAL/ORG Utility)에서 한국 좌표계 지원 방법
다양한 공간연산을 위한 툴인 FWTools에는 많은 기능들이 있습니다. 이 툴에는 GDAL과 OGR 라이브러리와 이를 이용한 유틸리티들이 모두 들어있으며 이를 구동하는데 필요한 종속적 라이브러리와
www.osgeo.kr
'개발 환경 > Python' 카테고리의 다른 글
PyQGIS scripts with OSGeo4W & PyCharm (0) | 2021.06.14 |
---|---|
jupyter notebook에서 anaconda env 사용 (0) | 2021.06.09 |