Select to view content in your preferred language

Make a copy of a feature class with filtered and reformatted attribute fields

279
1
01-13-2023 12:11 PM
NSamu
by
Regular Contributor

Hello,

Can someone please recommend a good method for creating a copy of a feature class with 1) certain attribute fields filtered out, 2) attribute fields renamed, and 3) attribute fields placed in a specific order using ArcPy/Python? Examples, pseudo-code, or any input would be much appreciated. This is something that I can foresee reusing pretty repetitively, so I figured it wouldn't hurt to pose the question to the masses.

Thanks,

Nicole

0 Kudos
1 Reply
AlfredBaldenweck
MVP Regular Contributor

This should be possible with Feature Class to Feature Class.

You can move fields around in the field map, get rid of the ones you don't need, and filter with SQL.

Just right click on the layer and it should be data--> export

0 Kudos