Select to view content in your preferred language

Extract/query the data in a fetureclass

406
2
Jump to solution
05-27-2022 01:10 PM
René_AstadDupont
New Contributor II

Probably a very simple question...

I want to use the attributes / data in a feature class in a C# program. 

The data is located in a Enterprise SDE database.

How do I query all the data from a feature class?. 
What does the url look like.

( I have managed to querry for at Token) but cant figure out how to get a list of records in the feature class. 

 

0 Kudos
1 Solution

Accepted Solutions
Raul_Jimenez
Esri Contributor

Hi René,

I guess you mean through the REST API, right?. If the feature class has been published as a FeatureLayer you have a query operation.

Here a couple of resources:

In both cases the URL is pointing ArcGIS Online, you just need to change it to the right server.

Hope this helps.

View solution in original post

0 Kudos
2 Replies
Raul_Jimenez
Esri Contributor

Hi René,

I guess you mean through the REST API, right?. If the feature class has been published as a FeatureLayer you have a query operation.

Here a couple of resources:

In both cases the URL is pointing ArcGIS Online, you just need to change it to the right server.

Hope this helps.

0 Kudos
René_AstadDupont
New Contributor II

Thank you Raul. Yes indeed the Query made the trick in the end. Documentation was just a little overwhelming at a firs glance and seemed to be very map centric, were I just needed the attributes.

0 Kudos