Select to view content in your preferred language

How to create a feature class?

61
2
yesterday
nadja_swiss_parks
Occasional Contributor II

This might appear really basic, but I only manage to create a query feature class from my dockpane using this code:

await QueuedTask.Run(() => LayerFactory.Instance.CreateLayer<FeatureLayer>(flyrCreatnParam, MapView.Active.Map));

  that's nice, but query feature class don't show the area and length of a feature. however we need that, which is why we want to create a feature class instead. the data lies on a postgis/postgresql database. how can I create a feature class using the ArcGIS Pro .NET SDK?

 

Tags (1)
0 Kudos
2 Replies
AbhijeetNandeshwar1
New Contributor III
0 Kudos
Aashis
by Esri Contributor
Esri Contributor

You can use FeatureClass featureClass = featureLayer.GetFeatureClass() to access the feature class from a feature layer. Please refer to the API for more info.

0 Kudos