I have a polygon dataset.
- 90% of this dataset is polygons composed of lines
- 10% of this dataset is polygons composed of lines+arcs.
How to I filter out the 10% lines+arcs records while keeping the geometry intact?
I have a polygon dataset.
How to I filter out the 10% lines+arcs records while keeping the geometry intact?
Best answer by takashi
A possible way is:
Polygon boundaries output from the Merged port only consist of Lines, others consist of Lines and Arcs.
Alternatively, a PythonCaller with this script works as well.
def processFeature(feature):
area = feature.getGeometry()
feature.setAttribute('_is_linear', 'yes' if area.isBoundaryLinear() else 'no')
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.