I found a old thread talking about that I think: 
http://sourceforge.net/mailarchive/message.php?msg_id=25822538

([Jts-topo-suite-user] Buffer for LineString with different buffer values for 
each side of)

Dr JTS said it was feasible using spiral? Is it the same problem? 
I am using the buffer operation to convert simple lines into walls. Each 
segment of the linestring is a wall, and each wall can have its own thickness. 
My problem are the joints and the end caps that JTS handle very brillantly. I 
thaught it would be possible to change the algorithm used in JTS to consider a 
different distance parameter for each segment in the linestring.
Where in the code do I have to change the _distance variable to achieve my goal?
@Landon Blake: I cannot split my input linestring into smaller chunks and then 
buffer eash segment, because I need the joint between each segment. After the 
merging of all the resulting polygon I will not have nice joints.
Anben.
From: Landon Blake 
Sent: Thursday, August 8, 2013 2:51 PM
To: Anben PANGLOSE 
Subject: Re: [Jts-topo-suite-user] Buffer operation with linestring, variable 
distance per segment

Anben:

I'm pretty sure JTS doesn't do this out of the box. One work around would be to 
split your input linestring into smaller chunks based on the buffer widths. 
Then buffer them independently and merge the resulting polygons.

Landon



On Thu, Aug 8, 2013 at 3:25 AM, Anben PANGLOSE <[email protected]> wrote:

  Hello, first of all thank you for this wonderful tool! i am using the c# port 
of JTS. I am new to JTS and i am trying to use the BufferBuilder class to 
compute polygon from linestring. It works like a charm, my problem is: Is there 
any  way to compute the buffer from linestring but instead of using a constant 
distance, I would like to associate a distance per segment in the linestring 
(so that the distance parameter in the buffer operation is not a global 
parameter but associated with a segment).
  To illustrate:

  input: 
  LINESTRING (90 480, 90 290, 320 290) 
  (it’s a simple L)

  output with the buffer operation with a distance = 20: 
  POLYGON ((110 310, 320 310, 340 310, 340 270, 70 270, 70 480, 70 500, 110 
500, 110 310))

  I would like for example to specify to BufferBuilder that the vertical part 
of the L have a distance = 20, and that the horizontal part of the L has a 
distance = 10 to have this output: 
  POLYGON ((110 300, 320 300, 340 300, 340 280, 70 280, 70 480, 70 500, 110 
500, 110 300))

  Do you think this is possible? I am trying to modify the OffsetCurveBuilder 
class but without any success, can someone help me? Where to start?

  Thanks in advance and excuse my poor english, i speak french...

  Anben.

  ------------------------------------------------------------------------------
  Get 100% visibility into Java/.NET code with AppDynamics Lite!
  It's a free troubleshooting tool designed for production.
  Get down to code-level detail for bottlenecks, with <2% overhead.
  Download for free and get started troubleshooting in minutes.
  http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
  _______________________________________________
  Jts-topo-suite-user mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to