What is the best practice for creating a geodatabase and copying a feature class into it using the ArcGIS Pro SDK?

132
0
05-14-2020 09:53 AM
JohnPhillipsGeo
New Contributor III

I've been reading through the online documentation and I can't seem to find any snippets or examples that do these very basic functions.

All I need to do is

1) Create a new geodatabase

2) Reference a feature service

3) copy that feature service into the geodatabase

I've found snippets that allow me to add layer to a map

For example:

//create a layer using a URL
string url = @"http://sampleserver6.arcgisonline.com/arcgis/rest/services/NapervilleShelters/FeatureServer/0";
Layer lyr = LayerFactory.Instance.CreateLayer(new Uri(url), map);

However, I cannot find the method to then save that layer to a geodatabase.

Any help would be much appreciated!

Tags (1)
0 Kudos
0 Replies