Changes between Initial Version and Version 1 of UsersWikiSimplifyPreserveTopology


Ignore:
Timestamp:
Apr 8, 2012, 5:31:36 AM (12 years ago)
Author:
nicolasribotosgeo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiSimplifyPreserveTopology

    v1 v1  
     1= An example showing how to simplify a multipolygon layer, keeping topology between objects =
     2
     3== What we want ==
     4
     5Simplifying this layer [[Image(SPT_dept_ori.png)]] into this: [[image:SPT_dept_sim.png]]
     6
     7== The data ==
     8
     9French administrative subdivisions, called "départements", will be used. Data can be downloaded here: [http://http://professionnels.ign.fr/DISPLAY/000/528/175/5281750/GEOFLADept_FR_Corse_AV_L93.zip]
     10
     11Data projection is Lambert-93, EPSG:2154
     12
     13== Loading the data ==
     14
     15{{{
     16shp2pgsql -IiD -g geom -s 2154 DEPARTEMENT.SHP departement | psql
     17}}}
     18
     19== Principle of simplification ==
     20
     21Based on the technique described here [[]], we extract linestrings out of polygons, then union and simplify them.
     22st_polygonize() is used to rebuild surfaces from linestrings. Attributes from the initial layer are associated with simplified polygons.
     23
     24== Steps ==
     25
     261. First extract the input multipolygons into polygons, keeping their departement code. This will allow us to associate attributes to each part of multipolygons at the end of the process.
     27
     28{{{
     29create table dep_poly as select gid, code, st_dump
     30}}}