Hi,

What about non simple lines and multilinestrings ?

I just added a patch to return the rough offset curve in case of non simple input line.
For multilinestrings, offset are computed individually for each component,
then combined.

Not sure if this is the best semantic for these corner cases,
any suggestion is welcome.

Michaël

In the upper right corner, I added a non simple line,
and in the lower right corner, the same geometry
after noding (producing a multi linestring)



Le 13/08/2012 00:01, Michaël Michaud a écrit :
Hi all,

Just added this plugin (should be available in next NB).

Firstly, I thought it was available in JTS, but the JTS OffsetCurveBuilder
produce a rough offset curve often containing self-intersection and needs
to be post-processed to get something more usable.

Here is the process :
- compute rough offset curve (distance=d)
- node the result (with UnaryUnionOp)
- remove components located at a distance < d from the source
  (this is the tricky part as the computed offset curve itself may
   be slightly inside the distance - I estimated the error and took
   1 more percent to be sur no valid component are discarded,
   but it may still fails in some situations like using join mitre
   with a small limit or using a fixed precision model)
- merge the remaining linestrings


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to