AnsweredAssumed Answered

Creating polygons from closed polylines with arcpy

Question asked by Rafael.dePedro_MELCoventry on May 28, 2019
Latest reply on Jun 26, 2019 by Rafael.dePedro_MELCoventry

Does anyone have any advice on how to invoke the "construct polygon" (I believe this lives in the Advance editing toolbar in Arcmap) on a python script?

I am currently trying to write a piece of code that will take in closed polylines which represent tree canopies, and convert them to polygons. I had tried using the tool Feature to Polygon in the Management toolbox, but it does not react well to closed polylines when they overlap each other as tree canopies do in real life. I am trying to get one polygon for each closed polyline, and the "construct polygon" tool seems to do the job, but I don't know how to call it on python. 

If anyone here can suggest a way (with "construct polygon" or otherwise) to achieve this it would be very much appreciated.

Thanks.

Outcomes