Skip to main content
Question

Simple loop

  • October 14, 2013
  • 5 replies
  • 10 views

franco69
Contributor
Forum|alt.badge.img+6
I have two line features which contains hundreds of lines...but some of them have the same ID's.....i will create a polygon with lines which have the same ID's....i know easy question, best way?

5 replies

franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • October 14, 2013

so for example select feature class one with 1 and feature class two with ID 1 and build apolygon and then a loop two ID 2 and so on....otherwise FME will build too much unnecessary polygons because lines are overlayed...

 

Thanks


fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • October 14, 2013
Hi,

 

 

I would try the polygon builder or area buldier with a group by (ID) if that results in uncorrect polygons, try to remove duplicates (geometry/ID)

franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • October 14, 2013
i want only one run and then loop it...means select from feature class A feature with ST_ID = 1 and select from feature class B feature with ST_ID = 1 and create a polygon with the AREA Builder then take the features with and ID higher (means in this case ID = 2) and do that for ca. 1300 features....i need a loop....but how can i do that ?

takashi
Evangelist
  • October 14, 2013
Hi,

 

 

I'm not sure why you need a loop. As Itay mentioned, if you specify ST_ID to "Group By" parameter of the AreaBuilder, it will create polygons separately according to ST_ID, at one run-time. A resultant polygon having ST_ID = N will be assembled from only lines having ST_ID = N.

 

 

Takashi

franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • October 14, 2013

Hi folks,

thank you....was my fault to think i need a loop....with group by it gives me right result...thx


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