Skip to main content
Question

Multiple Centroids

  • November 20, 2016
  • 6 replies
  • 40 views

arthy
Contributor
Forum|alt.badge.img+8

Hi all,

I have a dgn file and I'm trying to build the following algorithm

(1) form polygons using selected levels of the dgn file

(2) check the number of centroids inside polygons

(2.1) add a centroid when there is no centroid inside the polygon

(2.2) if multiple centroids are inside a polygon, change the level of those centroids.

How can I achieve the step 2.2.?

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.

6 replies

arthy
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • November 20, 2016

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • November 20, 2016

Hi @arthy, would be helpful if you can post some data next to your workspace. Sp that ppl can have an idea what they are dealing with.


arthy
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • November 20, 2016

@itay,

Here is the workspace that I produced rajout-centroide-igds2igds.fmw and also a file test.dgn to test as you requested.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • November 20, 2016

@itay,

Here is the workspace that I produced rajout-centroide-igds2igds.fmw and also a file test.dgn to test as you requested.

Hi @arthy, the thing about dgn is that you cant update the level so writing a new dgn is the only option.

 

Have a look at the attached workspace for a possible solution.

 

multiple-centroids.fmw

 

Hope this helps

 


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • November 21, 2016
That looks OK to me. Just add an AttributeManager attached to the Tester:Passed port, that sets igds_level to a new value

 

 


arthy
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • November 22, 2016
Hi @arthy, the thing about dgn is that you cant update the level so writing a new dgn is the only option.

 

Have a look at the attached workspace for a possible solution.

 

multiple-centroids.fmw

 

Hope this helps

 

@itay,

 

Thanks Based on your suggestions, I edites my workspace and I was able to get my results.