Copy features from Feature Service to Database Feature class with (Attributes&Geometry) using Python

372
1
06-06-2022 06:11 AM
Tarunvisvanadula1994
New Contributor III

Hi 

How can we copy selected features from Feature Service to SQL Database Feature Class using python?

 

Thanks

Tarun V

1 Reply
DonMorrison1
Occasional Contributor III

There are a number of ways to do this, but for starters I would look at doing it in 2 steps:

  1. Run MakeFeatureLayer  to select the records that you want to copy using the 'where_clause' parameter 
  2. Run FeatureClassToFeatureClass to copy the selected records
0 Kudos