Skip to main content
Question

create an empty polygon and verify is it an empty polygon or not


Forum|alt.badge.img

i had 2 question ,

1, how to create an empty polygon (i v tried with creator function but with no result)

2, how to verify if a polygon had an entity or is empty ?

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

You can create a feature with a NULL geometry using the Creator, is that what you mean? And for checking what kind of geometry a feature has you can use the GeometryFilter, have it check for NULL.


Forum|alt.badge.img

hi, thanks for your answer , so what i need, is to place a terminator when a feature has no entity, so i v tried whith counter, but, when i test a file with no entity the counter doesnt had an input.


redgeographics
Celebrity
Forum|alt.badge.img+49
tahabelhouari wrote:

hi, thanks for your answer , so what i need, is to place a terminator when a feature has no entity, so i v tried whith counter, but, when i test a file with no entity the counter doesnt had an input.

What exactly do you mean with "no entity"?


Forum|alt.badge.img
tahabelhouari wrote:

hi, thanks for your answer , so what i need, is to place a terminator when a feature has no entity, so i v tried whith counter, but, when i test a file with no entity the counter doesnt had an input.

it means that a feature had no rows .


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • January 23, 2019

You can create a polygon using the Creator not very handy if its a complex polygon with many coordinates, since you have to manually insert the XY values.

An easier way with the creator to create a simple box polygon is Geometry Object: 2D Min/Max Box, just be aware it expects space separated values (e.g. 0 0 10 10)

If you erase the Creation Instance Attribute value, you get a polygon with no attributes.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Perhaps you are after the NoFeatureTester (custom transformer) connect that up to your polygon input. If there are features they will come out the output, if there are none then a feature will come out of the NoFeatures Port. You can place a Terminator on that port to halt the process.

 

Super handy tool

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