[postgis-users] Question on topology

Neumann, Andreas a.neumann at carto.net
Fri Jul 1 02:10:22 PDT 2016


Hi Strk, 

Thank you for these hints. 

It will help me to get started - also combined with your blog entries on
the topic! 

Andreas 

On 2016-07-01 10:29, Sandro Santilli wrote:

> On Thu, Jun 30, 2016 at 11:25:22AM +0200, Neumann, Andreas wrote:
> 
>> Is there a method in Postgis to create a Topology, eliminating double
>> borders from the original CurvePolygons and attaching left and right
>> attributes from the original polygons? I came across the Postgis
>> topology module. Is this the recommended way of achieving my above goal?
> 
> I'd say YES  -- the standard ISO Topology Model involves having
> "left face" and "right face" information for each edge.
> 
>> Unfortunately, there are only few ressources or examples around Postgis
>> topology and from the first glimpse it looks a bit complicated to use.
> 
> The simplest path to try it would something like this:
> 
> -- Create the topology
> SELECT CreateTopology('topo', find_srid('public','mytable','geom'));
> 
> -- Populate the topology layer
> SELECT ST_CreateTopoGeo('topo', (
> SELECT ST_Collect(geom) FROM mytable
> ) );
> 
> Then fire up qgis, select the 'topo' schema with the DB Manager
> and from the menu select Schema->TopologyViewer.
> 
>> It also looks like it can't handle CurvePolygons as input - right? I
>> would have to coerce first to POLYGON geometries - right? It is ok for
>> me if the circular arcs are segmentized, as this data is not for
>> editing/analysis, but only for symbology purposes.
> 
> Confirmed, yo'll have to convert to POLYGON first.
> 
>> If you have any hints or examples, please let me know!
> 
> I guess you did read these already ?
> https://strk.kbt.io/blog/tag/topology/
> 
> --strk;

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20160701/85481e89/attachment.html>


More information about the postgis-users mailing list