[postgis-users] 回复:Re: PostGIS crash on ST_ConcaveHull

耳辰 erchen.cz at alibaba-inc.com
Fri Aug 18 17:44:48 PDT 2023


Many thanks,

zhen





  	
 陈振 
阿里巴巴  
 电话:057128223456-83773183 
 邮箱:erchen.cz at alibaba-inc.com 
 地址:北京-北京-金辉大厦 33F-086 
	     
	   		 阿里巴巴  	 企业主页  		      
 信息安全声明:本邮件包含信息归发件人所在组织所有,发件人所在组织对该邮件拥有所有权利。
请接收者注意保密,未经发件人书面许可,不得向任何第三方组织和个人透露本邮件所含信息的全部或部分。以上声明仅适用于工作邮件。
Information Security Notice: The information contained in this mail is solely property of the sender's organization. 
 This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.  ------------------------------------------------------------------
发件人:Paul Ramsey<pramsey at cleverelephant.ca>
日 期:2023年08月18日 23:12:14
收件人:耳辰<erchen.cz at alibaba-inc.com>; PostGIS Users Discussion<postgis-users at lists.osgeo.org>
抄 送:宋震(凡玺)<songzhen.sz at alibaba-inc.com>; 谢炯<xiejiong.xj at alibaba-inc.com>
主 题:Re: [postgis-users] PostGIS crash on ST_ConcaveHull

Thanks, yes a crash is a bug. I have confirmed it exists in GEOS, and filed an issue

https://github.com/libgeos/geos/issues/946

P


On Aug 18, 2023, at 6:03 AM, 耳辰 <erchen.cz at alibaba-inc.com> wrote:

Hi guys,

I met a postgis crash when tried to use ST_ConvaveHull function with a multipoint, in postgis 3.3.2 and Geos 3.11.2 :

select ST_ConcaveHull('MULTIPOINT ((113.56577197798602 22.80081530883069),(113.565723279387 22.800815316487014),(113.56571548761124 22.80081531771092),(113.56571548780202 22.800815317674463),(113.56577197817877 22.8008153088047),(113.56577197798602 22.80081530883069))', 0.75);

The crash stack are listed:
#0  0x0000ffff84e02210 in geos::triangulate::tri::Tri::getIndex(geos::triangulate::tri::Tri const*) const () from /home/erchen.cz/pgsql15/lib/libgeos.so.3.11.2
#1  0x0000ffff84ce74c0 in geos::algorithm::hull::HullTriangulation::nextBorderTri(geos::algorithm::hull::HullTri*) ()
   from /home/erchen.cz/pgsql15/lib/libgeos.so.3.11.2
#2  0x0000ffff84ce7698 in geos::algorithm::hull::HullTriangulation::traceBoundary(geos::triangulate::tri::TriList<geos::algorithm::hull::HullTri>&) ()
   from /home/erchen.cz/pgsql15/lib/libgeos.so.3.11.2
#3  0x0000ffff84ce79d4 in geos::algorithm::hull::HullTriangulation::traceBoundaryPolygon(geos::triangulate::tri::TriList<geos::algorithm::hull::HullTri>&, geos::geom::GeometryFactory const*) ()
   from /home/erchen.cz/pgsql15/lib/libgeos.so.3.11.2
#4  0x0000ffff84ce1f28 in geos::algorithm::hull::ConcaveHull::toGeometry(geos::triangulate::tri::TriList<geos::algorithm::hull::HullTri>&, geos::geom::GeometryFactory const*) () from /home/erchen.cz/pgsql15/lib/libgeos.so.3.11.2
#5  0x0000ffff84ce29d4 in geos::algorithm::hull::ConcaveHull::getHull() ()
   from /home/erchen.cz/pgsql15/lib/libgeos.so.3.11.2
#6  0x0000ffff8e54818c in GEOSConcaveHull_r ()
   from /home/erchen.cz/pgsql15/lib/libgeos_c.so.1….

It seemed that geos was failed to triangulate the multipoint and then crashed … Is this a bug of geos?

Any comment is welcomed.
Regards,

Zhen

_______________________________________________
postgis-users mailing list
postgis-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20230819/317ccc68/attachment.htm>


More information about the postgis-users mailing list