Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jts-dev] Parallel Offset!

I consider line offset to be a vital algorithm (esp for the dynamic segmentation side of linear referencing) but your comments confirmed what I thought: it is hard! I've seen some papers by Chinese scholars implemented in CAD packages (not open source).....

I'm trying the multipoint approach but it is not returning what I want at the moment.

S

On Thu, 11 Oct 2018 09:47:07 +1100, Martin Davis <mtnclimb@xxxxxxxxx> wrote:

Ha!  There is *nothing* "simple" about parallel offset curves!   Despite it seeming simple on the surface...  it's an implementation challenge to handle all or even most reasonable inputs.

The closest thing in JTS is the Single-Sided Buffer functionality [1].  But this returns a polygon.  It would be necessary to do something like the line removal approach to turn this into a proper offset curve.

I think GeoTools has some code for this [2] - if you dare to go there.

PostGIS also has this [3].  Probably needs to get added to JTS sometime...  



[3] https://postgis.net/docs/ST_OffsetCurve.html

On Wed, Oct 10, 2018 at 3:33 PM Simon (SPDBA) Greener <simon@xxxxxxxxxxxx> wrote:


On a related topic, how does one execute a simple parallel offset linestring in JTS?




--
Regards
Simon
--------------------------------------------------------------------------------------------------------
Spatial Advice & Solutions Architecture
Database Spatial Stored Procedure Designer

Oracle Spatial, SQL Server, PostGIS, MySQL, ArcSDE FME
Awarded "2011 Oracle Spatial Excellence Award for Education and Research"
A: 39 Cliff View Drive, Allens Rivulet, 7150, Tas, Aust
W: www.spdba.com.au
E: simon@xxxxxxxxxxxx
V: +61 362 396 397
M: +61 418 396 391
GITC Supplier: T1005
Skype: sggreener
Long: 147.20515 (147° 12' 18" E)
Lat: -43.01530 (43° 00' 55" S)
GeoHash: r22em9r98wg
NAC:W80CK 7SWP3

Back to the top