Esri / data-assistant

ArcGIS Pro Add-in that assists in emergency management, local government and state government data aggregation workflows.
Apache License 2.0
22 stars 8 forks source link

Function for feature class name #115

Closed MikeMillerGIS closed 7 years ago

MikeMillerGIS commented 7 years ago

In case you where interested, found a great way to parse a string.

instead of .rfind("."), use rpartition(".")[-1]

This always gets just the FC name regardless of the string return os.path.basename(os.path.normpath(dataset)).rpartition('.')[-1]

ChrisBuscaglia commented 7 years ago

Leave a comment