Update 01-geocoding-functions.md

This commit is contained in:
Iñigo Medina 2018-04-13 10:17:28 +02:00 committed by GitHub
parent 02071f1cde
commit eb1e3fc5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,12 +43,15 @@ Name | Type | Description
Geometry (polygon, EPSG 4326) or null Geometry (polygon, EPSG 4326) or null
**Example:** ### Example
Update the geometry of a table to geocode it
#### Update the geometry of a table to geocode it
```bash ```bash
UPDATE {tablename} SET the_geom = cdb_geocode_admin0_polygon({country_column}) UPDATE {tablename} SET the_geom = cdb_geocode_admin0_polygon({country_column})
``` ```
Insert a geocoded row into a table
#### Insert a geocoded row into a table
```bash ```bash
INSERT INTO {tablename} (the_geom) SELECT cdb_geocode_admin0_polygon('France') INSERT INTO {tablename} (the_geom) SELECT cdb_geocode_admin0_polygon('France')
``` ```