Skip to main content
Question

FME 2020: How to get lines extended to centers of circles?

  • January 20, 2021
  • 5 replies
  • 34 views

jamal
Forum|alt.badge.img+5

FME 2020: How to get lines extended to centers of circles?

 

In the screenshots below, this is how surveyors draw parcels. What I wanted here is to extend the lines that touch the circles to their centers so that all lines get connected at these centers

 

How this might be performed in FME? Which tool can help on this?

Sample data is attached

 

Clip_220 

Clip_221 

5 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • January 20, 2021

I would consider something along the lines of a centerPointReplacer on the circles and feed them into the anchor port of an AnchoredSnapper.


alexlynch3450
Contributor
Forum|alt.badge.img+16
  • Contributor
  • January 20, 2021

What @jdh​ said. I attached workspace.


Forum|alt.badge.img+2

@jdh​ has the right idea. Using a center point replace and anchored snap seems to work without distorting the lines.

 

See example below;

 

 

lineswblines1 

lines2


jamal
Forum|alt.badge.img+5
  • Author
  • January 24, 2021

But does the “LineExtender” has the same function as the “AnchoredSnapper”

 

I wanted here to derive parcels from CAD drawings. The parcel boundaries are not connected but touched to circles (as shown in the screenshot below)

 

The following approach is followed:

-       All lines inside circles are erased (to clean them)

-       Lines are extended by 0.75

-       Lines are converted to polygons

-       Texts are transferred to polygons

 

The data is attached

 

Clip_254 

Clip_252 

 


jamal
Forum|alt.badge.img+5
  • Author
  • January 24, 2021

The workbench is attached

(not sure why i couldn't attach two files in the same post)

 

Clip_255