Add more examples for the isolines functions
This commit is contained in:
@@ -40,7 +40,11 @@ SELECT * FROM cdb_isodistance('POINT(-3.70568 40.42028)'::geometry, 'walk', ARRA
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
SELECT the_geom FROM cdb_isodistance('POINT(-3.70568 40.42028)'::geometry, 'walk', ARRAY[1000]::integer[]);
|
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[]]_)
|
### 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
|
```bash
|
||||||
SELECT the_geom FROM cdb_isochrone('POINT(-3.70568 40.42028)'::geometry, 'walk', ARRAY[300]::integer[]);
|
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
|
### Optional isoline parameters
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user