Good Day to All,
I'm a long time developer first time Esri Developer and I wanted to share a little python script i wrote that would get all the featureclasses within a database and export them to CSV. As I ran into the issue where there was no easy way to obtain the metadata via SQL Queries. So I decided to use the python API calls with arcpy.
Also I separated the files, one gets all of the feature classes (title only and some descriptions) but then the second file is to get the metadata of each feature class itself -- you must view its metadata (saved as an XML) directly. In the end I saved the results into a CSV.
Let me know if stuff like this is useful for here. I have also written python code to get data out of our organization's ArcGIS Online (i can write a separate post about this at a later time).
Code found here also:
https://github.com/lunasnest/Arcpy/tree/main/get_feature_classes
Cheers
Thank you for sharing this with us. It looks like it can be very useful for exporting featureclasses from a database to CSV.
We noticed that you are attempting to share your code rather than a specific idea for an enhancement, could you clarify if there is an idea for a specific new feature that you're suggesting?
If so, we would be happy to hear more about it.
Otherwise, if you are just wanting to share your code with others in case it would help fulfill their needs too, this is better suited for the Esri Community forum rather than here. Please also see the ArcGIS Ideas Submission Guidelines.
Thank you, we appreciate your willingness to share your knowledge; it can be extremely helpful for us and others.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.