is it possible to create Polygon Feature class from Lines through python code?
Do you mean feature-to-polygon (your link isn't working)? This would require an advanced license. If you are looking to recreate that functionality from scratch there are not posted solutions that emulate it for all cases given the rule set to construct polygons from lower geometries in all cases.
Do you have a particular use case that you want to perform that is easier like a convex hull? Perhaps you need to provide an example of what you need to do.
Hi Dan, the question spawns from this one: polyline to polygon (comparison tool and own code)
sorry for the broken link.Please see below:
How To: Access the Polygon Feature Class From Lines command in ArcGIS 10
Thanks FC Basson . Sibghat, if you are looking to do this in python... ie in pure python... I would recommend the suggestions in your originating thread
Dear Dan Patters,
construct polygon using advanced editing tool or
Polygon Feature class from Lines
To recreate their functionality? I have none (that would be simple in any event)
Maybe not the best ArcGIS answer, but if you have no other option you should look at the QGIS Polygonize tool, which can be found in the Processing Toolbox - won't work with Esri Feature Classes of course, but it's free .
I have created a new python addin containg 3 buttons.first my script runs to convert lines ,Construct polygon tool and then spatial join script.
Can you just tell me where Construct polygon tool is located in arcgis folder??so that i can run that tool in button 1 script.
No idea. Why don't you just customize your menu and add the button from the Commands list?
Retrieving data ...