[postgis-devel] [PostGIS] #664: PointArray Side Effect

PostGIS trac at osgeo.org
Sun Nov 21 11:39:13 PST 2010


#664: PointArray Side Effect
----------------------+-----------------------------------------------------
 Reporter:  colivier  |       Owner:  pramsey      
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.0
Component:  postgis   |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------
 Related to latest PointArray refactoring, some regress tests are wrong on
 Linux 64 bits


 {{{
 measures
 *** measures_expected   Sun Nov 21 12:46:33 2010
 --- /tmp/pgis_reg_26130/test_24_out     Sun Nov 21 20:22:07 2010
 ***************
 *** 38,47 ****
   distancepoly4|0|28.3196045170126|LINESTRING(16 19,16 19)|LINESTRING(16
 19,16 19)|LINESTRING(18 20,-1 -1)|LINESTRING(-1 -1,18 20)
   distancepoly5|0|26.1725046566048|LINESTRING(17 12,17 12)|LINESTRING(17
 12,17 12)|LINESTRING(17 18,-1 -1)|LINESTRING(-1 -1,17 18)
   distancepoly6|0|32.5269119345812|LINESTRING(2 2,2 2)|LINESTRING(2 2,2
 2)|LINESTRING(2 2,25 25)|LINESTRING(25 25,2 2)
 ! 3dDistancetest1|6.40312423743285|6.40312423743285|f|f|LINESTRING(1 1 1,3
 2 7)|POINT(1 1 1)|LINESTRING(1 1 1,3 2 7)
 ! 3dDistancetest2|0|1.73205080756888|t|t|LINESTRING(1 1 1,1 1 1)|POINT(1 1
 1)|LINESTRING(1 1 1,0 0 0)
 ! 3dDistancetest3|4.09994192757944|6.48074069840786|t|f|LINESTRING(1 1
 1,0.61904761904762 -0.19047619047619 4.90476190476191)|POINT(1 1
 1)|LINESTRING(1 1 1,5 2 6)
 ! 3dDistancetest4|2|10.0498756211209|t|f|LINESTRING(1 1 3,1 1 1)|POINT(1 1
 3)|LINESTRING(5 7 8,1 1 1)
   ERROR:  Linestring to Linestring distance measures is not yet supported
 for 3d
   emptyPolyArea|0
   emptyLineArea|0
 --- 38,47 ----
   distancepoly4|0|28.3196045170126|LINESTRING(16 19,16 19)|LINESTRING(16
 19,16 19)|LINESTRING(18 20,-1 -1)|LINESTRING(-1 -1,18 20)
   distancepoly5|0|26.1725046566048|LINESTRING(17 12,17 12)|LINESTRING(17
 12,17 12)|LINESTRING(17 18,-1 -1)|LINESTRING(-1 -1,17 18)
   distancepoly6|0|32.5269119345812|LINESTRING(2 2,2 2)|LINESTRING(2 2,2
 2)|LINESTRING(2 2,25 25)|LINESTRING(25 25,2 2)
 ! ERROR:  getPoint_internal called outside of ptarray range (n=0,
 pa.npoints=5, pa.maxpoints=-1)
 ! ERROR:  getPoint_internal called outside of ptarray range (n=0,
 pa.npoints=5, pa.maxpoints=-1)
 ! ERROR:  getPoint_internal called outside of ptarray range (n=0,
 pa.npoints=5, pa.maxpoints=-1)
 ! ERROR:  getPoint_internal called outside of ptarray range (n=0,
 pa.npoints=5, pa.maxpoints=-1)
   ERROR:  Linestring to Linestring distance measures is not yet supported
 for 3d
   emptyPolyArea|0
   emptyLineArea|0


 in_gml
 *** in_gml_expected     Sun Nov 21 12:46:33 2010
 --- /tmp/pgis_reg_26130/test_37_out     Sun Nov 21 20:22:08 2010
 ***************
 *** 281,287 ****
   ERROR:  invalid GML representation
   data_1|LINESTRING(1 2,3 4,5 6,7 8,9 10,11 12)
   data_2|LINESTRING(1 2,3 4,5 6,7 8,9 10)
 ! xlink_1|LINESTRING(1 2,1 2,3 4)
   ERROR:  invalid GML representation
   ERROR:  invalid GML representation
   ERROR:  invalid GML representation
 --- 281,287 ----
   ERROR:  invalid GML representation
   data_1|LINESTRING(1 2,3 4,5 6,7 8,9 10,11 12)
   data_2|LINESTRING(1 2,3 4,5 6,7 8,9 10)
 ! xlink_1|LINESTRING(1 2,3 4)
   ERROR:  invalid GML representation
   ERROR:  invalid GML representation
   ERROR:  invalid GML representation
 ***************
 *** 291,297 ****
   ERROR:  invalid GML representation
   ERROR:  invalid GML representation
   ERROR:  invalid GML representation
 ! xlink_11|LINESTRING(1 2,1 2,3 4)
   xlink_12|GEOMETRYCOLLECTION(POINT(1 2),POINT(1 2))
   xlink_13|GEOMETRYCOLLECTION(LINESTRING(1 2,3 4),LINESTRING(1 2,3 4))
   xlink_14|GEOMETRYCOLLECTION(LINESTRING(1 2,3 4),LINESTRING(1 2,3 4))
 --- 291,297 ----
   ERROR:  invalid GML representation
   ERROR:  invalid GML representation
   ERROR:  invalid GML representation
 ! xlink_11|LINESTRING(1 2,3 4)
   xlink_12|GEOMETRYCOLLECTION(POINT(1 2),POINT(1 2))
   xlink_13|GEOMETRYCOLLECTION(LINESTRING(1 2,3 4),LINESTRING(1 2,3 4))
   xlink_14|GEOMETRYCOLLECTION(LINESTRING(1 2,3 4),LINESTRING(1 2,3 4))


 tickets:
 *** tickets_expected    Sun Nov 21 12:46:33 2010
 --- /tmp/pgis_reg_26130/test_47_out     Sun Nov 21 20:22:09 2010
 ***************
 *** 24,30 ****
   HINT:  "...IRCULARSTRING(0 0,1 1,1 0),(1 0,30 6)" <-- parse error at
 position 52 within geometry
   #145a|0107000020E610000000000000
   #145b|0
 ! #146|0|t|GEOMETRYCOLLECTION(LINESTRING(0 0,-1 -1),MULTIPOINT(1 2,2 3))
   ERROR:  geometry contains non-closed rings
   #157|ST_Polygon|POLYGON
   #157|ST_Point|POINT
 --- 24,30 ----
   HINT:  "...IRCULARSTRING(0 0,1 1,1 0),(1 0,30 6)" <-- parse error at
 position 52 within geometry
   #145a|0107000020E610000000000000
   #145b|0
 ! ERROR:  getPoint_internal called outside of ptarray range (n=0,
 pa.npoints=5, pa.maxpoints=-1)
   ERROR:  geometry contains non-closed rings
   #157|ST_Polygon|POLYGON
   #157|ST_Point|POINT
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/664>
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