I have a large number of geometries, currently stored in Oracle, some of which contain arc segments.
I need to convert these geometries into LRS (Linear Referencing System) format so I would like to convert all the arcs to straight line segments.
I may have to write something in PL/SQL but, being a lazy sort, I was rather hoping someone had done this before.
Doesn't have to be in PL/SQL, I also have ArcGIS for Desktop, MapInfo, GeoMedia and FME if any of those would do it.
Answer
In FME, this is as simple as connecting your data to an ArcStroker transformer.
From the help page:
Converts arc features into lines replacing the feature geometry with a series of edges interpolated along the arc boundary. Ellipse features are converted into polygons by interpolating edges along the elliptical boundary.
If the input geometry is a path consisting of arcs and lines, or an area whose boundary is such a path, then any arcs in the path will be stroked, also using the Number of Interpolated Edges given.
There are a few parameters to allow you to determine how the arcs are stroked.
Prior to running it through the ArcStroker, you may want to filter your geometry using a GeometryFilter transformer. You can port the arcs separately, then join them back to your lines later on. Though, this may not be necessary.
No comments:
Post a Comment