OSGeo4W 배치파일 실행 오류

166 views
Skip to first unread message

진종훈

unread,
Mar 7, 2012, 8:44:04 PM3/7/12
to osge...@googlegroups.com
안녕하세요.
윈도우즈7에서 QGIS 1.7.4를 설치하고 사용중입니다. 한글화되니 뭔가 어색하기도 하지만 좋네요.

OSGeo4W도 함께 설치가 되서 실행해보려고 하니 실행이 안되었습니다. 배치파일 실행에 문제가 있는것 같더군요. QGIS 설치경로(기본은 "C:\Program Files\Quantum GIS Wroclaw")에 있는 OSGeo4W.bat에서 OSGEO4W_ROOT 변수를 수정해줘야 합니다. 디렉토리 경로에 빈칸이 들어가서 그런데요, 예전에 도스에서 쓰던 스타일로 바꾸는게 간단한 방법입니다.

원본
...
rem Root OSGEO4W home dir to the same directory this script exists in
set OSGEO4W_ROOT=%~dp0
rem Remove trailing backslash
set OSGEO4W_ROOT=%OSGEO4W_ROOT:~0,-1%
...

수정
...
rem Root OSGEO4W home dir to the same directory this script exists in
rem set OSGEO4W_ROOT=%~dp0
rem Remove trailing backslash
rem set OSGEO4W_ROOT=%OSGEO4W_ROOT:~0,-1% 
set OSGEO4W_ROOT=C:\PROGRA~1\QUANTU~1
...

사용환경에 따라서 경로명에 축약형으로 표시된 디렉토리의 숫자는 1이 아닐 수도 있겠습니다. 원래 스타일 유지하면서 수정할 수도 있겠지만 그러려면 다른 파일들까지 수정해줘야합니다.

JANGBI

unread,
Mar 9, 2012, 12:30:15 AM3/9/12
to OSGeo(Open Source GeoSpatial) 한국어 지부
오~ 감사합니다.
그렇게 해결하면 되는거군요.
이제 FWTools를 안깔아도 대부분의 유틸을 사용 가능하겠네요.

도스식 경로는 dir /X 명령으로 확인 가능하네요.

Reply all
Reply to author
Forward
0 new messages