March 2018
Beginner to intermediate
584 pages
14h 31m
English
The steps you need to take to complete this recipe are as follows:
postgis_cookbook=> CREATE VIEW chp03.rivers_clipped_by_country AS
SELECT r.name, c.iso2, ST_Intersection(r.the_geom, c.the_geom)::geometry(Geometry,4326) AS the_geom FROM chp03.countries AS c
JOIN chp03.rivers AS r
ON ST_Intersects(r.the_geom, c.the_geom);
mkdir working/chp03/rivers
The following is the Linux version (name it export_rivers.sh):
#!/bin/bash for ...