Select to view content in your preferred language

Importing empty metadata into multiple files with Python?

3379
2
Jump to solution
11-11-2015 05:55 AM
DeidreA
New Contributor

Hello!

I'm trying to come up with a python script to help me import a single empty metadata file into multiple shapefiles in ArcCatalog. However, my python is very basic. I've been searching up the Esri documentation to assist me, but they don't seem to have any scripts that I can adapt to this process. I know I will need to make a list of the shapefiles whose metadata I want cleared and I know I will be using a for loop to import the empty metadata into each shapefile, but I'm not sure where to start or how to save the script so I can use it again in the future for similar processes.

Can anyone help me out here or point me in the right direction?

0 Kudos
1 Solution

Accepted Solutions
RebeccaStrauch__GISP
MVP Emeritus

This may be a good place to start...

Export Metadata Multiple—Help | ArcGIS for Desktop

And ns for the "looping", you should look at the Walk—Help | ArcGIS for Desktop   If you haven't already.

there is also a Metedata toolkit

ArcGIS Metadata Toolkit | ArcGIS Blog   although older, it may have some info. 

Sorry i I can't provide more...away from office this week.

View solution in original post

2 Replies
RebeccaStrauch__GISP
MVP Emeritus

This may be a good place to start...

Export Metadata Multiple—Help | ArcGIS for Desktop

And ns for the "looping", you should look at the Walk—Help | ArcGIS for Desktop   If you haven't already.

there is also a Metedata toolkit

ArcGIS Metadata Toolkit | ArcGIS Blog   although older, it may have some info. 

Sorry i I can't provide more...away from office this week.

curtvprice
MVP Esteemed Contributor

The Metadata Importer tool will do this. You can right click, run as batch without any programming, or you can use Model Builder with an iterator to also do this without programming.

Do you have a specific reason to do this in Python?