[postgis-tickets] [PostGIS] #2273: TopoGeo_AddPolygon returns more polygons second call

PostGIS trac at osgeo.org
Sun Apr 14 17:02:43 PDT 2013


#2273: TopoGeo_AddPolygon returns more polygons second call
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 I'm guessing this ticket might be related to #2175.

 I've got data I downloaded from:
 http://metro.teczno.com/#chennai

 and then I prepared a test set (which I'll attach), by doing this:


 {{{
 SELECT gid, geom INTO test_wet
 FROM (SELECT gid, (ST_Dump(geom)).geom
 FROM osm_polygon
 WHERE "natural" IN('wetland', 'water', 'high-water')) As f;
 }}}

 Now creating a topology:

 {{{
 SELECT CreateTopology('test_chennai', 4326);
 -- first run 40,622ms 455 rows, second run 32,807ms, 614 rows, 3rd run
 33,415ms 614 rows
 SELECT gid, TopoGeo_AddPolygon('test_chennai', geom) As face_id
 FROM test_wet;
 }}}

 Shouldn't I get the same number of rows on each call and just have the
 original rows created returned to me or is it an artifact of objects being
 created and splitting midstream in which case I guess we just need to
 document the behavior.

 I'm running and I thought we used to report topology version
 {{{
 POSTGIS="2.1.0SVN r11252" GEOS="3.4.0dev-CAPI-1.8.0 r0" PROJ="Rel. 4.8.0,
 6 March 2012" GDAL="GDAL 1.9.2, released 2012/10/08" LIBXML="2.7.8"
 LIBJSON="UNKNOWN" TOPOLOGY RASTER
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2273>
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-tickets mailing list