
[GIS] SHP파일 추출시 Initializing... Could not create dbf file 에러 해결방법
데이터베이스/Postgresql
2023. 3. 13. 23:16
공간정보를 확인 할 일이 있어서, 서버에 있는 테이블을 SHP으로 내려 받을 일이 있었다. 그래서 pgsql2shp 명령어를 이용해 SHP파일을 내려 받았는데 다음과 같은 에러가 떴다. [root@sample /smaple]$ pgsql2shp -f my_shp_sample.shp -g geom -h 192.168.100.100 -u postgres -p 5432 -P postgres postgres public.my_shp_sample; Initializing... Could not create dbf file /smaple/my_shp_sample.shp 결론은 해당 디렉터리에 권한이 없어서 그런다. 해당 디렉터리에 권한을 부여해주던 권한이 있는 경로를 재설정 해주면 정상적으로 shp 파일을 내려 받..