Hi @stihe, a possible way is:
- Extract coordinates of the center of the original line with the CenterPointExtractor.
- Rotate the original line around the center coordinates by 90 degrees with the Rotator.
- If necessary, extend the rotated line with the Extender.
1. Counter on lines (to make ID of them)
2. CenterPointReplacer on lines - this will convert lines to points,
3. CoordinateExtractor on points this will create _x,_y coordinates for rotation of lines
4. FeatureMerger: Requestor are lines (connection from Counter), supplier are points (connection from CoordinateExtractor), merge by ID. This will fill lines with attributes (_x,_y) from points
5. Rotator, angle=90, X Origin = _x coordinate, Y Origin = _y coordinate. This will rotate lines by 90 degrees based on midpoint
6. Scaler, deliberately scale line by 5-6 (or 100) so you can cut polygon
7. Clipper, clip polygon with its line (optionally using Group by parameter)
Cheers
1. Counter on lines (to make ID of them)
2. CenterPointReplacer on lines - this will convert lines to points,
3. CoordinateExtractor on points this will create _x,_y coordinates for rotation of lines
4. FeatureMerger: Requestor are lines (connection from Counter), supplier are points (connection from CoordinateExtractor), merge by ID. This will fill lines with attributes (_x,_y) from points
5. Rotator, angle=90, X Origin = _x coordinate, Y Origin = _y coordinate. This will rotate lines by 90 degrees based on midpoint
6. Scaler, deliberately scale line by 5-6 (or 100) so you can cut polygon
7. Clipper, clip polygon with its line (optionally using Group by parameter)
Cheers
Which is basically what Takashi said :D
Thanks, zzupljanin. I wasn't aware of the Scaler. It could be useful.