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

Reply via email to