Skip to main content
I have 2 ESRI Shape polygon datasets, which should be combined and exchange attributes. The first shows boundaries of some hundred property units, the second shows some thousand mapped features inside. The task is to summarize the area values of all mapped features included in each property unit and add the result to a new property unit shapefile.

 

 

INSIDEPOINT_REPLACER for the mapped features and POINT_ON_AREA_OVERLAYER / FEATURE_MERGER followed by AGGREGATOR works well one-to-one basis as long as I have no overlapping property units.

 

 

Now I need a good idea to do the same with overlapping property units, mean to collect the mapped features more than one time. Thanks for any ideas / help.

 

 

Hi,

 

 

Try using the SpatialRelator transformer instead of the PointOnAreaOverlayer.

 

Send polygons to BASE, points to CANDIDATE port. Output polygons will have list attributes which contain attributes of every candidate points related spatially.

 

Takashi
Wow - that was fast! I am just new working with list attributes. I tried it and it basically worked. I get an output with a concatenated list showing that the SPATIALRELATOR collects the candidate polygons correctly.

 

 

Example:

 

 

File A: 2 base polygons (overlapping)

 

File B: 8 candidate polygons (in A and/or B)

 

 

I would like to summarize the area of each polygon of B by its class e.g.

 

area class 1,2,3

 

 

SPATIALRELATOR with LISTCONCATENATOR shows (File C):

 

 

A1   1,2,2,3,3

 

A2   1,1,1,2,3,3,3

 

 

Output file C with attributes:

 

 

A1: sum1, sum2, sum3

 

A2: sum1, sum2, sum3

 

 

I did that with featuremerger and aggregator but have no idea how to deal with list elements. By the way - is there any sample or documentation for dealing with list attributes in the web ? Thanks for any help.

 


Hi,

 

 

The ListDuplicateRemover, ListSorter, ListConcatenator might help you.

 

You can see descriptions of every transformer in the FMEpedia site.

 

FME Workbench Transformers

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm   See here especially about list manipulation:

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm#Categories/lists.htm

 

 

Takashi
In addition also the list summer can be of help

 

http://docs.safe.com/fme/html/FME_Transformers/Default.htm#Transformers/listsummer.htm
Problem solved ! The SpatialRelator did it perfectly. It took me some hours to go through that list stuff but it finally worked.With LISTEXPLODER after SPATIALRELATOR I could work with all Aggregates and Filters just as I was used to do before. Perfect !

Reply