[postgis-devel] [PostGIS] #1789: ST_CreateTopoGeo: ERROR: Invalid edge (no two distinct vertices exist)

PostGIS trac at osgeo.org
Wed Apr 25 05:09:08 PDT 2012


#1789: ST_CreateTopoGeo: ERROR:  Invalid edge (no two distinct vertices exist)
----------------------+-----------------------------------------------------
 Reporter:  strk      |       Owner:  strk         
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.1
Component:  topology  |     Version:  2.0.x        
 Keywords:            |  
----------------------+-----------------------------------------------------
 I was playing with hexagon grids and knowing irrational numbers
 approximation would have introduced slight discrepancies I thought to take
 a look using PostGIS topology.

 To be honest I did expect problems :)

 Well, here's the problem:
 ERROR:  Invalid edge (no two distinct vertices exist)

 To reproduce:

 1. load
 https://github.com/Vizzuality/cartodb/blob/develop/lib/sql/CDB_Hexagon.sql
 1. create a grid table: create table hgrid10 as select
 CDB_HexagonGrid(ST_MakeEnvelope(-180, -90, 180, 90), 10) as geom;
 1. create a topology out of it: select createtopology('hexagon_topo');
 select ST_CreateTopoGeo('hexagon_topo', st_collect(geom)) from hgrid10;

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1789>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list