Update TWKB howto
This commit is contained in:
parent
186c80ca38
commit
e0526e4182
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
update planet_osm_polygon_twkb set twkb = ST_AsTWKB(way, 2);
|
||||||
alter table planet_osm_polygon_twkb drop column way;
|
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, <tolerance>),<tolerance>),2)`
|
||||||
|
`
|
||||||
|
|
||||||
#### Spatial index
|
#### Spatial index
|
||||||
|
|
||||||
```sql
|
```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 ;
|
VACUUM FULL ANALYZE VERBOSE planet_osm_polygon_twkb ;
|
||||||
\d+
|
\d+
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue