Add more examples for the isolines functions

This commit is contained in:
Mario de Frutos
2016-03-14 17:42:46 +01:00
parent ad3e457b4c
commit 3ba70358d5

View File

@@ -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