File: INSTALL

package info (click to toggle)
gdal 1.10.1%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 84,320 kB
  • ctags: 74,726
  • sloc: cpp: 677,199; ansic: 162,820; python: 13,816; cs: 11,163; sh: 10,446; java: 5,279; perl: 4,429; php: 2,971; xml: 1,500; yacc: 934; makefile: 494; sql: 112
file content (37 lines) | stat: -rw-r--r-- 1,187 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
REQUIREMENTS :

* Make sure you have a full PostgreSQL/Postgis clean source installation 
* You need to have Proj4 installed and configured in Pstgis to get the driver work


INSTALL NOTES :

1* Go to frmts directory under GDAL source tree

2* Unpack pgchip archive in the frmts directory 

3* Edit GNUMakefile to set your Postgis include path

4* Add registration entry point declaration :
    - Open gdal/gcore/gdal_frmts.h
    - Add "void CPL_DLL GDALRegister_PGCHIP(void);" between the CPL_C_START and CPL_C_END tags

5* Add a call to the registration function in frmts/gdalallregister.c
    In the GDALAllRegister() function add the followinf lines :
    #ifdef FRMT_pgchip
        GDALRegister_PGCHIP();
    #endif
    
6* Add the format short name to the GDAL_FORMATS macro in GDALmake.opt.in (and to GDALmake.opt) :
    - Locate the variable GDAL_FORMATS and add "pgchip" (lowercase) to the list of formats
    
7* Add a format specific item to the EXTRAFLAGS macro in frmts/makefile.vc

8* Recompile your GDAL library :
    - make clean
    -./configure
    - make
    - make install
    
9* Test your pgchip installation :
    execute gdalinfo --formats and search for pgchip