Skip to main content
Question

How to Combine multiple lines together that connecting to eachother and has only increment with 1 from other id


spiderman
Contributor
Forum|alt.badge.img+7

Hello ,

I have multiple lines connecting to each other in shape file and each multiple lines has different id with increment 1 ,

as example :

multiple lines include id ‘s : 250 ,251 ,252,253 ,….

and different multiple lines include id ‘s : 4090,4091,4092,4093,….

I would like to combine the lines together that connecting to eachother and increment with one from others id

 

my target : to convert each multiple lines that looks like square to polygon and also the street lines to be together as seperate another polygon .

i am not sure how to achieve that,so i have thought that may be i combine id with increment 1 , i hope if someone has idea ,let me know please

 

linesFME 2021

Thanks for help

 

7 replies

DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • February 2, 2023

@spiderman​ You can create polygons using an Intersector and AreaBuilder. The extra lines that don't form polygons will come out of the Incomplete port. How do you want to combine the street lines into another polygon?


spiderman
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 3, 2023
DanAtSafe wrote:

@spiderman​ You can create polygons using an Intersector and AreaBuilder. The extra lines that don't form polygons will come out of the Incomplete port. How do you want to combine the street lines into another polygon?

Yes please ,

i would like to create polygon for any box or square that I have , some times that data has big square and inside it small square

so I need to create both of them separate polygon .

and for streets also ,it is important for me to create polygon for it .

i know ,it should be common line between every polygon and other but it is okey for me .

Thanks for help


DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • February 3, 2023
spiderman wrote:

Yes please ,

i would like to create polygon for any box or square that I have , some times that data has big square and inside it small square

so I need to create both of them separate polygon .

and for streets also ,it is important for me to create polygon for it .

i know ,it should be common line between every polygon and other but it is okey for me .

Thanks for help

Are you able to share some sample data and a screenshot of the polygons you'd like to create from it?


spiderman
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 3, 2023
spiderman wrote:

Yes please ,

i would like to create polygon for any box or square that I have , some times that data has big square and inside it small square

so I need to create both of them separate polygon .

and for streets also ,it is important for me to create polygon for it .

i know ,it should be common line between every polygon and other but it is okey for me .

Thanks for help

It will be hard to share the data Bcs it belongs to company .if u have any idea and I can try it ,I will be grateful


DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • February 7, 2023
spiderman wrote:

Yes please ,

i would like to create polygon for any box or square that I have , some times that data has big square and inside it small square

so I need to create both of them separate polygon .

and for streets also ,it is important for me to create polygon for it .

i know ,it should be common line between every polygon and other but it is okey for me .

Thanks for help

By default the AreaBuilder will create donuts and not drop the holes. So if you have nested polygons then it should great "donut holes". Then use a DonutHoleExtractor to separate the shells into overlapping polygons if that's what you're after.


spiderman
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 7, 2023
spiderman wrote:

Yes please ,

i would like to create polygon for any box or square that I have , some times that data has big square and inside it small square

so I need to create both of them separate polygon .

and for streets also ,it is important for me to create polygon for it .

i know ,it should be common line between every polygon and other but it is okey for me .

Thanks for help

@danatsafe​ 

thanks .It works

but i have still one problem , the street that between houses Bcs it is not closed from both side .so it did not convert to polygon .

and it looks like gap ,how could I convert it also to polygon although it is not closed from both side .

thanks


DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • February 7, 2023
spiderman wrote:

Yes please ,

i would like to create polygon for any box or square that I have , some times that data has big square and inside it small square

so I need to create both of them separate polygon .

and for streets also ,it is important for me to create polygon for it .

i know ,it should be common line between every polygon and other but it is okey for me .

Thanks for help

Hi @spiderman​ A screenshot would help! :^) Without seeing your streets, I'd recommend trying the Snapper, AnchoredSnapper, LineExtender (maybe a Bufferer?) and an Intersector to create polygons from your remaining lines.


Reply


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