Skip to main content
Solved

Clip Vector data From multiple shapes


ienesaglam60
Contributor
Forum|alt.badge.img+3

Hi,0684Q00000ArAiaQAF.jpg

I have boxes shp and building shp.(Jpg_1_1)
I want to cut the buildings according to the box limits but

 

I want the buildings that touch the box limit to stay in that box. A building can be in more than one box. (jpg_1_2)0684Q00000ArAx1QAF.jpg

I use clipper but cut buildings according to the box borders .(jpg_1_3)

0684Q00000ArAx6QAF.jpg

 

 

Finally, I want to export according to the box names .Example: (1149334,1149935)

Best answer by markatsafe

@ienesaglam60 I think it'll be a combination of SpatialFilter and Clipper. You need to clip the buildings that span gri squares to clculate the relative areas and then piece them back together. So I think a combination of SpatialFilter, Clipper and Aggregator will do the trick. Something like:

Workspace (FME 2020) and sample data (City of Vancouver Open Data): insidegridcalculator.fmwt

View original
Did this help you find an answer to your question?

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • May 27, 2020

If you do not want the building polygons to be clipped, the SpatialRelator transformer might be a better option.

That transformer adds a _relationships list with the relationships between the tiles and the buildings.

That list can be used to output the relationships.

 

If you want to use the Clipper, you need the Inside output plus the Outside output, then use a Tester to filter only the Outside that is Clipped (an attribute indicator is available).

The Inside Clipped and Outside Clipped can be used for restoring the buildings using the AreaBuilder (group by Builing ID).

Hope this helps.


Forum|alt.badge.img+2
  • Best Answer
  • May 27, 2020

@ienesaglam60 I think it'll be a combination of SpatialFilter and Clipper. You need to clip the buildings that span gri squares to clculate the relative areas and then piece them back together. So I think a combination of SpatialFilter, Clipper and Aggregator will do the trick. Something like:

Workspace (FME 2020) and sample data (City of Vancouver Open Data): insidegridcalculator.fmwt


ienesaglam60
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • May 27, 2020
markatsafe wrote:

@ienesaglam60 I think it'll be a combination of SpatialFilter and Clipper. You need to clip the buildings that span gri squares to clculate the relative areas and then piece them back together.  So I think a combination of SpatialFilter, Clipper and Aggregator will do the trick. Something like:

0684Q00000ArK43QAF.png

Workspace (FME 2020) and sample data (City of Vancouver Open Data): insidegridcalculator.fmwt

Thank you so much @markatsafe.

 

This workspace worked partially. No matter which grill the building areas are on, it throws the building into that area.
I want a building to stay on all the cutting grids. A building can stay on 3 4 different grids.
I think I need to make a change in the aggregator part.
do you have any idea?
 

 


Reply


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