Bangalore, India
Polyline objects can have smooth curves because they can have arcs or may be be splined or fitted. While curves are often used to design road curves, building geometry etc, it is not possible to practically lay or construct a curve on the ground unless it is approximated by a series of straight lines short enough to create an effect of a smooth curve.
It is therefore required to represent the curves (arcs) with linear segments. GeoTools provides a few commands to convert curves in polylines and splines into linear segments. In this post, we will examine two commands which can be useful.
GT_PLARC2PL - GeoTools -> Conversion -> Convert Arc polylines to linear segment polylines:
This command replaces the arc segments in polylines with straight lines. The Arc to Line approximation can be done specifying either the angular interval, chord length or chord perpendicular (see dialog box below):
The screen-shot shown here is self-explanatory and shows the results produced by this command:
GT_SPL2PL - GeoTools -> Conversion -> Convert Splines to polylines: This command converts spline objects, splined and fitted polylines and ellipses to linear segmented polylines. Several options are available to make the approximation from the splined portion to the linear portion (see dialog box below):
Discover Bricscad, discover GeoTools-AutoCAD & GeoTools-Bricscad, discover TechCenter . Brand new ways to work smarter in CAD!!
Comments
You can follow this conversation by subscribing to the comment feed for this post.