March 2018
Beginner to intermediate
584 pages
14h 31m
English
The steps you need to perform to complete this recipe are as follows:
postgis_cookbook=# SELECT county, fips, state_fips FROM chp03.counties ORDER BY county;

(6138 rows)
postgis_cookbook=# CREATE TABLE chp03.states_from_counties AS SELECT ST_Multi(ST_Union(the_geom)) as the_geom, state_fips FROM chp03.counties GROUP BY state_fips;