From cff05763686fc74cfbeeb4cc6309cb58d1d9770a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Medina?= Date: Fri, 13 Apr 2018 12:05:22 +0200 Subject: [PATCH] Update 05-boundary-functions.md --- docs/reference/05-boundary-functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/05-boundary-functions.md b/docs/reference/05-boundary-functions.md index 4a2269d..36164c1 100644 --- a/docs/reference/05-boundary-functions.md +++ b/docs/reference/05-boundary-functions.md @@ -112,7 +112,7 @@ geom | WKB geometry Overwrite a point geometry with a boundary geometry that contains it in your table -```SQL +```sql UPDATE tablename SET the_geom = OBS_GetBoundary(the_geom, 'us.census.tiger.block_group') ``` @@ -145,7 +145,7 @@ geometry_id | a string identifier of a geometry in the Boundaries Write the US Census block group geoid that contains the point geometry for every row as a new column in your table. -```SQL +```sql UPDATE tablename SET geometry_id = OBS_GetBoundaryId(the_geom, 'us.census.tiger.block_group') ``` @@ -178,7 +178,7 @@ geom | a WGS84 polygon geometry Use a table of `geometry_id`s (e.g., geoid from the U.S. Census) to select the unique boundaries that they correspond to and insert into a table called, `overlapping_polygons`. This is a useful method for creating new choropleths of aggregate data. -```SQL +```sql INSERT INTO overlapping_polygons (the_geom, geometry_id, point_count) SELECT OBS_GetBoundaryById(geometry_id, 'us.census.tiger.county') As the_geom,