Try the ArcStroker. That converts arcs into lines.
Try the ArcStroker. That converts arcs into lines.
Same problem did not work. it stops at 2533. till this number there is no Arc. Is this a common problem?
An error occurred while attempting to add a shape to a feature buffer. The error number from ArcObjects is: '-2147210926'. The error message from ArcObjects is: {Closed polylines not allowed with network features eclass name = wLateralLine, object id = 3688]}
Well, then the problem probably relates to the error you are seeing. It's not an FME error, but an Esri error.
This feature class you are writing to (wLateralLine)... does that already exist by any chance? And does it participate in a network dataset (there should also be a junction feature class in that case)? Notice you can set the Geodatabase type on the writer feature class. Valid values are mentioned here.
- If you are trying to simply write polylines and the target feature class is a polyline feature class, be sure to set the type to geodb_polyline.
- If you are trying to add lines to an actual network feature class, this will only work if the feature class already exists (according to this, FME does not fully support network feature classes so it seems). I am not sure to what type you should set the geodb_type, but it's probably geodb_simple_edge or otherwise geodb_complex_edge might do the trick for you. You might need to split your line (e.g. using a Chopper after the ArcStroker) into 2 parts for example, since an ellipse really isn't a valid network edge. Be aware though that you'll also have to add an extra junction (point) in that case.
Good luck..!
Well, then the problem probably relates to the error you are seeing. It's not an FME error, but an Esri error.
This feature class you are writing to (wLateralLine)... does that already exist by any chance? And does it participate in a network dataset (there should also be a junction feature class in that case)? Notice you can set the Geodatabase type on the writer feature class. Valid values are mentioned here.
- If you are trying to simply write polylines and the target feature class is a polyline feature class, be sure to set the type to geodb_polyline.
- If you are trying to add lines to an actual network feature class, this will only work if the feature class already exists (according to this, FME does not fully support network feature classes so it seems). I am not sure to what type you should set the geodb_type, but it's probably geodb_simple_edge or otherwise geodb_complex_edge might do the trick for you. You might need to split your line (e.g. using a Chopper after the ArcStroker) into 2 parts for example, since an ellipse really isn't a valid network edge. Be aware though that you'll also have to add an extra junction (point) in that case.
Good luck..!
Ah yes, also note that FME has a
TopologyBuilder, which has been designed to create networks. It can clean up your line geometry as well, turning it into valid edges, that hopefully can be written to your Geodatabase...
Hello @canerakin111,
If you want to find the closed polylines you could try the following:
1) Add a counter to the workspace to set a unique ID to each line.
2) Then send them to an Area Builder with the Group by setting set to the ID attribute.
3) Unclosed lines will be output through the Incomplete port, while any lines that closed on themselves will exit the Area port.
Alternatively, a GeometryFilter may also reveal the problem features.
Once found, a GeometryValidator may be able to correct the geometry errors.
Hello @canerakin111,
If you want to find the closed polylines you could try the following:
1) Add a counter to the workspace to set a unique ID to each line.
2) Then send them to an Area Builder with the Group by setting set to the ID attribute.
3) Unclosed lines will be output through the Incomplete port, while any lines that closed on themselves will exit the Area port.
Alternatively, a GeometryFilter may also reveal the problem features.
Once found, a GeometryValidator may be able to correct the geometry errors.
All the steps worked perfectly but how will I use geometryValidator here. 2 areas were founded.
Hello @canerakin111,
A colleague of mine suggested, with the fact you have the problem features identified. Use a GeometryCoercer on the Area features to convert them to lines, this should allow them to be written now.
this is the result.
Hello @canerakin111,
A colleague of mine suggested, with the fact you have the problem features identified. Use a GeometryCoercer on the Area features to convert them to lines, this should allow them to be written now.
Hello @canerakin111,
A colleague of mine suggested, with the fact you have the problem features identified. Use a GeometryCoercer on the Area features to convert them to lines, this should allow them to be written now.
I tried that after trying your instructions in the previous comment. It didnt work too.
Hello @canerakin111,
A colleague of mine suggested, with the fact you have the problem features identified. Use a GeometryCoercer on the Area features to convert them to lines, this should allow them to be written now.
Do you think that is going to affect?