1

Does anyone have a stand alone python script that will find the center line of a polygon and output as a separate feature class? I have a basic ArcMap license 10.6 (no extensions) and I would like to develop a modelbuilder tool to iterate several polygons, find their center lines and store the center lines as a separate feature class in another folder or GDB.

closed as off-topic by ahmadhanb, Vince, user2856, tinlyx, nmtoken May 17 '18 at 6:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – ahmadhanb, Vince, user2856, tinlyx, nmtoken
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    I've done this in C# ArcObjects and cringe at the thought of implementing a bisected TIN and Djikstras' algorithm in python. Do you have any code? How proficient are you at python? Have a read of gis.stackexchange.com/questions/29863/… and its parent gis.stackexchange.com/questions/33887/… for some ideas, as for how you implement this in python with a basic license... IDK. It might be quicker to draw them! – Michael Stimson May 16 '18 at 22:47
  • If you've no extensions and a basic licence may be worth looking at qgis as a solution? – Hornbydd May 16 '18 at 23:16
  • I've used Qgis in the past, however, I need to stick with ArcMap and use its modelbuilder tools - work requirement. – agalindo May 16 '18 at 23:35