Welcome back, young map explorer! In Module 1, you learned what spatial data is. You learned that spatial data is data about location. You learned about points, lines, and polygons. You learned about coordinates, latitude, and longitude. You learned about PostGIS.
In this module, we are going to get our hands dirty. We will learn how to install PostGIS on a computer. We will learn how to create a spatial database. We will learn how to create spatial tables. We will learn how to add spatial data to those tables. We will also learn how to run simple spatial queries to find our data. We will learn how to import and export spatial data using tools like QGIS.
Do not worry if you have never installed software before. We will go step by step. We will use very simple words. We will explain everything in a way that a 13-year-old can understand. We will use stories, examples from Nigeria, examples from school, and examples from home. We will use pictures made from keyboard characters (ASCII art) to help you see what we mean. By the end of this module, you will know:
This module is long because it is a complete chapter, not just short notes. Take your time. Read one lesson at a time. Do the exercises. Ask questions. Practice on your computer. Are you ready? Let us begin!
After finishing this module, you should be able to:
Ngozi was a 13-year-old girl who lived in Ibadan, Nigeria. Her school was very big. New students often got lost. They could not find the library, the laboratory, or the sports field.
The principal asked Ngozi for help. "Can you make a map of the school?" she asked.
Ngozi remembered her PostGIS lessons. "Yes!" she said. "I can build a spatial database. I can store the location of every building. Then I can make a map."
Ngozi installed PostGIS on the school computer. She created a spatial database called "school". She created a table called "buildings". She added points for each building.
She created a table called "paths". She added lines for each walkway. She created a table called "fields". She added polygons for each sports field.
Then she connected QGIS to her database. In minutes, she had a beautiful map of the school. New students could now find their way easily.
Moral of the story: Creating and managing spatial data is not hard. Anyone can learn to do it. You can help your school and community.
Install means to put software on a computer so it can be used. When you install a program, you copy the files to your computer and set them up.
You cannot use PostGIS until you install it. Installation puts all the necessary files in the right place.
Imagine you buy a new toy. But the toy is in pieces. You must put it together before you can play. Installing software is like putting the toy together. You prepare it for use.
When you get a new phone, you install apps like WhatsApp. The apps do not work until you install them.
In a school computer lab, the teacher installs learning software on the computers. Students can use the software after it is installed.
At home, your parents may install a game on the family computer. You can play the game after it is installed.
In a Nigerian bank, the IT team installs banking software on the computers. The tellers can use the software to serve customers.
INSTALL:
[ DOWNLOAD SOFTWARE ]
|
V
[ RUN INSTALLER ]
|
V
[ FILES ARE COPIED ]
|
V
[ SOFTWARE IS READY TO USE ]
Install means to put software on a computer so it can be used. You must install PostGIS before you can use it.
You learned what install means. You saw examples from home, school, and Nigeria. Now you know that installation prepares software for use.
Installing PostGIS means adding the PostGIS extension to PostgreSQL. PostgreSQL must be installed first. Then you add PostGIS.
Without PostGIS, PostgreSQL cannot understand spatial data. PostGIS adds the ability to store and search points, lines, and polygons.
Imagine you have a phone. You install an app to add a new feature. Installing PostGIS is like installing an app on PostgreSQL.
A mapping company installs PostGIS on its servers. It can now store locations.
A school installs PostGIS on its computer. It can now map the school compound.
At home, you install PostGIS on your computer. You can now map your neighbourhood.
In a Nigerian bank, the IT team installs PostGIS on the database server. The bank can now map customer locations.
INSTALL POSTGIS:
[ INSTALL POSTGRESQL ]
|
V
[ INSTALL POSTGIS ]
|
V
[ OPEN psql ]
|
V
[ CREATE EXTENSION postgis; ]
|
V
[ POSTGIS IS READY! ]
Installing PostGIS means adding the PostGIS extension to PostgreSQL. You use the CREATE EXTENSION postgis command.
You learned how to install PostGIS. You saw a list of steps. Now you can install PostGIS on your own computer.
A spatial database is a database that can store and search spatial data. Creating a spatial database means making a new database and adding PostGIS to it.
You cannot store spatial data until you create a spatial database. The database is the container for all your spatial tables.
Imagine you want to store your maps. You need a box first. A spatial database is like that box. You create the box before you put maps inside.
A mapping company creates a spatial database for all its maps.
A school creates a spatial database for its campus map.
At home, you create a spatial database for your neighbourhood map.
In a Nigerian bank, a spatial database is created for branch locations.
-- Create a new database CREATE DATABASE school; -- Connect to the database \c school -- Add PostGIS CREATE EXTENSION postgis;
CREATE SPATIAL DATABASE:
[ TYPE: CREATE DATABASE school; ]
|
V
[ TYPE: \c school ]
|
V
[ TYPE: CREATE EXTENSION postgis; ]
|
V
[ SPATIAL DATABASE IS READY ]
Creating a spatial database means making a new database and adding PostGIS. You use CREATE DATABASE and CREATE EXTENSION postgis.
You learned how to create a spatial database. You saw examples from home, school, and Nigeria. Now you can create your own spatial database.
A spatial table is a table that has a geometry column. The geometry column stores points, lines, or polygons.
You cannot store spatial data until you create a spatial table. The table defines the type of spatial data you can store.
Imagine you want to store information about buildings. You need a table. The table has columns for name, address, and location. The location column is the geometry column.
A bank creates a spatial table for branch locations.
A school creates a spatial table for classroom locations.
At home, you create a spatial table for your favourite places.
In a Nigerian market, a trader creates a spatial table for stall locations.
CREATE TABLE buildings (
id SERIAL PRIMARY KEY,
name VARCHAR(100),
geom GEOMETRY(Point, 4326)
);
CREATE SPATIAL TABLE:
[ TYPE: CREATE TABLE buildings (...) ]
|
V
[ POSTGRESQL CREATES THE TABLE ]
|
V
+----+----------+-------------------+
| ID | NAME | GEOM |
+----+----------+-------------------+
| | | |
+----+----------+-------------------+
(empty table is ready)
Creating a spatial table means defining a geometry column. You use the GEOMETRY data type.
You learned how to create a spatial table. You saw examples from home, school, and Nigeria. Now you can create your own spatial tables.
WKT stands for Well-Known Text. It is a way to write spatial data using text. It looks like words. For example, POINT(6.5774 3.3212).
WKT is easy to read and write. You can use WKT to add spatial data to a table.
Imagine you want to describe a location. You write: "The school is at 6.5774, 3.3212." WKT is like that. It describes a location using text.
A bank uses WKT to describe the location of a branch.
A school uses WKT to describe the location of a classroom.
At home, you use WKT to describe the location of your house.
In Lagos, the airport is at POINT(6.5774 3.3212).
| WKT | What It Means |
|---|---|
| POINT(6.5774 3.3212) | A single location |
| LINESTRING(0 0, 1 1, 2 2) | A line with three points |
| POLYGON((0 0, 4 0, 4 4, 0 4, 0 0)) | A square area |
WKT: [ POINT(6.5774 3.3212) ] --> [ SINGLE LOCATION ] [ LINESTRING(0 0, 1 1, 2 2) ] --> [ PATH ] [ POLYGON((0 0, 4 0, 4 4, 0 4, 0 0)) ] --> [ AREA ]
WKT is Well-Known Text. It describes spatial data using text. You can use WKT to add spatial data to a table.
You learned what WKT is. You saw a table of examples. Now you can use WKT to describe spatial data.
WKB stands for Well-Known Binary. It is a way to write spatial data using binary code. It is not easy to read, but it is faster for computers.
WKB is compact and fast. Computers use WKB to store and move spatial data.
Imagine you want to send a secret message. You use a secret code. WKB is like a secret code for spatial data.
A bank uses WKB to send location data between computers.
A school uses WKB to store location data.
At home, you use WKB when you save a map file.
In a Nigerian bank, WKB is used to send customer locations.
-- Convert WKT to WKB
SELECT ST_AsBinary(ST_GeomFromText('POINT(6.5774 3.3212)', 4326));
-- Convert WKB to WKT
SELECT ST_AsText(ST_GeomFromWKB('\x0101000000...'::bytea, 4326));
WKB:
[ WKT: POINT(6.5774 3.3212) ]
|
V
[ CONVERT TO WKB ]
|
V
[ BINARY: 0101000000... ]
|
V
[ FAST AND COMPACT ]
WKB is Well-Known Binary. It describes spatial data using binary code. It is faster for computers.
You learned what WKB is. You saw examples from home, school, and Nigeria. Now you know the difference between WKT and WKB.
Adding points means inserting locations into a spatial table. You use the INSERT command with a geometry value.
A table is empty until you add data. Adding points fills the table with locations.
Imagine you have an empty map. You want to mark your school. You put a dot on the map. Adding points is like putting dots on a map.
A bank adds points for each branch location.
A school adds points for each classroom.
At home, you add points for your favourite places.
In a Nigerian market, a trader adds points for each stall.
INSERT INTO buildings (name, geom)
VALUES ('School', ST_GeomFromText('POINT(6.5774 3.3212)', 4326));
INSERT INTO buildings (name, geom)
VALUES ('Library', ST_GeomFromText('POINT(6.5780 3.3220)', 4326));
ADDING POINTS:
[ INSERT INTO buildings ... ]
|
V
+----+----------+-------------------+
| ID | NAME | GEOM |
+----+----------+-------------------+
| 1 | School | POINT(6.5774 3.3212) |
| 2 | Library | POINT(6.5780 3.3220) |
+----+----------+-------------------+
(points are stored)
Adding points means inserting locations into a spatial table. You use the INSERT command with ST_GeomFromText.
You learned how to add points. You saw examples from home, school, and Nigeria. Now you can add points to your spatial table.
Adding lines means inserting paths into a spatial table. A line is a series of points connected together.
Lines show roads, rivers, and paths. They help us measure distances between places.
Imagine you want to show the road from your house to the market. You draw a line on the map. Adding lines is like drawing roads on a map.
A bank adds lines for the routes between branches.
A school adds lines for the walkways between classrooms.
At home, you add lines for the paths in your neighbourhood.
In Lagos, the government adds lines for major roads.
CREATE TABLE roads (
id SERIAL PRIMARY KEY,
name VARCHAR(100),
geom GEOMETRY(LineString, 4326)
);
INSERT INTO roads (name, geom)
VALUES ('Main Road', ST_GeomFromText('LINESTRING(6.5774 3.3212, 6.5780 3.3220)', 4326));
ADDING LINES:
[ INSERT INTO roads ... ]
|
V
+----+----------+-----------------------------------+
| ID | NAME | GEOM |
+----+----------+-----------------------------------+
| 1 | Main Road| LINESTRING(6.5774 3.3212, ...) |
+----+----------+-----------------------------------+
(lines are stored)
Adding lines means inserting paths into a spatial table. You use the INSERT command with LINESTRING.
You learned how to add lines. You saw examples from home, school, and Nigeria. Now you can add lines to your spatial table.
Adding polygons means inserting areas into a spatial table. A polygon is a closed shape with an area.
Polygons show farms, buildings, and countries. They help us measure the size of places.
Imagine you want to show the area of your school compound. You draw a shape around it. Adding polygons is like drawing areas on a map.
A bank adds polygons for each branch building.
A school adds polygons for each sports field.
At home, you add polygons for your house and garden.
In Nigeria, the government adds polygons for each state.
CREATE TABLE fields (
id SERIAL PRIMARY KEY,
name VARCHAR(100),
geom GEOMETRY(Polygon, 4326)
);
INSERT INTO fields (name, geom)
VALUES ('Football Field',
ST_GeomFromText('POLYGON((6.5774 3.3212, 6.5780 3.3212, 6.5780 3.3220, 6.5774 3.3220, 6.5774 3.3212))', 4326));
ADDING POLYGONS:
[ INSERT INTO fields ... ]
|
V
+----+---------------+-----------------------------------+
| ID | NAME | GEOM |
+----+---------------+-----------------------------------+
| 1 | Football Field| POLYGON((6.5774 3.3212, ...)) |
+----+---------------+-----------------------------------+
(polygons are stored)
Adding polygons means inserting areas into a spatial table. You use the INSERT command with POLYGON.
You learned how to add polygons. You saw examples from home, school, and Nigeria. Now you can add polygons to your spatial table.
shp2pgsql is a tool that imports shapefiles into PostGIS. A shapefile is a common file format for spatial data.
Many organisations share spatial data as shapefiles. shp2pgsql helps you load these files into your database.
Imagine you have a file with a map on your computer. You want to put the map into your database. shp2pgsql is like a bridge between the file and the database.
A bank imports a shapefile of all roads in Lagos.
A school imports a shapefile of the school compound.
At home, you import a shapefile of your neighbourhood.
In Nigeria, the government imports shapefiles of roads and rivers.
shp2pgsql -s 4326 -I roads.shp roads | psql -U postgres -d school
shp2pgsql:
[ SHAPEFILE: roads.shp ]
|
V
[ RUN shp2pgsql ]
|
V
[ DATA INSERTED INTO POSTGIS ]
|
V
[ READY TO QUERY ]
shp2pgsql imports shapefiles into PostGIS. It helps you load spatial data from files.
You learned about shp2pgsql. You saw examples from home, school, and Nigeria. Now you can import shapefiles into your database.
Exporting means saving spatial data from the database to a file. You can export to a shapefile or other formats.
You may need to share spatial data with others. You may need to use it in other programs like QGIS.
Imagine you have a map in your database. You want to send it to a friend. You export it to a file. Your friend can open the file.
A bank exports branch locations to a shapefile for its website.
A school exports the campus map to a shapefile for new students.
At home, you export your neighbourhood map to a file.
In Nigeria, the government exports road data to shapefiles for planners.
pgsql2shp -f roads_export.shp -h localhost -u postgres -P password school roads
EXPORT SPATIAL DATA:
[ POSTGIS DATABASE ]
|
V
[ RUN pgsql2shp ]
|
V
[ SHAPEFILE CREATED ]
|
V
[ SHARE OR USE IN OTHER PROGRAMS ]
Exporting means saving spatial data from the database to a file. You can use pgsql2shp to export to a shapefile.
You learned how to export spatial data. You saw examples from home, school, and Nigeria. Now you can share your spatial data.
QGIS is a free program for viewing and editing maps. It can connect to PostGIS and display spatial data.
QGIS helps you see your spatial data. You can create beautiful maps and share them with others.
Imagine you have a box of map pieces. QGIS is like a table where you can put the pieces together. You can see the whole map.
A bank uses QGIS to view customer locations on a map.
A school uses QGIS to view the campus map.
At home, you use QGIS to view your neighbourhood map.
In Nigeria, government planners use QGIS to plan new roads.
QGIS + POSTGIS:
[ QGIS ] --> [ CONNECT TO POSTGIS ]
|
V
[ VIEW SPATIAL DATA ]
|
V
[ CREATE MAPS ]
|
V
[ SHARE WITH OTHERS ]
QGIS is a free program for viewing and editing maps. It can connect to PostGIS and display spatial data.
You learned about QGIS. You saw examples from home, school, and Nigeria. Now you can connect QGIS to PostGIS.
An error is a mistake. PostgreSQL tells you when you make a mistake. You can fix the mistake and try again.
Everyone makes mistakes. Learning to fix errors makes you a better expert.
Imagine you are writing a letter. You spell a word wrong. You erase it and write it correctly. Fixing errors in PostGIS is like that.
A bank worker types the wrong coordinate. PostGIS shows an error. The worker corrects the coordinate and tries again.
A student types the wrong table name. PostGIS shows an error. The student corrects the name and tries again.
At home, you type the wrong SRID. PostGIS shows an error. You correct the SRID and try again.
In a Nigerian market, a trader types the wrong polygon. PostGIS shows an error. The trader corrects the polygon and tries again.
| Error | What It Means | How to Fix It |
|---|---|---|
| syntax error | You typed a command incorrectly | Check your spelling and punctuation |
| function does not exist | PostGIS is not installed | Run CREATE EXTENSION postgis; |
| geometry has wrong SRID | The SRID does not match | Use ST_Transform to change the SRID |
| invalid geometry | The shape is not valid | Use ST_MakeValid to fix the shape |
| relation does not exist | The table does not exist | Create the table first |
ERROR:
[ TYPE: SELECT ST_GeomFromText('POINT(6.5774 3.3212)'); ]
|
V
[ ERROR: function st_geomfromtext does not exist ]
|
V
[ FIX: RUN CREATE EXTENSION postgis; ]
|
V
[ TRY AGAIN ]
Errors are mistakes. PostGIS tells you when you make a mistake. You can fix the mistake and try again.
You learned about common errors and how to fix them. You saw a table of errors. Now you can fix mistakes in PostGIS.
A spatial query is a question you ask about spatial data. You use SQL and PostGIS functions to ask the question.
Spatial queries help you find answers about locations. You can find the nearest place, measure distances, and check if shapes overlap.
Imagine you want to find all schools within 1 kilometre of your house. A spatial query answers that question.
A bank finds all customers within 5 kilometres of a new branch.
A school finds all students who live within 2 kilometres of the school.
At home, you find the nearest hospital to your house.
In Lagos, a taxi company finds the nearest driver to a customer.
-- Find the distance between two points
SELECT ST_Distance(
ST_GeomFromText('POINT(6.5774 3.3212)', 4326),
ST_GeomFromText('POINT(6.5780 3.3220)', 4326)
);
-- Find all buildings within 1 km of a point
SELECT name FROM buildings
WHERE ST_DWithin(
geom,
ST_GeomFromText('POINT(6.5774 3.3212)', 4326),
1000
);
-- Find the nearest building to a point
SELECT name FROM buildings
ORDER BY geom <-> ST_GeomFromText('POINT(6.5774 3.3212)', 4326)
LIMIT 1;
SPATIAL QUERY:
[ ASK: "FIND BUILDINGS WITHIN 1 KM" ]
|
V
[ POSTGIS SEARCHES ]
|
V
[ RESULTS: SCHOOL, LIBRARY ]
|
V
[ YOU HAVE YOUR ANSWER ]
A spatial query is a question about spatial data. You use SQL and PostGIS functions to ask the question.
You learned how to run simple spatial queries. You saw examples from home, school, and Nigeria. Now you can find answers about locations.
Best practices are the best ways to do things. They help you keep your spatial data clean and organised.
Following best practices makes your work easier. It prevents problems later.
Imagine you are organising your books. You put them in order. You use labels. Best practices for spatial data are like organising your books properly.
A bank follows best practices. Its spatial data is clean and accurate.
A school follows best practices. Its campus map is accurate.
At home, you follow best practices. Your neighbourhood map is easy to read.
In a Nigerian market, a trader follows best practices. Stall locations are accurate.
BEST PRACTICES:
[ USE SRID ] --> [ USE CORRECT GEOMETRY TYPE ]
| |
V V
[ VALIDATE GEOMETRIES ] --> [ USE SPATIAL INDEXES ]
| |
V V
[ KEEP DATA CLEAN ] --> [ BACK UP REGULARLY ]
| |
V V
[ DOCUMENT TABLES ] --> [ USE MEANINGFUL NAMES ]
| |
V V
[ TEST QUERIES ] --> [ TEACH OTHERS ]
| |
V V
[ CLEAN, FAST, ACCURATE SPATIAL DATABASE ]
Best practices help you keep your spatial data clean and organised.
You learned best practices for managing spatial data. You saw a list. Now you can keep your spatial database in top shape.
| Word | Simple Definition |
|---|---|
| Install | To put software on a computer so it can be used. |
| PostGIS | A tool that adds spatial features to PostgreSQL. |
| Spatial database | A database that can store and search spatial data. |
| Spatial table | A table with a geometry column. |
| WKT | Well-Known Text. A way to write spatial data using text. |
| WKB | Well-Known Binary. A way to write spatial data using binary code. |
| shp2pgsql | A tool that imports shapefiles into PostGIS. |
| Export | Saving spatial data from the database to a file. |
| QGIS | A free program for viewing and editing maps. |
| Spatial query | A question you ask about spatial data. |
| Error | A mistake. PostGIS tells you when you make one. |
| Best practices | The best ways to do things. |
INSTALL POSTGRESQL
|
V
INSTALL POSTGIS
|
V
CREATE SPATIAL DATABASE
|
V
CREATE SPATIAL TABLE
|
V
ADD SPATIAL DATA
|
V
RUN SPATIAL QUERY
|
V
SEE RESULTS!
Step 1: Learn what install means. Step 2: Install PostGIS. Step 3: Create a spatial database. Step 4: Create a spatial table. Step 5: Learn about WKT. Step 6: Learn about WKB. Step 7: Add points. Step 8: Add lines. Step 9: Add polygons. Step 10: Learn about shp2pgsql. Step 11: Export spatial data. Step 12: Learn about QGIS. Step 13: Fix errors. Step 14: Run spatial queries. Step 15: Learn best practices.
[ POSTGRESQL WEBSITE ] --> [ DOWNLOAD INSTALLER ]
|
V
[ RUN INSTALLER ]
|
V
[ CHOOSE POSTGIS OPTION ]
|
V
[ INSTALLATION COMPLETE ]
|
V
[ OPEN psql ]
|
V
[ CREATE EXTENSION postgis; ]
|
V
[ POSTGIS IS READY! ]
| Data Type | What It Stores | Example |
|---|---|---|
| GEOMETRY(Point, 4326) | A single location | School, hospital |
| GEOMETRY(LineString, 4326) | A path | Road, river |
| GEOMETRY(Polygon, 4326) | An area | Farm, country |
| GEOGRAPHY(Point, 4326) | A location on Earth | GPS coordinates |
| Feature | WKT | WKB |
|---|---|---|
| Format | Text | Binary |
| Readable by humans | Yes | No |
| Speed | Slower | Faster |
| Size | Larger | Smaller |
| Use case | Reading and writing | Storage and transfer |
| Feature | QGIS | ArcGIS | Google Earth |
|---|---|---|---|
| Cost | Free | Expensive | Free |
| Connects to PostGIS | Yes | Yes | No |
| Editing | Yes | Yes | Limited |
| Best for | All users | Professionals | Viewing |
In this module, you learned how to create and manage spatial data with PostGIS. You learned what install means. You learned how to install PostGIS. You learned how to create a spatial database. You learned how to create a spatial table. You learned about WKT and WKB. You learned how to add points, lines, and polygons.
You learned about shp2pgsql. It imports shapefiles into PostGIS. You learned how to export spatial data. You learned about QGIS. It is a free program for viewing and editing maps. You learned how to connect QGIS to PostGIS.
You learned about common errors and how to fix them. You learned how to run simple spatial queries. You learned best practices for managing spatial data.
Now you are ready to move on to Module 3, where you will learn about spatial relationships and measurements. But before you go, make sure you understand the key takeaways below.
Match the word in Column A with the correct definition in Column B.
| Column A | Column B |
|---|---|
| 1. Install | A. Well-Known Text |
| 2. PostGIS | B. A tool that imports shapefiles into PostGIS |
| 3. WKT | C. To put software on a computer |
| 4. WKB | D. A free program for viewing and editing maps |
| 5. shp2pgsql | E. A tool that adds spatial features to PostgreSQL |
| 6. QGIS | F. Well-Known Binary |
| 7. Spatial query | G. A question you ask about spatial data |
Answers: 1-C, 2-E, 3-A, 4-F, 5-B, 6-D, 7-G
Title: Build a School Spatial Database
Instructions: In groups of 3 or 4, create a spatial database for your school.
Create tables for buildings, roads, and fields. Add at least 5 points, 2 lines, and 1 polygon.
Run a spatial query to find buildings within 500 metres of a point.
Present your database to the class.
Example:
Database: school
Tables: buildings (points), roads (lines), fields (polygons).
Data: School, Library, Laboratory, Football Field, etc.
Query: SELECT name FROM buildings WHERE ST_DWithin(geom, ST_GeomFromText('POINT(6.5774 3.3212)', 4326), 500);
Title: My First Spatial Database
Instructions: Create a spatial database for your neighbourhood.
Create at least 2 tables. Add at least 5 points, 2 lines, and 1 polygon.
Run a spatial query. Write down what you did.
Example:
Database: myneighbourhood
Tables: places (points), streets (lines), parks (polygons).
Data: My house, the market, the mosque, the school, the hospital, etc.
Query: SELECT name FROM places WHERE ST_DWithin(geom, ST_GeomFromText('POINT(6.5774 3.3212)', 4326), 1000);
Title: Build a Spatial Database with QGIS
Materials: Computer with PostgreSQL, PostGIS, and QGIS installed.
Steps:
Assignment: For one week, practice creating and managing spatial data. Keep a diary. Each day, write down:
At the end of the week, write a short report. Share it with your teacher or parent.
In Module 3, you will learn about spatial relationships and measurements. You will learn about:
Before you start Module 3, make sure you understand everything in this module. Practice installing PostGIS. Create spatial databases and tables. Add spatial data. Run spatial queries. Fix errors. When you are ready, turn the page and continue your journey to becoming a Certified PostGIS User!
End of Module 2.