Skip to main content
Question

How to create fillet between 2 polylines


Forum|alt.badge.img

hi,

I'd like to create a fillet (like the autocad command) between 2 polylines ? is-it possible?

desired is the red arcs.

thanks

15 replies

danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • November 24, 2017

Hi @miladahmad,

Has a similar question resolved here Lines to Arcs.

Thanks,

Danilo


takashi
Influencer
  • November 24, 2017
danilo_fme wrote:

Hi @miladahmad,

Has a similar question resolved here Lines to Arcs.

Thanks,

Danilo

Hi @danilo_inovacao, thanks for finding that.

 

It's an old thread, and I removed all the shared workspaces from my Google Drive at some point in the last year...

 

Now I've restored that with FME 2017. Hope this helps.

 

create-arc-between-adjoining-lines.fmw (FME 2017.0.1.1)

 


danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • November 24, 2017
takashi wrote:
Hi @danilo_inovacao, thanks for finding that.

 

It's an old thread, and I removed all the shared workspaces from my Google Drive at some point in the last year...

 

Now I've restored that with FME 2017. Hope this helps.

 

create-arc-between-adjoining-lines.fmw (FME 2017.0.1.1)

 

Great @takashi,

 

I believe your Workspace is perfect to solve his problem :)

 

 

Thanks,

 

Danilo

 


Forum|alt.badge.img
  • Author
  • November 24, 2017

thank you (@danilo_inovacao and @takashi). I already saw the question but the workspace was not available. I will try it but I’m afraid that workspace will do the fillet at all corner of polylines. What I want is doing that only for the intersection of 2 polylines (example: I will used to create the intersection of roads). I will test it.


takashi
Influencer
  • November 24, 2017
miladahmad wrote:

thank you (@danilo_inovacao and @takashi). I already saw the question but the workspace was not available. I will try it but I’m afraid that workspace will do the fillet at all corner of polylines. What I want is doing that only for the intersection of 2 polylines (example: I will used to create the intersection of roads). I will test it.

Hi @miladahmad, I think you can apply the fundamental logic in my Python script to create an arc between two adjacent lines. The point would be how to specify the lines around an intersection of roads. Are there some conditions that you can use to specify them?

 


Forum|alt.badge.img
  • Author
  • November 24, 2017

The workspace do it between all vertics of polyline. I will try to explain what I'm trying to create with the image (is better than my english :) ). PS. I have the roads center lines and the polygons (or I can also do offset to the centerline)

And the desired area or arc at the corner

thanks


Forum|alt.badge.img
  • Author
  • November 24, 2017
takashi wrote:
Hi @miladahmad, I think you can apply the fundamental logic in my Python script to create an arc between two adjacent lines. The point would be how to specify the lines around an intersection of roads. Are there some conditions that you can use to specify them?

 

do we neeed to specify lines around intersection if i want to do fillet at all intersection between 2 lines?

 

 


takashi
Influencer
  • November 24, 2017
miladahmad wrote:

The workspace do it between all vertics of polyline. I will try to explain what I'm trying to create with the image (is better than my english :) ). PS. I have the roads center lines and the polygons (or I can also do offset to the centerline)

And the desired area or arc at the corner

thanks

The result from this workspace might be closer to your requirement.

 

create-arc-between-adjoining-lines-2.fmw (FME 2017.0.1.1)

 

 


Forum|alt.badge.img
  • Author
  • November 24, 2017

thanks @takashi : It is great but it works only if I have 2 intersected lines (2 and 3 or 1 and 3). If roads which I have is segmented at the intersection (I have 3 lines), then I got error from python caller (Error encountered while calling method `input' f_75(PythonFactory): PythonFactory failed to process feature). I think a problem with list Index.


takashi
Influencer
  • November 25, 2017
miladahmad wrote:

thanks @takashi : It is great but it works only if I have 2 intersected lines (2 and 3 or 1 and 3). If roads which I have is segmented at the intersection (I have 3 lines), then I got error from python caller (Error encountered while calling method `input' f_75(PythonFactory): PythonFactory failed to process feature). I think a problem with list Index.

The Python script should work if the input feature has a polyline consisting of enough long two segments. I can only provide how to create an arc between adjacent two line segments.

 

As I mentioned before, it would be the point of this subject how you can extract a proper line consisting of two segments around an intersection. However, it's hard to provide an ideal way to do that, since it could be different depending on the actual data conditions.

 

If you could share the actual source data (road center lines?) here, a good idea might be provided.

 

 


Forum|alt.badge.img
  • Author
  • November 25, 2017
takashi wrote:
The Python script should work if the input feature has a polyline consisting of enough long two segments. I can only provide how to create an arc between adjacent two line segments.

 

As I mentioned before, it would be the point of this subject how you can extract a proper line consisting of two segments around an intersection. However, it's hard to provide an ideal way to do that, since it could be different depending on the actual data conditions.

 

If you could share the actual source data (road center lines?) here, a good idea might be provided.

 

 

road-intersection.zip

 

this is a small example of data. There is a roads intersection between 2 polylines, 3 polylines and 4 polylines.

 

 


takashi
Influencer
  • November 26, 2017
takashi wrote:
The Python script should work if the input feature has a polyline consisting of enough long two segments. I can only provide how to create an arc between adjacent two line segments.

 

As I mentioned before, it would be the point of this subject how you can extract a proper line consisting of two segments around an intersection. However, it's hard to provide an ideal way to do that, since it could be different depending on the actual data conditions.

 

If you could share the actual source data (road center lines?) here, a good idea might be provided.

 

 

I just added two transformers - CoordinateCounter and Tester to the previous workspace example in order to avoid the error in the case where two road center lines on the almost same straight line are connected at an intersection. See the attachment.

 

create-arc-between-adjoining-lines-3.fmwt (FME 2017.0.1.1)

 


Forum|alt.badge.img
  • Author
  • November 26, 2017
takashi wrote:
I just added two transformers - CoordinateCounter and Tester to the previous workspace example in order to avoid the error in the case where two road center lines on the almost same straight line are connected at an intersection. See the attachment.

 

create-arc-between-adjoining-lines-3.fmwt (FME 2017.0.1.1)

 

it is really great. thanks a lot for your time and your help (I do not know if it is difficult to adjust it to have one more arc as the image)

 

 

 

have a nice week-end and thanks again (i did not find where I can accept the workspace as answer)

 


takashi
Influencer
  • November 27, 2017
miladahmad wrote:

thanks @takashi : It is great but it works only if I have 2 intersected lines (2 and 3 or 1 and 3). If roads which I have is segmented at the intersection (I have 3 lines), then I got error from python caller (Error encountered while calling method `input' f_75(PythonFactory): PythonFactory failed to process feature). I think a problem with list Index.

I think this workspace example contains some tips, which would help you to find a proper solution.

 

create-arc-between-adjoining-lines-4.fmwt (FME 2017.0.1.1)

 

 


Forum|alt.badge.img
  • Author
  • November 27, 2017
takashi wrote:
I think this workspace example contains some tips, which would help you to find a proper solution.

 

create-arc-between-adjoining-lines-4.fmwt (FME 2017.0.1.1)

 

 

100% useful and what I want.

 

Thanks a lot and best regards.

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings