add size comparisons (OSM planet Iceland)

This commit is contained in:
artemp 2016-03-22 12:54:44 +01:00
parent 367df4a5d7
commit dbdb392c6e

View file

@ -37,3 +37,34 @@ Make sure style has following parameters are present on top of usual postgis.inp
<Parameter name="twkb_encoding">True</Parameter> <Parameter name="twkb_encoding">True</Parameter>
<Parameter name="twkb_direct">True</Parameter> <Parameter name="twkb_direct">True</Parameter>
``` ```
##### 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)
```