From 3ba70358d5b60ae701a6d72a134a6892df5d9fd3 Mon Sep 17 00:00:00 2001 From: Mario de Frutos Date: Mon, 14 Mar 2016 17:42:46 +0100 Subject: [PATCH] Add more examples for the isolines functions --- doc/isoline_functions.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/isoline_functions.md b/doc/isoline_functions.md index dfb1b74..ff52c7c 100644 --- a/doc/isoline_functions.md +++ b/doc/isoline_functions.md @@ -40,7 +40,11 @@ SELECT * FROM cdb_isodistance('POINT(-3.70568 40.42028)'::geometry, 'walk', ARRA ```bash SELECT the_geom FROM cdb_isodistance('POINT(-3.70568 40.42028)'::geometry, 'walk', ARRAY[1000]::integer[]); -``` + +##### Calculate and insert the generated points from the `points_table` table to another table where they're going to be stored + +```bash +INSERT INTO {table} (the_geom) SELECT (cdb_isodistance(the_geom, 'walk', string_to_array(distance, ',')::integer[])).the_geom FROM {points_table} ### cdb_isochrone(_source geometry, mode text, range integer[], [options text[]]_) @@ -72,7 +76,13 @@ SELECT * FROM cdb_isochrone('POINT(-3.70568 40.42028)'::geometry, 'walk', ARRAY[ ```bash SELECT the_geom FROM cdb_isochrone('POINT(-3.70568 40.42028)'::geometry, 'walk', ARRAY[300]::integer[]); -``` + + +##### Calculate and insert the generated points from the `points_table` table to another table where they're going to be stored + +```bash +INSERT INTO {table} (the_geom) SELECT (cdb_isochrone(the_geom, 'walk', string_to_array(time_distance, ',')::integer[])).the_geom FROM {points_table} + ### Optional isoline parameters