Because the ShapeEditor will make heavy use of PostGIS, we first need to set up a PostgreSQL user and database for the ShapeEditor to use and then enable the PostGIS extension for this database. Let's do that now:
createuser -P shapeeditor
shapeeditor Postgres user. Make sure you remember the password you use, as you'll need to use it when setting up the ShapeEditor so that it can access the database.We next need to create the database itself:
% createdb shapeeditor
shapeeditor user can access the shapeeditor database:
% psql -c "GRANT ALL PRIVILEGES ON DATABASE shapeeditor TO shapeeditor; "
shapeeditor database by turning on the PostGIS extension:
% psql -d shapeeditor -c "CREATE EXTENSION postgis;"
Congratulations! You have just set up a PostGIS database for the ShapeEditor application to use.