I have have two datasets of polyonised data. 1. Field parcels 2. ineligible features that lie within field parcel polygons.. How can I identify if a field parcel polygon contains just one feature polygon or two or more feature polygons?
I'm relatively new to fm desktop and I'm wondering if there is a transformer that can help me with my issue?
thanks
Best answer by takashi
Hi,
I think the SpatialRelator helps you.
Send the Field parcels to the Requestor port, the ineligible features to the Supplier port of the transformer, and set a preferable spatial relation predicate to the "Tests to Perform" parameter. You can then get the number of related features as a new attribute (called "_related_candidates" by default).
Regarding definition of spatial relations, see here.
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.
Send the Field parcels to the Requestor port, the ineligible features to the Supplier port of the transformer, and set a preferable spatial relation predicate to the "Tests to Perform" parameter. You can then get the number of related features as a new attribute (called "_related_candidates" by default).
Regarding definition of spatial relations, see here.
Expose format attribute "fme_feature_type" (wich contains shapfile name, or layer name if autocad etc.).
After the test related_candidates>0 (eficiency) and subsequently >2 test for the "fme_feature_type" to idnetify wich intersects how often.
B.t.w. by using cardinality you can also test what kind of relation was detected.
Also you need to know that to some extent this transformer (SpatialRelator) is broken. It is or seems to be repaired in fme2015 beta, not in fme 2014 (yet?).
Gio, a few days ago, I got an information that the issue about cardinality calculation of the SpatialRelator has been fixed in FME 2015 beta build 15205. But the build is not available yet today (2014-11-04), I cannot confirm that.