[postgis-users] Spurious Results using ST_Split

2014-05-23 Thread Jeff Adams - NOAA Affiliate
Greetings, I have been working with the st_split function and have been receiving strange results. Specifically, I have been using a polygon geometry to split a linestring geometry. After the split I have been using st_within to identify which of the resulting split linestring geometries are

Re: [postgis-users] Spurious Results using ST_Split

2014-05-23 Thread Jeff Adams - NOAA Affiliate
Thanks for the response Remi-C. Could you please give me a brief overview of what the workaround would involve? Is this a reported issue? On Fri, May 23, 2014 at 8:08 AM, Rémi Cura remi.c...@gmail.com wrote: Hey, it looks like a classical precision issue. There are some workaround but they

Re: [postgis-users] Spurious Results using ST_Split

2014-05-23 Thread Jeff Adams - NOAA Affiliate
Thanks again Remi-C. I have been playing around with the buffer function. I ended up clipping with the original boundary and then pushed the polygon boundary out 0.001 meter using the st_buffer function before running the st_within function. Seemed to do the trick, crossing my fingers that I do

Re: [postgis-users] Spurious Results using ST_Split

2014-05-23 Thread Rémi Cura
No problem, for perf sake you should take a look at the quad_segs buffer option, you probably can trade an increase of radius to 0.002 versus a number of quad_segs of 2. Cheers, Rémi-C 2014-05-23 15:58 GMT+02:00 Jeff Adams - NOAA Affiliate jeff.ad...@noaa.gov : Thanks again Remi-C. I have been