<div dir="ltr"><div style="font-size:12.8px">Dear all,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">From a lidar las file (cloud Point), i converted the raw .las file toward a shapefile thanks to lastools (las2shp). Then, i  imported the MULTI POINT cover (109 rows) file into a postgis db. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">In a first time, my goal is to generate for each row, a concave hull. I succeed in launching ST_ConcaveHull with 0.5 value (parameter):</div><div style="font-size:12.8px"><a href="http://postgis.net/docs/ST_ConcaveHull.html" target="_blank">http://postgis.net/docs/ST_<wbr>ConcaveHull.html</a> with 0.5 value (parameter) : </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">CREATE TABLE concavehull050 AS</div><div style="font-size:12.8px">SELECT ST_ConcaveHull(geom,0.50,<wbr>false)</div><div style="font-size:12.8px">FROM butes_cloud;</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">1/But the request was executed in 32 minutes! According to you, is there a way to speed up the process time? For information, before to run the query, i well created an index spatial on my table "cloud points" (index on geom column)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">2/ But when i try to run the query with a lower value (0 or 0.1 or 0.2), the following error message appears via pgadmin. The reason seems to be topologic... Have you got an idea regarding the reason? Do you know a solution? Thank you very much...</div><div style="font-size:12.8px">______________________________<wbr>______________________________<wbr>______________________________<wbr>_________________</div><div style="font-size:12.8px"><div>ERREUR:  GEOSUnion: TopologyException: Input geom 0 is invalid: Self-intersection at or near point 744505.79626910388 8440591.6963466257 at 744505.79626910388 8440591.6963466257</div><div>CONTEXT:  fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 111 à affectation</div><div>instruction SQL « SELECT public.ST_Buffer(public.ST_<wbr>ConcaveHull(var_geoms[i],<wbr>least(param_pctconvex + param_pctconvex/var_div),true)<wbr>, var_buf, 'quad_segs=2') »</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 109 à affectation</div><div>instruction SQL « SELECT public.ST_Buffer(public.ST_<wbr>ConcaveHull(var_geoms[i],<wbr>least(param_pctconvex + param_pctconvex/var_div),true)<wbr>, var_buf, 'quad_segs=2') »</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 109 à affectation</div><div>instruction SQL « SELECT public.ST_Buffer(public.ST_<wbr>ConcaveHull(var_geoms[i],<wbr>least(param_pctconvex + param_pctconvex/var_div),true)<wbr>, var_buf, 'quad_segs=2') »</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 109 à affectation</div><div>instruction SQL « SELECT public.ST_Buffer(public.ST_<wbr>ConcaveHull(var_geoms[i],<wbr>least(param_pctconvex + param_pctconvex/var_div),true)<wbr>, var_buf, 'quad_segs=2') »</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 109 à affectation</div><div>instruction SQL « SELECT public.ST_Buffer(public.ST_<wbr>ConcaveHull(var_geoms[1],<wbr>least(param_pctconvex + param_pctconvex/var_div),true)<wbr>,var_buf, 'quad_segs=2') »</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 107 à affectation</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 109 à affectation</div><div>instruction SQL « SELECT public.ST_Buffer(public.ST_<wbr>ConcaveHull(var_geoms[1],<wbr>least(param_pctconvex + param_pctconvex/var_div),true)<wbr>,var_buf, 'quad_segs=2') »</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 107 à affectation</div><div>instruction SQL « SELECT public.ST_Buffer(public.ST_<wbr>ConcaveHull(var_geoms[1],<wbr>least(param_pctconvex + param_pctconvex/var_div),true)<wbr>,var_buf, 'quad_segs=2') »</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 107 à affectation</div><div>fonction PL/pgsql st_concavehull(geometry,double precision,boolean), ligne 107 à affectation</div><div>********** Error **********</div><div>______________________________<wbr>______________________________<wbr>______________________________<wbr>________________________</div></div></div>