Skip to main content
Question

Multiple Centroids

  • November 20, 2016
  • 6 replies
  • 18 views

arthy
Contributor
Forum|alt.badge.img+8
  • Contributor

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.?

6 replies

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

itay
Supporter
Forum|alt.badge.img+17
  • 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+17
  • Supporter
  • November 20, 2016
arthy wrote:

@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+44
  • Safer
  • November 21, 2016
arthy wrote:
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
itay wrote:
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.

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