Sorry - ignore my comment about how the arg is used. It is of course the number of quadrant segments, not the total end-curve segments.
Michael On 1 August 2011 15:44, Michael Bedward <[email protected]> wrote: > Hi Sergey, > > I don't know (and that's probably a question best posed on the JTS > list) but I just buffering a simple LineString with JTS 1.12 (as used > with GeoTools 8) using line.buffer(distance, 2). The result is a good > looking buffer rather than a rescaled input: > > http://imagebin.org/165863 > > As you can see there, the end-curves have more than 2 segments, so I > guess the argument is being treated as a hint rather than a rule but I > haven't checked in the BufferOp source. > > I do know that Martin did a lot of work on buffering for JTS 1.12. > > Michael > > > On 29 July 2011 23:54, LSA <[email protected]> wrote: >> Hi, >> >> I build a buffer geometry from a given geometry using >> geom.buffer(distance, segmentCount); >> >> What puzzles me is that putting segmentCount=-2 builds original geometry >> scaled by some factor. >> >> Is it feature or bug? >> >> I use geotools 2.7. >> >> Thanks, >> Sergey >> >> ------------------------------------------------------------------------------ >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> _______________________________________________ >> Geotools-gt2-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
