From dbdb392c6ea78a497660883c9d83f98096a4b715 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 22 Mar 2016 12:54:44 +0100 Subject: [PATCH] add size comparisons (OSM planet Iceland) --- TWKB-HOWTO.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/TWKB-HOWTO.md b/TWKB-HOWTO.md index 0a9ffbb18..c425d0e39 100644 --- a/TWKB-HOWTO.md +++ b/TWKB-HOWTO.md @@ -37,3 +37,34 @@ Make sure style has following parameters are present on top of usual postgis.inp True True ``` + + +##### Iceland (osm2pgsql) + +```sql +.... +update planet_osm_line_twkb set twkb = ST_AsTWKB(ST_Simplify(ST_RemoveRepeatedPoints(way,1), 1, true),0); +update planet_osm_polygon_twkb set twkb = ST_AsTWKB(ST_Simplify(ST_RemoveRepeatedPoints(way,1), 1, true),0); + +``` + +```bash +osm=# \d+ + List of relations + Schema | Name | Type | Owner | Size | Description +--------+-------------------------+-------+-------+----------+------------- + public | geography_columns | view | artem | 0 bytes | + public | geometry_columns | view | artem | 0 bytes | + public | planet_osm_line | table | artem | 30 MB | + public | planet_osm_line_twkb | table | artem | 10216 kB | + public | planet_osm_nodes | table | artem | 93 MB | + public | planet_osm_point | table | artem | 7136 kB | + public | planet_osm_polygon | table | artem | 28 MB | + public | planet_osm_polygon_twkb | table | artem | 10 MB | + public | planet_osm_rels | table | artem | 3136 kB | + public | planet_osm_roads | table | artem | 4784 kB | + public | planet_osm_ways | table | artem | 51 MB | + public | spatial_ref_sys | table | artem | 4016 kB | +(12 rows) + +```