Skip to content

Instantly share code, notes, and snippets.

# Table Population: The Facebook population data, inputted by CSV. Points
# Table tzadmin: Tanzania administration boundaries. Polygons
# Table fb_pop: The sum of population for a given admin feature ID
# Table tzadmin_fbpop: The joined table that sums the sum of population and geographic features.
#Generate the table with the right values
CREATE TABLE population
(
gid serial NOT NULL,
the_geom geometry,