[postgis-devel] [PostGIS] #413: ST_OffsetCurve

PostGIS trac at osgeo.org
Mon May 9 07:49:30 PDT 2011

#413: ST_OffsetCurve
 Reporter:  rafalmag     |       Owner:  strk         
     Type:  enhancement  |      Status:  assigned     
 Priority:  medium       |   Milestone:  PostGIS 2.0.0
Component:  postgis      |     Version:  trunk        
 Keywords:               |  

Comment(by sholl):


 thanks for your information about the upcoming functions in GEOS3.3.0. I
 would like to see a PostGIS-Function which makes use of the GEOS-functions
 within PostGIS.

 Anyway, having GEOS 3.2.0 and this patch segfaults PostgreSQL badly. There
 is no debug-messages given, but the following SQL-Code reproduces the
 problem with a patched PostGIS 1.5.0

 CREATE TABLE foo (id serial, the_geom geometry);
 INSERT INTO foo (the_geom)
 6005055.4430171,33282900.0339 6005050.3959,33282892.9684
 6005042.9596,33282876.3992 6005007.904,33282863.9699
 6004982.5979,33282866.676 6004971.788,33282876.9948
 6004975.9552,33282967.0854 6005018.4214,33282999.3340629
 6005031.56008227)') );
 INSERT INTO foo (the_geom)
 6005228.92500223,33283034.0626 6005132.1377,33282927.0484
 6005066.0171,33282908.7621248 6005055.4430171)') );
 -- works:
 SELECT id, st_astext(ST_OffsetCurve(the_geom,42,'left', 'join=round')) as
 the_geom FROM foo;

 -- segfaults:
 SELECT id, st_astext(ST_OffsetCurve(the_geom,44,'left', 'join=round')) as
 the_geom FROM foo;

 It seems that the resulting geometry is not valid though.

 Is this a known issue? strk, do you have a clue?



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