Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jts-dev] Remove line from within another line

Martin,

More thoughts on implementation...  your idea about converting to a MultiPoint and differencing that might be a direction worth exploring.  (Note that only the longer line needs to be a MultiPoint I think).  The only concern is ensuring that the remaining points have their order preserved so that you can recover the linestring correctly.  I think JTS does this now.

Yes, ordering is the issue esp where one is working with linear rings or polygon rings.

As long as the conversion to MultiPoint and back preserved the point ordering.....
 
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