Skip to main content
Solved

Refering holes to parent polygons

  • September 15, 2015
  • 6 replies
  • 13 views

 

Hi all,

 

 

Can someone suggest me a solution for this:

I have series of polygons with possible holes. These holes CAN be other polygons (and they can have holes, too). Other polygons can be just the parts of someother polygon's hole (it can be not fully covered area). All polygons are from the same GML feature type so they have same attribute names.

I need to insert polygons without holes, but ex holes must be inserted as polygons and refered to the parent (hole's POLYGONIND needs to be parent's IDAN (IDAN is the primary key)).

 

 

Green is the main polygon with IDAN = 1 (e.g.). Red one is the polygon contained in green's hole with IDAN = 2 and needs to get POLYGONIND=1. Blue one is the other polygon contained in red's hole and needs to get POLYGONIND = 2. Yellow is part of the green's hole that doesn't initially exists so it needs to be created with POLYGONIND1.

I lost half day trying to solve this, but couldn't. Can anyone help me?

Best answer by takashi

Hi,

 

 

Supposing that the required POLYGONIND should be the INAD of the smallest parent polygon for each hole polygon, I think this workflow would work. Setting the "Attributes that must differ" parameter setting of the SpatialRelator is the point.

 

 

Takashi
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

takashi
Celebrity
  • Best Answer
  • September 15, 2015
Hi,

 

 

Supposing that the required POLYGONIND should be the INAD of the smallest parent polygon for each hole polygon, I think this workflow would work. Setting the "Attributes that must differ" parameter setting of the SpatialRelator is the point.

 

 

Takashi

  • Author
  • September 15, 2015

Hi Takashi,

And what about parts of holes that are not in polygons?

I used DonutHoleExtractor and got totally confused.


takashi
Celebrity
  • September 15, 2015
Non-hole polygons will be output from the Failed port of the Tester.

  • Author
  • September 15, 2015

  • Author
  • September 15, 2015
I added Outershells from DonutHoleExtractor as SpatialRelator's supplier and it works (logically), but still doesn't know how to make these parts of holes which are not in polygons.

  • Author
  • September 15, 2015
Done. Thanks Takashi a lot for a workflow!