DataBase/Postgresql

PostGIS Shapefile and DBF Loader 등록

shwezarl 2013. 8. 2. 13:14
version 1.9+ ~ 1.12.x 까지는 pgAdmin III 인스톨 폴더의 plugins.ini 파일로 관리
  • version 1.13 이후부터는 pgAdmin III 인스톨 폴더 내에 plugins.d 폴더 아래 plugin*.ini 다중 파일들로 관리
  • 만약 PostGIS Shapefile and DBF Loader PostGIS GUI 플러그인을 등록하는 경우
  • 1.12 이하 버전에서는 plugins.ini 파일에, 1.13 버전 부터는 plugins.d 폴더 내에 postgis.shp2pgsql-gui.ini 파일을 생성 또는 편집해서 등록할 수 있음
  • 두 버전 모두 다음의 내용을 등록하면 됨
  • ;
    ;PostGIS shp2pgsql-gui (Windows):
    ;
    Title=PostGIS Shapefile and DBF Loader
    Command="$$PGBINDIR\postgisgui\shp2pgsql-gui.exe" -h "$$HOSTNAME" -p $$PORT -U "$$USERNAME" -d "$$DATABASE" -W "$$PASSWORD"
    Description=Open a PostGIS ESRI Shapefile or Plain dbf loader console to the current database.
    KeyFile=$$PGBINDIR\postgisgui\shp2pgsql-gui.exe
    Platform=windows
    ServerType=postgresql
    Database=Yes
    SetPassword=Yes

    pgAdmin III 1.13 버전 이상일 경우 설치과정

    • PostgreSQL 설치폴더의 bin 폴더 내 postgisgui 폴더를 postgisgui_bk로 변경
    • 압축해제한 폴더에서 postgisgui 폴더를 복사하여 PostgreSQL 설치폴더의 bin 폴더에 복사한다.
    • PostgreSQL 설치폴더는 pgAdmin III 실행 후 Files -> Options... 메뉴 실행 후 PG bin path 정보를 확인해도 됨
    • 기존 설치한 pgAdmin III 폴더(일반적으로 PostgreSQL 설치 폴더 내 pgAdmin III 폴더)로 이동한다.
    • plugins.d 폴더를 찾아 그 아래 postgis.shp2pgsql-gui.ini 파일을 텍스트 편집기에서 불러오거나 없으면 생성한다.
    • 다음의 내용을 확인하여 없으면 추가한다. 기존에 PostGIS Shapefile and DBF Loader가 플러그인으로 등록되어 사용하고 있는 경우는 수정할 필요 없음
    • 위 글상자 참조
  • 마지막으로 pgAdmin III이 실행중일 경우 재시작하면 반영됨
  • ;
    ;PostGIS shp2pgsql-gui (Windows):
    ;
    Title=PostGIS Shapefile and DBF Loader 2.0
    Command="$$PGBINDIR\postgisgui\shp2pgsql-gui.exe" -h "$$HOSTNAME" -p $$PORT -U "$$USERNAME" -d "$$DATABASE" -W "$$PASSWORD"
    Description=Open a PostGIS ESRI Shapefile or Plain dbf loader console to the current database.
    KeyFile=$$PGBINDIR\postgisgui\shp2pgsql-gui.exe
    Platform=windows
    ServerType=postgresql
    Database=Yes
    SetPassword=Yes

     

    'DataBase > Postgresql' 카테고리의 다른 글

    POSTGRESQL ALTER문  (0) 2013.08.02
    Automatically fixing ring self-intersections in shp2pgsql 발생시  (0) 2013.08.02
    DB CASE 식  (0) 2013.08.02
    postgresql 세팅 및 사용  (0) 2010.11.19