Trouble with AsText(ExteriorRing()) Re: [postgis-users] IsSimple terminating connection

strk at refractions.net strk at refractions.net
Sat Nov 26 05:12:39 PST 2005


No problems with regress test.
Can you provide a testcase for me to check at ?
I would need the smallest possible dataset,
in this case the Geometry which triggers the
segfault when feed to the IsSimple() function.

To find out which one it is I suggest you
define a cursor for select id,IsSimple(the_geom)
and fetch. Last seen id+1 will be the faulting
geometry.

Once isolated create a table as select id,the_geom
where id = <found_id> and produce a shapefile from
it using pgsql2shp. Send the shapefile to me and
I'll see if I can reproduce it.

Thanks.

--strk;

On Sat, Nov 26, 2005 at 01:19:40PM +0100, Diez B. Roggisch wrote:
> strk at refractions.net wrote:
> >So, you get a segfault with:
> >	- GEOS-2.1.4
> >	- postgis-1.0.5
> >	- postgres-8.0.4
> >What architecture ?
> >Do regression tests give you a segfault as well ?
> 
> Ok, I ran them - with this results:
> 
> 
> 
> """
> deets at absinth:~/software/deb/postgresql-8.1-8.1.0/build-tree/postgresql-8.1.0/contrib/postgis-1.0.5/regress$ 
> make
> Running Normal Regression Test.
> Output file is: '/tmp/regress_out_10706'
> 
>        expected:'<'     obtained:'>'
> 
> Running Index Regression.
> Output file is: '/tmp/regress_index_out_10721'
> 
> Index Creation will take some time...
> 
> Running LWGEOM Regression Test...
> Output file is: '/tmp/regress_lwgeom_out_10734'
> 
> Building a database for testing (postgis_reg).
> Building postgis support in it.
> 
> there shouldnt be any real output produced after this line.
> 
> Running OGC Regression Test...
> Output file is: '/tmp/regress_ogc_out_10748'
> 
>        expected:'<'     obtained:'>'
> 
> 19a20
> > NOTICE:  Self-intersection
> """
> 
> Not sure what to make out of these.
> 
> Regards,
> 
> Diez
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-- 

 /"\    ASCII Ribbon Campaign
 \ /    Respect for open standards
  X     No HTML/RTF in email
 / \    No M$ Word docs in email




More information about the postgis-users mailing list