Skip to main content
Question

Simple loop

  • October 14, 2013
  • 5 replies
  • 27 views

franco69
Contributor
Forum|alt.badge.img+10
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?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

franco69
Contributor
Forum|alt.badge.img+10
  • 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+21
  • 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+10
  • 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
Celebrity
  • 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+10
  • 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