• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

B. MapServer Reference Guide for Vector ... > PostGIS/PostgreSQL Database

Name

PostGIS/PostgreSQL Database

Synopsis

PostGIS is Refraction Research’s spatial extension to the PostgreSQL enterprise database.

PostGIS support

PostGIS is supported directly by MapServer and must be compiled into MapServer to work.

In most cases, PostgreSQL and PostGIS libraries (.dll or .so) must be present in the system’s path environment for functionality to be present. This includes the libpq and libpostgis libraries.

Map file example

  • Specify CONNECTIONTYPE POSTGIS.

  • Define CONNECTION as:

        "host=
                               yourhostname
                             dbname=
                               yourdatabasename
                             user=
                               yourdbusername
                            
        password=
                               yourdbpassword
                             port=
                               yourpgport
                            "

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint