Select to view content in your preferred language

How to implement ITopologicalOperator Simplify related operations using arcpy

153
0
03-10-2025 07:11 AM
RavaliAllam1
New Contributor

I am migrating my custom geoprocessing toolbox from ArcMap which was built using C# ArcObjects to ArcGIS Pro which is being built using ArcPy. Below are C# ArcObjects lines (used across my code) related to simplification done using ITopologicalOperators. How do I achieve exact functionality in ArcPy, without having to pass any additional parameters like offsets etc. as I am not sure what would be the suitable values.

((ITopologicalOperator4)xyPoly).IsKnownSimple_2 = False;
xyPoly.SimplifyPreserveFromTo();
((ITopologicalOperator)xyPoly).Simplify();
xyPoly.SimplifyEx(True, False, True);
isSimple: bool = ((ITopologicalOperator4)xyPoly).get_IsSimpleEx(out enumVal);

Thank you!

0 Kudos
0 Replies