[postgis-devel] [PostGIS] #1094: Fix broken curved regress tests

PostGIS trac at osgeo.org
Mon Jul 4 02:43:52 PDT 2011


#1094: Fix broken curved regress tests
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 It looks like the relevant code is in liblwgeom/g_util.c, at the
 geomtype_struct_array array of geomtype_struct objects.

 Odd enough the comment above the array says that order is important in
 that NO typename should occur within an entry before it but the rule is
 immediately broken (GEOMETRY appears after GEOMETRYCOLLECTION)

 I've also noticed that a static number (44) is used to size the array and
 to later use it to scan it over. I'm attaching a patch which makes that
 number computed by compiler so it's easier to add types in there.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1094#comment:1>
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