Hi @sangli, if you need to merge attributes of a feature from one feature class to other feature(s) from another feature class based on their spatial relationships, you can use the SpatialRelator transformer in general.
If you want to merge attributes of a polygon to points within the polygon, the Clipper could also be used efficiently.
Hi @sangli, if you need to merge attributes of a feature from one feature class to other feature(s) from another feature class based on their spatial relationships, you can use the SpatialRelator transformer in general.
If you want to merge attributes of a polygon to points within the polygon, the Clipper could also be used efficiently.
Thanks @takashi
What I want to do is not merging the attribute but join two feature classes by attribute based on one field, when they intersects each other.. (for both feature classes there are often more than one features has the same location)..
Sorry not sure if i explained clear enough or not.
The two datasets that I am working on are:
feature class A: Point, has spatially duplicated records with different attribute
feature class B: Polygon, has spatially duplicated records with different attribute
the rules I want to apply is:
When feature class A intersect feature class B, join the table from B to A based on common feature attribute.
This common feature attribute is unique for each location but not for the whole dataset.
Sorry not sure if i explained clear enough or not.
The two datasets that I am working on are:
feature class A: Point, has spatially duplicated records with different attribute
feature class B: Polygon, has spatially duplicated records with different attribute
the rules I want to apply is:
When feature class A intersect feature class B, join the table from B to A based on common feature attribute.
This common feature attribute is unique for each location but not for the whole dataset.
So, the Clipper doesn't help you?
- Send the polygons (B) to the Clipper port, send the points (A) to the Clippee port.
- Set the common attribute to the Group By parameter.
- Check the Merge Attributes checkbox.
The point from the Inside port will have the attributes of a polygon that has the same common attribute as the point and also spatially contains the point. Isn't it your required result?
So, the Clipper doesn't help you?
- Send the polygons (B) to the Clipper port, send the points (A) to the Clippee port.
- Set the common attribute to the Group By parameter.
- Check the Merge Attributes checkbox.
The point from the Inside port will have the attributes of a polygon that has the same common attribute as the point and also spatially contains the point. Isn't it your required result?
Thank you again Takashi I didn't thought about using the group by parameter option.. yes that's perfectly sovled my problem!