From e0526e4182b52f44a2d9d014c197f69e8f5ca464 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 22 Mar 2016 10:41:50 +0100 Subject: [PATCH] Update TWKB howto --- TWKB-HOWTO.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TWKB-HOWTO.md b/TWKB-HOWTO.md index 3a4bfe304..20b23065f 100644 --- a/TWKB-HOWTO.md +++ b/TWKB-HOWTO.md @@ -1,4 +1,4 @@ -### Direct TWKB +### Direct TWKB #### Prerequisites * Standard set of planet OSM tables imported into PostgreSQL with `osm2pgsql` or similar. @@ -11,6 +11,9 @@ alter table planet_osm_polygon_twkb add column twkb bytea; update planet_osm_polygon_twkb set twkb = ST_AsTWKB(way, 2); alter table planet_osm_polygon_twkb drop column way; ``` +*NOTE: `update planet_osm_polygon_twkb set twkb = ST_AsTWKB(way, 2);` should be using `ST_AsTWKB(ST_Simplify(ST_RemoveRepeatedPoints(way, ),),2)` +` + #### Spatial index ```sql @@ -23,4 +26,3 @@ create index planet_osm_polygon_twkb_index on planet_osm_polygon_twkb using GIST VACUUM FULL ANALYZE VERBOSE planet_osm_polygon_twkb ; \d+ ``` -