Question

Multiple Centroids

  • 20 November 2016
  • 6 replies
  • 3 views

Badge +7

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

Badge +7

rajout-centroide-igds2igds.fmw

Badge +16

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.

Badge +7

@itay,

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

Badge +16

@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

 

Userlevel 4
Badge +25
That looks OK to me. Just add an AttributeManager attached to the Tester:Passed port, that sets igds_level to a new value

 

 

Badge +7
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.

Reply