Differences
This shows you the differences between two versions of the page.
postgis [2014/07/11 11:55] |
postgis [2021/04/05 11:23] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PostGIS ====== | ||
+ | PostGIS is a PostgreSQL extension for geo spatial searches and processing. | ||
+ | ===== Installation ===== | ||
+ | Install PostgreSQL from your normal package management system. Also install the postgis extension, postgis or postgresql-9.1-postgis (the version may vary). | ||
+ | |||
+ | Crunchbang 11 waldorf based on Debian 7 " | ||
+ | [[http:// | ||
+ | |||
+ | < | ||
+ | The first step in creating a PostGIS database is to create a simple PostgreSQL database. | ||
+ | |||
+ | createdb [yourdatabase] | ||
+ | |||
+ | Many of the PostGIS functions are written in the PL/pgSQL procedural language. As such, the next step to create a PostGIS database is to enable the PL/pgSQL language in your new database. This is accomplish by the command | ||
+ | |||
+ | createlang plpgsql [yourdatabase] | ||
+ | |||
+ | Now load the PostGIS object and function definitions into your database by loading the postgis.sql definitions file (located in [prefix]/ | ||
+ | |||
+ | psql -d [yourdatabase] -f / | ||
+ | |||
+ | For a complete set of EPSG coordinate system definition identifiers, | ||
+ | |||
+ | psql -d [yourdatabase] -f / | ||
+ | |||
+ | If you wish to add comments to the PostGIS functions, the final step is to load the postgis_comments.sql into your spatial database. The comments can be viewed by simply typing \dd [function_name] from a psql terminal window. | ||
+ | |||
+ | psql -d [yourdatabase] -f / | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | For a complete installation manual see the PostGIS wiki page: http:// | ||
+ | |||
+ | < | ||
+ | |||
+ | {{tag> |