Update 01-geocoding-functions.md
This commit is contained in:
parent
02071f1cde
commit
eb1e3fc5e5
@ -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')
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user